:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --secondary-light: #f472b6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --lighter: #ffffff;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: #0f172a;
    --text-light: #475569;
    --shadow-color: rgba(99, 102, 241, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 20px;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --blur-amount: 20px;
}

.dark-mode {
    --primary: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --secondary: #f472b6;
    --secondary-light: #f9a8d4;
    --accent: #22d3ee;
    --dark: #f8fafc;
    --dark-light: #e2e8f0;
    --light: #0f172a;
    --lighter: #1e293b;
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.4);
    --text-color: #f8fafc;
    --text-light: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
}

.dark-mode body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

/* 液态玻璃背景效果 */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.liquid-shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    border-radius: 50%;
    animation: liquidMove 20s infinite alternate ease-in-out;
}

.liquid-shape:nth-child(1) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    width: 500px;
    height: 500px;
    top: -250px;
    left: -100px;
    animation-delay: 0s;
}

.liquid-shape:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    width: 600px;
    height: 600px;
    bottom: -300px;
    right: -150px;
    animation-delay: -5s;
}

.liquid-shape:nth-child(3) {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    width: 400px;
    height: 400px;
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.liquid-shape:nth-child(4) {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    width: 450px;
    height: 450px;
    top: 20%;
    right: 10%;
    animation-delay: -15s;
}

@keyframes liquidMove {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(40px, 50px) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-30px, 20px) rotate(360deg) scale(0.9);
    }
}

/* 粒子效果 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.dark-mode .particle {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    animation: fadeIn 1s ease-out;
}

/* 主卡片 */
.main-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px var(--shadow-color);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    animation: cardFloat 8s ease-in-out infinite;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    z-index: -1;
    border-radius: var(--border-radius);
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0.5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-0.5deg);
    }
}

/* 个人资料区域 */
.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.7;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    box-shadow: 0 15px 35px var(--shadow-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    animation: avatarPulse 4s ease-in-out infinite;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--lighter);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.profile-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

/* 数据统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    animation: statFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.5s);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 25px var(--shadow-color);
}

@keyframes statFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 社交网格 */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.social-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: socialAppear 0.6s ease-out;
    animation-fill-mode: both;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.social-card:hover::before {
    opacity: 0.1;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-card:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.social-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
}

.social-handle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.social-arrow {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    transition: var(--transition);
}

.social-card:hover .social-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* 社交平台特定颜色 */
.social-card.facebook .social-icon {
    background: #1877F2;
    color: white;
}

.social-card.instagram .social-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-card.messenger .social-icon {
    background: #0084FF;
    color: white;
}

.social-card.twitter .social-icon {
    background: #000000;
    color: white;
}

.social-card.youtube .social-icon {
    background: #FF0000;
    color: white;
}

.social-card.tiktok .social-icon {
    background: #000000;
    color: white;
}

.social-card.telegram .social-icon {
    background: #0088cc;
    color: white;
}

.social-card.twitch .social-icon {
    background: #9146FF;
    color: white;
}

.social-card.linkedin .social-icon {
    background: #0A66C2;
    color: white;
}

.social-card.reddit .social-icon {
    background: #FF4500;
    color: white;
}

.social-card.pinterest .social-icon {
    background: #E60023;
    color: white;
}

.social-card.snapchat .social-icon {
    background: #FFFC00;
    color: #000000;
}

.social-card.github .social-icon {
    background: #181717;
    color: white;
}

.social-card.spotify .social-icon {
    background: #1DB954;
    color: white;
}

.social-card.website .social-icon,
.social-card.portfolio .social-icon,
.social-card.library .social-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--shadow-dark);
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 25px var(--shadow-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

/* 页脚 */
footer {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

.footer-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

footer b {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes socialAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 延迟动画 */
.social-card:nth-child(1) {
    animation-delay: 0.1s;
}

.social-card:nth-child(2) {
    animation-delay: 0.2s;
}

.social-card:nth-child(3) {
    animation-delay: 0.3s;
}

.social-card:nth-child(4) {
    animation-delay: 0.4s;
}

.social-card:nth-child(5) {
    animation-delay: 0.5s;
}

.social-card:nth-child(6) {
    animation-delay: 0.6s;
}

.social-card:nth-child(7) {
    animation-delay: 0.7s;
}

.social-card:nth-child(8) {
    animation-delay: 0.8s;
}

.social-card:nth-child(9) {
    animation-delay: 0.9s;
}

.social-card:nth-child(10) {
    animation-delay: 1.0s;
}

.social-card:nth-child(11) {
    animation-delay: 1.1s;
}

.social-card:nth-child(12) {
    animation-delay: 1.2s;
}

.social-card:nth-child(13) {
    animation-delay: 1.3s;
}

.social-card:nth-child(14) {
    animation-delay: 1.4s;
}

.social-card:nth-child(15) {
    animation-delay: 1.5s;
}

.social-card:nth-child(16) {
    animation-delay: 1.6s;
}

.social-card:nth-child(17) {
    animation-delay: 1.7s;
}

.stat-card:nth-child(1) {
    --delay: 1;
}

.stat-card:nth-child(2) {
    --delay: 2;
}

.stat-card:nth-child(3) {
    --delay: 3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-card {
        padding: 30px 20px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info {
        min-width: auto;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .avatar {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 20px 15px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }

    .profile-info h2 {
        font-size: 1rem;
    }

    .social-card {
        padding: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}