/* 自我介绍页面样式 */
.about-page {
    background-color: #181D25;
    background-image: url('../assets/texture.png');
    background-repeat: repeat;
    background-size: 500px 500px;
    background-blend-mode: overlay;
    overflow: hidden;
}

.about-container {
    display: flex;
    height: 100vh;
}

/* 左侧：照片和标题 */
.about-left {
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
}

.about-profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.profile-card {
    background-color: #fff; /* 白色背景 */
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    padding: 20px; /* 内边距 */
    text-align: center; /* 内容居中 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
    max-width: 400px; /* 最大宽度 */
    margin: 0 auto; /* 居中 */
}


/* 姓名区 */
.name-section {
    text-align: center;
    margin-top: 20px;
}

.name-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #333;
    margin: 0;
}

.name-section h2 {
    font-family: 'Anek Latin', sans-serif;
    font-size: 24px;
    color: #666;
    margin: 10px 0;
}

.name-section p {
    font-family: 'Anek Latin', sans-serif;
    font-size: 18px;
    color: #999;
    margin: 0;
}

/* 联系方式 */
.contact-section {
    text-align: center;
    margin-top: 30px;
}

.contact-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.contact-section p {
    font-family: 'Anek Latin', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.contact-section a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #0056b3;
}

/* 语言切换按钮容器 */
.language-switcher {
    display: flex;
    justify-content: center; /* 水平居中 */
    gap: 10px; /* 按钮间距 */
    margin-top: 20px;
}

/* 语言切换按钮 */
.language-switcher button {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border: 1px solid #ccc; /* 浅灰色边框 */
    border-radius: 5px; /* 圆角 */
    color: #333; /* 文字颜色 */
    font-family: 'Anek Latin', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease; /* 添加过渡效果 */
    padding: 8px 16px; /* 内边距 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    flex: 1; /* 让按钮均匀分布 */
    max-width: 80px; /* 最大宽度 */
    text-align: center; /* 文字居中 */
}


/* 鼠标悬停效果 */
.language-switcher button:hover {
    background-color: #ffcc00; /* 悬停时背景变为黄色 */
    color: #000; /* 悬停时文字变为黑色 */
    border-color: #ffcc00; /* 悬停时边框变为黄色 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 悬停时阴影加深 */
}

/* 当前选中按钮样式 */
.language-switcher button.active {
    background-color: #ffcc00; /* 选中时背景变为黄色 */
    color: #000; /* 选中时文字变为黑色 */
    border-color: #ffcc00; /* 选中时边框变为黄色 */
    font-weight: bold; /* 选中时文字加粗 */
}

/* 右侧：文字内容 */
.about-right {
    width: 60%;
    margin-left: 40%;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.content-row {
    display: flex;
    margin-bottom: 40px;
}

.content-title {
    width: 40%;
    padding-right: 20px;
    text-align: left;
    font-family: 'Playfair Display',  serif;
    color:#dcdcdc;
}

/* 大标题字体 */
.about-right .content-title h2 {
    font-family: 'Playfair Display', serif; /* 默认字体 */
    color:#dcdcdc;
}

.content-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #dcdcdc;
    margin-bottom: 20px;
    position: relative;
}

.content-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 20px;
    height: 3px;
    background-color: #ffcc00; /* 标题下划线 */
}

/* 中文情况下的大标题字体 */
[lang="zh-Hans"] .about-right .content-title h2,
[lang="zh-Hant"] .about-right .content-title h2 {
    font-family: 'Microsoft YaHei', sans-serif !important; /* 使用 SmilySans */
    font-weight: 350;
}

.content-text {
    width: 70%;
    text-align: justify;
    text-justify: inter-ideograph;
    color: #dcdcdc;
}

.content-text ul {
    list-style: none;
    padding: 0;
}

.content-text ul li {
    margin-bottom: 20px;
}

/* 项目经验中的 > 符号 */
.content-text ul li > em {
    font-style: normal;
    color: #dcdcdc; /* 黑色 */
    font-weight: bold;
}

/* 技能部分样式 */
.skill-category {
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 20px;
    color: #dcdcdc;
    margin: 0 0 5px 0;
}

/* Skills 部分的内容标题字体 */
.about-right .skill-category h3 {
    font-family: 'Playfair Display', serif; /* 默认字体 */
}

/* 中文情况下的 Skills 部分内容标题字体 */
[lang="zh-Hans"] .about-right .skill-category h3,
[lang="zh-Hant"] .about-right .skill-category h3 {
    font-family: 'Microsoft YaHei', sans-serif !important; /* 使用 SmilySans */
    font-weight: 350;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    font-family: 'Anek Latin', sans-serif;
    font-size: 16px;
    color: #929292;
    margin-bottom: 5px;
}

.skill-category ul li::before {
    content: "•";
    color: #007BFF;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* DOI 链接样式 */
.content-text a {
    color: #007BFF; /* 蓝色链接 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-text a:hover {
    color: #0056b3; /* 深蓝色悬停效果 */
}

.content-text a em {
    font-style: normal;
    font-weight: bold;
    color: #007BFF; /* 蓝色 */
}

/* 移动端样式 */
@media (max-width: 768px) {

    .about-page {
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #00000000;
        background-image: url('../assets/texture-bg.png');
    }

    /* 隐藏桌面端头像 */
    .desktop-profile {
        display: none !important; /* 强制隐藏 */
    }
    
    /* 整体布局 */
    .about-container {
        flex-direction: column; /* 上下排列 */
        align-items: center; /* 子元素居中 */
    }

    /* 左侧内容 */
    .about-left {
        width: 100%; /* 占满整个宽度 */
        height: auto; /* 高度自适应 */
        position: static; /* 取消固定定位 */
        padding: 20px; /* 调整内边距 */
        text-align: center; /* 内容居中 */
    }

    .profile-card {
        max-width: 90%; /* 缩小卡片宽度 */
        margin: 5vh 5vh 0 5vh; /* 居中并增加上下边距 */
    }

    /* 头像 */
    .mobile-profile {
        width: 120px; /* 缩小头像尺寸 */
        height: 120px;
        border-radius: 50%; /* 圆形 */
        object-fit: cover; /* 保持图片比例 */
        margin: 0 auto 15px; /* 居中并调整间距 */
    }

    .about-profile-image {
        width: 120px; /* 缩小头像尺寸 */
        height: 120px;
        border-radius: 50%; /* 圆形头像 */
        object-fit: cover; /* 保持图片比例 */
        margin: 0 auto 15px; /* 居中并调整间距 */
    }

    /* 姓名区 */
    .name-section {
        text-align: center; /* 文本居中 */
    }

    .name-section h1 {
        font-size: 24px; /* 缩小字体 */
        margin: 0;
    }

    .name-section h2 {
        font-size: 18px; /* 缩小字体 */
        margin: 5px 0;
    }

    .name-section p {
        font-size: 14px; /* 缩小字体 */
        margin: 5px 0;
    }

    /* 联系方式 */
    .contact-section {
        text-align: center; /* 文本居中 */
    }

    .contact-section h3 {
        font-size: 18px; /* 缩小字体 */
        margin: 10px 0 5px;
    }

    .contact-section p {
        font-size: 14px; /* 缩小字体 */
        margin: 5px 0;
    }

    .contact-section a {
        font-size: 14px; /* 缩小字体 */
    }

    /* 语言切换按钮 */
    .language-switcher {
        display: flex;
        justify-content: center; /* 按钮居中 */
        gap: 10px; /* 按钮间距 */
        margin-top: 15px; /* 调整间距 */
    }

    .language-switcher button {
        font-size: 14px; /* 缩小字体 */
        padding: 6px 12px; /* 调整内边距 */
        margin: 5px; /* 调整间距 */
    }

    /* 右侧内容 */
    .about-right {
        width: 100%; /* 占满整个宽度 */
        margin-left: 0; /* 取消左侧留白 */
        padding: 20px; /* 调整内边距 */
        overflow-y: visible; /* 取消滚动 */
        height: auto; /* 高度自适应 */
    }

    .about-right .content-row {
        padding: 0 20px; /* 左右留空 */
    }

    /* 内容行 */
    .content-row {
        flex-direction: column; /* 垂直排列 */
        margin-bottom: 20px; /* 调整间距 */
        text-align: left; /* 文本居中 */
    }

    /* 标题 */
    .content-title {
        width: 100%; /* 占满整个宽度 */
        padding-right: 0; /* 取消右侧留白 */
        text-align: left; /* 标题居中 */
        margin-bottom: 10px; /* 与内容的间距 */
    }

    .content-title h2 {
        font-size: 20px; /* 缩小字体 */
        margin-bottom: 5px; /* 调整间距 */
    }

    /* 内容 */
    .content-text {
        width: 100%; /* 占满整个宽度 */
        text-align: adjusted; /* 文本居中 */
        align-items: center; /* 子元素居中 */
    }

    .content-text p {
        font-size: 14px; /* 缩小字体 */
        margin-bottom: 10px; /* 调整间距 */
        align-items: center; /* 子元素居中 */
    }
}

/* 桌面端样式 */
@media (min-width: 769px) {
    /* 隐藏移动端头像 */
    .mobile-profile {
        display: none;
    }

    /* 显示桌面端头像 */
    .desktop-profile {
        display: block;
    }
}

/* 隐藏滚动条同时保持可滚动 */
body {
    -ms-overflow-style: none;  /* IE 和 Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Chrome, Safari 和 Opera */
body::-webkit-scrollbar {
    display: none;
}