/* --- 全局和基础样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden; /* 防止滚动条出现 */
}

/* --- 背景图 --- */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 在这里替换成你喜欢的背景图链接 */
    background-image: url('back.jpg');
    background-size: cover;
    background-position: center;
    /* 给背景图加一点点模糊，让卡片更突出 */
    filter: blur(5px) brightness(0.9);
    /* 放大一点点，防止模糊后边缘出现白边 */
    transform: scale(1.05);
}


/* --- 毛玻璃卡片核心样式 --- */
.glass-card {
    position: relative; /* 确保在背景图之上 */
    z-index: 1;
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    
    /* 毛玻璃效果的关键 */
    background: rgba(255, 255, 255, 0.15); /* 半透明背景 */
    backdrop-filter: blur(20px); /* 模糊背景内容 */
    -webkit-backdrop-filter: blur(20px); /* 兼容 Safari */

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 模拟玻璃边缘高光 */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* 增加立体感 */
    
    text-align: center;
}

/* --- 卡片内部元素样式 --- */
.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* 圆形头像 */
    border: 3px solid rgba(255, 255, 255, 0.5);
    object-fit: cover; /* 防止图片变形 */
    margin-bottom: 20px;
}

.info .name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info .title {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.info .bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* --- 社交链接按钮 --- */
.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px; /* 按钮之间的间距 */
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.link-button i {
    margin-right: 8px; /* 图标和文字的间距 */
}

/* 按钮悬停效果 */
.link-button:hover {
    transform: translateY(-3px) scale(1.05); /* 向上浮动并放大 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 不同按钮的颜色 */
.github {
    background-color: #333;
    border-color: #444;
}

.github:hover {
    background-color: #111;
}

.bilibili {
    background-color: #fb7299; /* Bilibili 粉色 */
    border-color: #ff8ab4;
}

.bilibili:hover {
    background-color: #e55a7f;
}

/* --- 联系方式 --- */
.contact {
    font-size: 0.9rem;
}

.contact a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #fb7299; /* 悬停时变成粉色 */
}


/* --- 移动端响应式设计 --- */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
        width: 95%;
    }

    .info .name {
        font-size: 1.8rem;
    }

    .profile-picture img {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        flex-direction: column; /* 在小屏幕上垂直排列按钮 */
        gap: 15px;
    }
}