/* 全局变量：苹果风格色板与阴影 */
:root {
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.4);
    --accent-blue: #0071e3;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止背景模糊溢出产生滚动条 */
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 动态背景光晕效果 */
.background-blobs {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
    opacity: 0.7;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.05));
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(255, 45, 85, 0.02));
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.15), rgba(94, 92, 230, 0.02));
    top: 30%;
    left: 40%;
    animation-delay: -2s;
}

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

/* 毛玻璃卡片主体 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 440px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08), 
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 头部及头像 */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-container {
    width: 104px;
    height: 104px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    position: relative;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.04);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}

.name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
}

.title {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* 自我介绍 */
.bio {
    text-align: center;
    line-height: 1.6;
    color: #424245;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

/* 技能标签 */
.skills-section {
    margin-bottom: 2.5rem;
}

.skills-section h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* 联系方式按钮 */
.contact-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-btn {
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
        width: 92%;
        border-radius: 28px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .bio {
        font-size: 0.9rem;
    }
    
    .contact-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
