/* 全局样式重置 */
* {
    margin: 0; /* 清除默认外边距 */
    padding: 0; /* 清除默认内边距 */
    box-sizing: border-box; /* 盒模型设置为边框盒 */
}

/* 基础页面样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 设置字体族 */
    color: #fff; /* 文字颜色为白色 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
    min-height: 100vh; /* 最小高度为视口高度 */
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 1rem; /* 添加内边距 */
}

/* 视频背景容器样式 */
.video-background {
    position: fixed; /* 固定定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    z-index: -2; /* 置于最底层 */
}

/* 背景视频样式 */
#bg-video {
    position: absolute; /* 绝对定位 */
    top: 50%; /* 顶部定位到50% */
    left: 50%; /* 左侧定位到50% */
    min-width: 100%; /* 最小宽度100% */
    min-height: 100%; /* 最小高度100% */
    width: auto; /* 宽度自动 */
    height: auto; /* 高度自动 */
    transform: translateX(-50%) translateY(-50%); /* 居中定位 */
    object-fit: cover; /* 覆盖整个容器 */
}

/* 背景模糊层样式 */
.background-blur {
    position: absolute; /* 绝对定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色覆盖层 */
    z-index: -1; /* 在视频之上，但在内容之下 */
}

/* 主要内容容器样式 */
.content {
    width: 90%; /* 宽度90% */
    max-width: 900px; /* 最大宽度限制 */
    z-index: 1; /* 确保内容在模糊层之上 */
    display: flex; /* 使用弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 2rem; /* 子元素间距 */
}

/* 个人信息卡片样式 */
.profile-card {
    display: flex; /* 使用弹性布局 */
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    backdrop-filter: blur(15px); /* 模糊效果 */
    border-radius: 20px; /* 圆角边框 */
    padding: 2rem; /* 内边距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* 卡片阴影 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 边框 */
    gap: 2rem; /* 子元素间距 */
}

/* 头像区域样式 */
.avatar-section {
    flex: 0 0 auto; /* 不伸缩，自动宽度 */
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

/* 头像容器样式 */
.avatar-container {
    position: relative; /* 相对定位，用于绝对定位子元素 */
    width: 150px; /* 容器宽度 */
    height: 150px; /* 容器高度 */
    border-radius: 50%; /* 圆形容器 */
    overflow: hidden; /* 隐藏溢出部分 */
}

/* 头像样式 */
.avatar {
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    object-fit: cover; /* 覆盖整个容器 */
    transition: all 0.3s ease; /* 过渡动画 */
}

/* 头像模糊效果层样式 */
.avatar-blur {
    position: absolute; /* 绝对定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    backdrop-filter: blur(0); /* 初始无模糊 */
    background-color: rgba(0, 0, 0, 0); /* 初始透明 */
    transition: all 0.3s ease; /* 过渡动画 */
    border-radius: 50%; /* 圆形 */
    pointer-events: none; /* 不接收鼠标事件 */
}

/* 头像容器悬停时的模糊效果 */
.avatar-container:hover .avatar-blur {
    backdrop-filter: blur(5px); /* 模糊效果 */
    background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色 */
}

/* 头像容器悬停时的头像缩放效果 */
.avatar-container:hover .avatar {
    transform: scale(1.05); /* 轻微放大 */
}

/* 信息区域样式 */
.info-section {
    flex: 1; /* 占据剩余空间 */
    display: flex; /* 使用弹性布局 */
    flex-direction: column; /* 垂直排列 */
    justify-content: center; /* 垂直居中 */
}

/* 姓名样式 */
.name {
    font-size: 2.2rem; /* 字体大小 */
    margin-bottom: 0.5rem; /* 底部外边距 */
    font-weight: 700; /* 字体粗细 */
    background: linear-gradient(90deg, #ceeaf3, #4f815e); /* 渐变文字颜色 */
    -webkit-background-clip: text; /* 背景裁剪为文字 */
    -webkit-text-fill-color: transparent; /* 文字颜色透明 */
}

/* 职位/头衔样式 */
.title {
    font-size: 1.2rem; /* 字体大小 */
    margin-bottom: 1rem; /* 底部外边距 */
    opacity: 0.8; /* 半透明效果 */
}

/* 个人简介样式 */
.bio {
    font-size: 1rem; /* 字体大小 */
    margin-bottom: 1.5rem; /* 底部外边距 */
    line-height: 1.6; /* 行高 */
    opacity: 0.9; /* 半透明效果 */
}

/* 详细信息容器样式 */
.details {
    display: flex; /* 使用弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 0.7rem; /* 子元素间距 */
}

/* 详细信息项样式 */
.detail-item {
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中 */
    gap: 0.7rem; /* 图标与文字间距 */
    font-size: 0.95rem; /* 字体大小 */
}

/* 详细信息图标样式 */
.detail-item i {
    width: 20px; /* 固定宽度 */
    text-align: center; /* 文字居中 */
    opacity: 0.8; /* 半透明效果 */
}

/* 社交平台卡片样式 */
.social-card {
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    backdrop-filter: blur(15px); /* 模糊效果 */
    border-radius: 20px; /* 圆角边框 */
    padding: 2rem; /* 内边距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* 卡片阴影 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 边框 */
}

/* 社交平台卡片标题样式 */
.social-card h2 {
    font-size: 1.5rem; /* 字体大小 */
    margin-bottom: 1.5rem; /* 底部外边距 */
    font-weight: 600; /* 字体粗细 */
    text-align: center; /* 文字居中 */
}

/* 社交链接容器样式 */
.social-links {
    display: flex; /* 使用弹性布局 */
    justify-content: center; /* 水平居中 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 1.5rem; /* 子元素间距 */
}

/* 单个社交链接样式 */
.social-link {
    display: flex; /* 使用弹性布局 */
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    gap: 0.7rem; /* 图标与文字间距 */
    padding: 1.2rem 1.5rem; /* 内边距 */
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    border-radius: 15px; /* 圆角边框 */
    text-decoration: none; /* 去除下划线 */
    color: #fff; /* 文字颜色 */
    transition: all 0.3s ease; /* 过渡动画 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 边框 */
    min-width: 100px; /* 最小宽度 */
}

/* 社交链接悬停效果 */
.social-link:hover {
    background: rgba(255, 255, 255, 0.2); /* 悬停时背景变亮 */
    transform: translateY(-5px); /* 悬停时上移效果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* 悬停时阴影增强 */
}

/* 社交图标样式 */
.social-link i {
    font-size: 1.8rem; /* 图标大小 */
}

/* 社交链接文字样式 */
.social-link span {
    font-size: 0.9rem; /* 字体大小 */
    font-weight: 500; /* 字体粗细 */
}

/* 响应式设计 - 平板设备适配 */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column; /* 垂直排列 */
        text-align: center; /* 文字居中 */
        gap: 1.5rem; /* 子元素间距 */
    }
    
    .avatar-container {
        width: 120px; /* 头像容器宽度 */
        height: 120px; /* 头像容器高度 */
    }
    
    .name {
        font-size: 1.8rem; /* 姓名字体大小 */
    }
    
    .social-links {
        gap: 1rem; /* 社交链接间距 */
    }
    
    .social-link {
        padding: 1rem 1.2rem; /* 社交链接内边距 */
        min-width: 90px; /* 社交链接最小宽度 */
    }
}

/* 响应式设计 - 移动设备适配 */
@media (max-width: 480px) {
    .content {
        width: 95%; /* 内容宽度 */
    }
    
    .profile-card, .social-card {
        padding: 1.5rem; /* 卡片内边距 */
    }
    
    .name {
        font-size: 1.6rem; /* 姓名字体大小 */
    }
    
    .social-links {
        flex-direction: column; /* 垂直排列 */
        align-items: center; /* 水平居中 */
    }
    
    .social-link {
        width: 100%; /* 宽度100% */
        max-width: 200px; /* 最大宽度限制 */
        flex-direction: row; /* 水平排列 */
        justify-content: flex-start; /* 左对齐 */
    }
}