/* 通用基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #6912122c;
    /* background-image: url("../img/bodybg.jpg");
    background-size: cover; */
}

/* 个人主页背景 */
.header {
    width: 100%;
    height: 240px;
    background-image: url("../img/bg2.jpg"); /* 替换为你的背景图 */
    background-size: cover ;
    background-position: center;
    position: relative;
}

/* 添加一个半透明遮罩，提升可读性 */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* 头像和名称居中 */
.profile-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.profile-info .profile-pic {
    width: 100px;
    height: 120px;
    border-radius: 45%;
    border: 3px solid white;
    object-fit: cover;
}

.profile-info h2 {
    margin-top: 5px;
    font-size: 1.5rem;
}

.language-link {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.language-link:hover {
    background: rgba(255, 255, 255, 1);
}

/* 容器布局 */
/* 主要内容区域覆盖在背景上 */
.contentContainer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    backdrop-filter: blur(10px);           /* 模糊背景（注意部分浏览器兼容性） */
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: -60px auto 10px; /* 负上边距使其覆盖背景 */
    padding: 40px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 头像区域 */
.myPhoto {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.profile {
    width: 200px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* 详细信息区域 */
.detail {
    flex: 2;
    min-width: 300px;
}

.title1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* 链接样式 */
.detail a {
    display: block;
    margin: 15px 0;
    padding: 12px 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.3s;
}

.detail a:hover {
    background-color: #e0e0e0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    margin-top: auto;
}

#typing-container {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    color: #84353d;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    margin-top: 100px; /* 增加顶部外边距来避免覆盖 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #typing-container{
        display: none;
    }

    html {
        font-size: 14px;
    }

    .contentContainer {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .profile {
        width: 150px;
        height: 200px;
    }

    .title1 {
        font-size: 1.8rem;
    }

    .detail a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;  /* 增加下边距来避免与其他内容重叠 */
    }

    .header {
        height: 250px;
    }

    .profile-info .profile-pic {
        width: 100px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile {
        width: 120px;
        height: 120px;
    }

    .title1 {
        font-size: 1.5rem;
    }

    .header {
        height: 220px;
    }

    .profile-info .profile-pic {
        width: 80px;
        height: 100px;
    }
}
