:root {
    --primary-color: #e83e8c;
    --secondary-color: #6f42c1;
    --background-color: #13091e;
    --text-color: #f8f9fa;
    --grid-color: rgba(232, 62, 140, 0.2);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
}

.avatar-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: rotate 8s linear infinite;
}

.avatar {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background-color);
}

.username {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(232, 62, 140, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.bio {
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(248, 249, 250, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1.1s;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.social-link:nth-child(1) {
    animation: fadeUp 1s ease forwards 1.3s;
}

.social-link:nth-child(2) {
    animation: fadeUp 1s ease forwards 1.4s;
}

.social-link:nth-child(3) {
    animation: fadeUp 1s ease forwards 1.5s;
}

.social-link:nth-child(4) {
    animation: fadeUp 1s ease forwards 1.6s;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    z-index: 1;
}

.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
    animation: gridMove 20s linear infinite;
    transition: transform 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(248, 249, 250, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(248, 249, 250, 0.2);
}

/* 粒子样式 */
.particle {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    pointer-events: none;
    opacity: 0.4;
    z-index: 5;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

@media (max-width: 768px) {
    .username {
        font-size: 2.5rem;
    }

    .avatar-container {
        width: 150px;
        height: 150px;
    }

    .bio {
        padding: 0 1rem;
    }
}

/* 暗色/亮色主题切换 */
body.light-theme {
    --background-color: #f8f9fa;
    --text-color: #212529;
    --grid-color: rgba(232, 62, 140, 0.1);
}

body.light-theme .username {
    text-shadow: 0 0 10px rgba(232, 62, 140, 0.2);
}

body.light-theme .bio {
    color: rgba(33, 37, 41, 0.8);
}

body.light-theme .theme-toggle {
    background-color: rgba(33, 37, 41, 0.1);
}

body.light-theme .theme-toggle:hover {
    background-color: rgba(33, 37, 41, 0.2);
}

/* 页脚样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    background-color: rgba(19, 9, 30, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: 0.9rem;
    animation: fadeUp 1s ease forwards 1.8s;
    opacity: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.copyright {
    color: rgba(248, 249, 250, 0.7);
}

.beian a {
    color: rgba(248, 249, 250, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: var(--primary-color);
}

/* 亮色主题下的页脚样式 */
body.light-theme .footer {
    background-color: rgba(248, 249, 250, 0.8);
}

body.light-theme .copyright,
body.light-theme .beian a {
    color: rgba(33, 37, 41, 0.7);
}

body.light-theme .beian a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer {
        padding: 8px 0;
        font-size: 0.8rem;
    }
} 