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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #ed5616;
    background-image: url('background.jpg'); /* 添加背景图片 */
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-attachment: fixed; /* 固定背景图片，滚动时不会移动 */
    height: 100vh; /* 设置body高度为视口高度 */
    overflow-y: scroll; /* 允许垂直滚动 */
    position: relative;
    scroll-snap-type: y mandatory; /* 开启垂直方向的scroll snap */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
}

header h1 {
    color: #e77d19;
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

/* 个人信息区域 */
.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.photo-container {
    margin-right: 30px;
}

#profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0bb9ed;
}

.info {
    flex: 1;
}

.info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.email-link {
    color: #f17928;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* 模块导航 */
.module-nav {
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 15px;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.module-nav ul {
    display: flex;
    list-style: none;
}

.module-nav li {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.module-nav li:hover {
    background-color: rgba(236, 240, 241, 0.7);
}

.module-nav li.active {
    background-color: rgba(213, 245, 227, 0.7);
    color: #2f99d6;
    font-weight: bold;
}

/* 简历内容区域 */
.resume-content {
    position: relative;
}

.module {
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px; /* 移除模块之间的marginBottom，确保模块紧凑排列 */
    animation: fadeIn 0.5s ease;
    scroll-snap-align: start; /* 模块在滚动容器顶部对齐时停止 */
}

.module.active {
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 模块头部 */
.module-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #3dcad1;
    padding-bottom: 10px;
}

.module-header h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.module-header h3 i {
    margin-right: 10px;
    color: #389ad8;
}

/* 模块主体 */
.module-body {
    margin-left: 20px;
}

.education-item, .experience-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(236, 240, 241, 0.7);
}

.education-item:last-child, .experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.skill-item i {
    margin-right: 10px;
    color: #30bee5;
    font-size: 18px;
}

.skill-info p {
    margin: 0;
}
