/**
  * Copyright (c) 2026 小鱼Dev
  * All rights reserved.
  * 拿源码麻烦留个版权 谢谢你！
 */

:root {
    --bg-color: #f7f8fa;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: 1px solid rgba(255, 255, 255, 0.8);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-blue: #0984e3;
    --accent-purple: #6c5ce7;
    --accent-green: #00b894;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.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.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #74b9ff;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #a29bfe;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #81ecec;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.page-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--card-border);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: #fff;
}

.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00b894;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

.avatar-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.profile-info {
    margin-top: auto;
    margin-bottom: 30px;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hand-wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.profile-info .role {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-info .desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 90%;
}

.social-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-tags span {
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.social-tags span:hover {
    background: #fff;
    transform: translateY(-2px);
    color: var(--accent-blue);
}

.link-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 30px;
    gap: 20px;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.github .icon-box { background: rgba(0, 0, 0, 0.05); color: #333; }
.blog .icon-box { background: rgba(108, 92, 231, 0.1); color: var(--accent-purple); }
.contact .icon-box { background: rgba(9, 132, 227, 0.1); color: var(--accent-blue); }

.link-info {
    flex: 1;
}

.link-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.link-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.link-card:hover .action-btn {
    opacity: 1;
    transform: rotate(-45deg);
    color: var(--accent-blue);
}

.link-card:hover .icon-box {
    transform: scale(1.1);
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

footer i {
    color: #ff7675;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 850px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        min-height: auto;
    }
    
    .profile-header {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: flex-start;
    }

    .avatar-wrapper img {
        width: 70px;
        height: 70px;
    }

    .right-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .link-card {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .right-column {
        flex-direction: column;
    }
    
    .link-card {
        width: 100%;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
}
