/* ---------- 全局重置 & 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* 主容器 – 模拟卡片效果 */
.container {
    max-width: 820px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    margin: 32px 0 20px;
    padding: 32px 36px 20px;
    transition: padding 0.2s ease;
}

/* ---------- 导航 ---------- */
nav {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: #4a5568;
    transition: color 0.2s;
    letter-spacing: 0.02em;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: #5B8DEF;
    border-radius: 4px;
    transition: width 0.25s ease;
}

nav a:hover {
    color: #5B8DEF;
}

nav a:hover::after {
    width: 100%;
}

/* ---------- 头像 ---------- */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    box-shadow: 0 8px 24px rgba(91, 141, 239, 0.12);
    border: 3px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(91, 141, 239, 0.20);
}

/* ---------- 昵称 & 简介 ---------- */
.name {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin-top: 16px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a5568;
    margin-top: 6px;
    background: #f1f5f9;
    display: inline-block;
    padding: 4px 20px;
    border-radius: 40px;
    letter-spacing: 0.01em;
}

/* ---------- 分隔装饰 ---------- */
.divider {
    width: 60px;
    height: 3px;
    background: #5B8DEF;
    border-radius: 6px;
    margin: 28px auto 24px;
    opacity: 0.5;
}

/* ---------- 社交图标 ---------- */
.social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0 16px;
    flex-wrap: wrap;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #2d3748;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.social a:hover {
    background: #5B8DEF;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(91, 141, 239, 0.30);
}

/* ---------- 页脚 ---------- */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    padding: 20px 0 8px;
    border-top: 1px solid #edf2f7;
    margin-top: 16px;
    letter-spacing: 0.02em;
}

footer span {
    color: #5B8DEF;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 640px) {
    .container {
        padding: 20px 18px 16px;
        margin: 16px 0 12px;
        border-radius: 20px;
    }

    nav {
        justify-content: center;
        gap: 20px;
        padding-bottom: 14px;
        margin-bottom: 24px;
    }

    nav a {
        font-size: 0.95rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 2px 16px;
    }

    .social {
        gap: 16px;
    }

    .social a {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 14px 12px 12px;
    }

    .name {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 0.85rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
