/* 自定义字体定义：从 HTML 中移入 CSS 统一管理 */
@font-face {
  font-family: "diqishijie"; /* 定义字体名称为"diqishijie"（第七世界） */
  src: url("./font/diqishijie.woff2"); /* 引入自定义苍耳字体文件，路径为当前目录下的font文件夹 */
  font-display: swap; /* 性能优化：字体加载期间使用备用字体，加载完成后替换，确保文本始终可见 */
}

/* 全局样式重置与基础设置 */
* {
  margin: 0; /* 清除所有元素默认外边距 */
  padding: 0; /* 清除所有元素默认内边距 */
  box-sizing: border-box; /* 盒模型设置为border-box：width和height包含边框和内边距 */
}

body {
  font-family: "微软雅黑",  "PingFang SC",  "MiSans", "OPPO Sans", "Noto Sans SC","sans-serif"; /* 字体栈：优先使用微软雅黑，其次是Noto Sans SC，最后是系统默认无衬线字体 */
  line-height: 1.6; /* 设置行高为字体大小的1.6倍，提升可读性 */
  color: #606060; /* 默认文本颜色为深灰色 */
}

.container {
  max-width: 1200px; /* 容器最大宽度限制为1200px */
  margin: 0 auto; /* 水平居中显示 */
  padding: 0 20px; /* 左右内边距20px，防止内容贴边 */
}

/* 自定义字体类：用于需要应用"diqishijie"字体的元素 */
.custom-font,
.nav-custom-font { /* 合并重复的字体定义 */
  font-family: 'diqishijie'; /* 应用自定义字体 */
}

.nav-custom-font {
  margin-left: 10px; /* 左侧外边距10px，调整导航项间距 */
}

/* 导航栏样式 */
.navbar {
  position: fixed; /* 固定定位：导航栏始终停留在视口顶部 */
  top: 0; /* 距离顶部0px */
  width: 100%; /* 宽度占满整个视口 */
  background: rgba(255, 255, 255, 0.95); /* 背景为白色，透明度95% */
  backdrop-filter: blur(10px); /* 背景模糊效果，增强视觉层次感 */
  z-index: 1000; /* 层级设置为1000，确保在其他元素上方 */
  transition: all 0.3s ease; /* 所有属性变化时添加0.3s过渡动画，缓动效果 */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); /* 底部阴影，增强立体感 */
  will-change: background, box-shadow; /* 性能优化：提示浏览器这些属性可能会变化，提前做好渲染准备 */
}

.nav-container {
  max-width: 1200px; /* 导航容器最大宽度1200px */
  margin: 0 auto; /* 水平居中 */
  padding: 0 20px; /* 左右内边距20px */
  display: flex; /* 使用flex布局 */
  justify-content: space-between; /* 子元素两端对齐（logo居左，菜单居右） */
  align-items: center; /* 子元素垂直居中 */
  height: 70px; /* 导航栏高度70px */
}

.nav-logo {
  display: flex; /* flex布局：让图标和文字水平排列 */
  align-items: center; /* 垂直居中对齐 */
  font-size: 1.5rem; /* 字体大小1.5rem（相对于根元素字体大小） */
  font-weight: 700; /* 字体加粗 */
  color: #ab7167; /* 颜色为#ab7167 */
}

.nav-logo i {
  margin-right: 10px; /* 图标右侧外边距10px，与文字隔开 */
  font-size: 1.8rem; /* 图标字体大小1.8rem */
}

.nav-menu {
  display: flex; /* 导航菜单使用flex布局，水平排列 */
  list-style: none; /* 去除列表默认样式（圆点） */
  gap: 30px; /* 菜单项之间间距30px */
}

.nav-menu a {
  text-decoration: none; /* 去除链接默认下划线 */
  color: #606060; /* 链接文字颜色深灰色 */
  font-weight: 500; /* 字体中等加粗 */
  transition: all 0.3s ease; /* 所有属性变化添加0.3s过渡 */
  position: relative; /* 相对定位：为伪元素提供定位基准 */
  padding: 5px 0; /* 上下内边距5px，为底部边框留出空间 */
}

/* 导航链接悬停动画：底部边框动态扩展效果 */
.nav-menu a::after {
  content: ''; /* 伪元素内容为空 */
  position: absolute; /* 绝对定位 */
  bottom: 0; /* 位于链接底部 */
  left: 50%; /* 水平居中起点 */
  transform: translateX(-50%); /* 水平居中调整 */
  width: 0; /* 初始宽度为0（不可见） */
  height: 2px; /* 边框高度2px */
  background: #ffbeb3; /* 边框颜色为#ffbeb3 */
  border-radius: 1px; /* 轻微圆角 */
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1); /* 过渡动画，使用自定义缓动函数 */
}

.nav-menu a:hover {
  color: #ffbeb3; /* 悬停时文字颜色变为#ffbeb3 */
}

.nav-menu a:hover::after {
  width: 100%; /* 悬停时底部边框宽度变为100%（全屏显示） */
  box-shadow: 0 0 5px #ffbeb3, 0 0 10px #ffbeb3; /* 边框发光效果，增强视觉吸引力 */
}

/* 移动端汉堡菜单样式（带动画效果） */
.hamburger {
  display: none; /* 默认隐藏汉堡菜单（桌面端不显示） */
  flex-direction: column; /* 垂直排列三条线 */
  cursor: pointer; /* 鼠标悬停时显示手型指针 */
  width: 30px; /* 宽度30px */
  height: 20px; /* 高度20px */
  justify-content: space-between; /* 三条线均匀分布 */
}

.hamburger span {
  width: 100%; /* 线宽占满容器 */
  height: 3px; /* 线高3px */
  background: #606060; /* 线颜色深灰色 */
  border-radius: 1px; /* 轻微圆角 */
  transition: all 0.3s ease-in-out; /* 所有属性变化添加0.3s过渡 */
  transform-origin: left; /* 变换原点设置为左侧，使旋转更自然 */
}

/* 汉堡菜单激活状态（点击后）的动画效果 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg); /* 第一条线顺时针旋转45度 */
  width: 120%; /* 宽度略微增加到120%，增强视觉效果 */
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* 第二条线透明度变为0（隐藏） */
  transform: translateX(-10px); /* 向左移动10px，配合消失动画 */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg); /* 第三条线逆时针旋转45度 */
  width: 120%; /* 宽度略微增加到120% */
}

/* 英雄区域（首屏展示区）样式 */
.hero {
  height: 100vh; /* 高度为整个视口高度 */
  display: flex; /* flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  position: relative; /* 相对定位：为子元素提供绝对定位基准 */
  background: linear-gradient(135deg, #82cde0 60%, #ffddc0 100%); /* 背景为蓝紫色渐变 */
  color: white; /* 文本颜色为白色 */
  text-align: center; /* 文本居中对齐 */
}

.hero-bg {
  position: absolute; /* 绝对定位：覆盖整个英雄区 */
  top: 0; /* 顶部对齐 */
  left: 0; /* 左侧对齐 */
  width: 100%; /* 宽度100% */
  height: 100%; /* 高度100% */
  /* 使用SVG Data URL作为背景图案，避免额外HTTP请求 */
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3; /* 透明度30%，使图案更柔和 */
}

.hero-content {
  position: relative; /* 相对定位：确保在背景图案上方 */
  z-index: 2; /* 层级2，高于背景 */
  max-width: 800px; /* 最大宽度800px，防止内容过宽 */
  padding: 0 20px; /* 左右内边距20px */
}

.hero-avatar {
  margin-bottom: 30px; /* 底部外边距30px，与下方内容隔开 */
  padding-top: 60px; /* 顶部内边距60px，调整位置 */
}

.avatar-circle {
  width: 150px; /* 头像容器宽度150px */
  height: 150px; /* 头像容器高度150px */
  border-radius: 50%; /* 圆形容器 */
  background: rgba(255, 255, 255, 0.2); /* 背景为白色，透明度20% */
  display: flex; /* flex布局：内部图标居中 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  margin: 0 auto; /* 水平居中 */
  border: 4px solid rgba(255, 255, 255, 0.3); /* 边框为白色，透明度30% */
}

.avatar-circle i {
  font-size: 5rem; /* 图标大小5rem */
  color: #ffbeb3; /* 图标颜色#ffbeb3 */
}

.hero-title {
  font-size: 4rem; /* 标题大小4rem */
  font-weight: 700; /* 加粗 */
  margin-bottom: 20px; /* 底部外边距20px */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 文字阴影，增强立体感 */
}

.hero-subtitle {
  font-size: 1.3rem; /* 副标题大小1.3rem */
  font-family: "宋体", "Noto Sans SC", "sans-serif"; /* 字体栈设置 */
  margin-bottom: 20px; /* 底部外边距20px */
  color: #f3e5e2; /* 颜色#f3e5e2 */
  font-weight: 300; /* 低等加粗 */
}

.hero-description {
  font-size: 1.2rem; /* 描述文字大小1.2rem */
  margin-bottom: 40px; /* 底部外边距40px */
  opacity: 0.9; /* 透明度90%，略微淡化 */
  font-weight: 300; /* 低等加粗 */
  color: #ecf6f5; /* 颜色#ecf6f5 */
}

.hero-buttons {
  display: flex; /* 按钮容器flex布局 */
  gap: 20px; /* 按钮之间间距20px */
  justify-content: center; /* 水平居中 */
  flex-wrap: wrap; /* 小屏幕时自动换行 */
}

/* 通用按钮样式 */
.btn {
  padding: 15px 30px; /* 内边距：上下15px，左右30px */
  border: none; /* 去除边框 */
  border-radius: 50px; /* 圆角50px，使按钮呈胶囊状 */
  font-size: 1.1rem; /* 字体大小1.1rem */
  font-weight: 100; /* 字体粗细 */
  text-decoration: none; /* 去除链接下划线（当按钮是a标签时） */
  cursor: pointer; /* 鼠标悬停时显示手型 */
  transition: all 0.3s ease; /* 所有属性变化添加0.3s过渡 */
  display: inline-block; /* 确保padding等样式生效 */
}

/* 主要按钮样式 */
.btn-primary {
  background: #d39288; /* 背景#d39288 */
  color: white; /* 文字白色 */
  font-family: "黑体", "Source Sans Pro", "Noto Sans SC", "sans-serif"; /* 字体栈设置 */
  font-weight: 100; /* 中等加粗 */
}

.btn-primary:hover {
  background: #7d544d; /* 悬停时背景颜色加深 */
  transform: translateY(-2px); /* 向上移动2px，产生浮起效果 */
  box-shadow: 0 10px 20px rgba(255, 190, 179, 0.3); /* 底部阴影，增强浮起感 */
}

/* 次要按钮样式 */
.btn-secondary {
  background: transparent; /* 背景透明 */
  color: white; /* 文字白色 */
  border: 1px solid #fbfbfa; /* 边框颜色 */
  font-family: "宋体", "Noto Sans SC", "sans-serif"; /* 字体栈设置 */
}

.btn-secondary:hover {
  background: white; /* 悬停时背景变为白色 */
  color: #ffbeb3; /* 文字颜色变为#ffbeb3 */
  transform: translateY(-2px); /* 向上移动2px */
}

/* 关于我部分样式 */
.about {
  padding: 100px 0; /* 上下内边距100px，左右0 */
  background: #f8f9fa; /* 背景为浅灰色 */
}

/* 通用 section 标题样式 */
.section-title {
  text-align: center; /* 文字居中 */
  font-size: 3rem; /* 字体大小3rem */
  font-weight: 500; /* 中等加粗 */
  margin-bottom: 60px; /* 底部外边距60px */
  color: #5a5959; /* 颜色为深灰色 */
  position: relative; /* 相对定位：为下方装饰线提供基准 */
}

.section-title::after {
  content: ''; /* 伪元素内容为空 */
  position: absolute; /* 绝对定位 */
  bottom: -10px; /* 位于标题下方10px */
  left: 50%; /* 水平居中起点 */
  transform: translateX(-50%); /* 水平居中调整 */
  width: 80px; /* 宽度80px */
  height: 4px; /* 高度4px */
  background: #ffbeb3; /* 背景#ffbeb3 */
  border-radius: 2px; /* 轻微圆角 */
}

.about-grid {
  display: grid; /* 网格布局 */
  grid-template-columns: 2fr 1fr; /* 两列，比例2:1 */
  gap: 60px; /* 列之间间距60px */
  align-items: start; /* 顶部对齐 */
}

.about-text h3 {
  font-size: 2rem; /* 标题大小2rem */
  font-weight: 500; /* 中等加粗 */
  margin-bottom: 30px; /* 底部外边距30px */
  color: #676666; /* 颜色深灰色 */
}

.info-grid {
  display: grid; /* 网格布局 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自动适应列数，每列最小300px */
  gap: 20px; /* 网格项间距20px */
  margin-bottom: 30px; /* 底部外边距30px */
}

.info-item {
  display: flex; /* flex布局 */
  align-items: center; /* 垂直居中 */
  gap: 15px; /* 图标与文字间距15px */
  padding: 20px; /* 内边距20px */
  background: white; /* 白色背景 */
  border-radius: 10px; /* 圆角10px */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  transition: transform 0.3s ease; /* 变换过渡动画 */
}

.info-item:hover {
  transform: translateY(-5px); /* 悬停时向上移动5px */
}

.info-item i {
  font-size: 1.5rem; /* 图标大小1.5rem */
  color: #ffbeb3; /* 图标颜色#ffbeb3 */
  min-width: 30px; /* 最小宽度30px，确保图标对齐 */
}

.about-description {
  font-size: 1.1rem; /* 文字大小1.1rem */
  line-height: 1.8; /* 行高1.8倍 */
  color: #666; /* 颜色中灰色 */
  background: white; /* 白色背景 */
  padding: 30px; /* 内边距30px */
  border-radius: 10px; /* 圆角10px */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.about-stats {
  background: white; /* 白色背景 */
  padding: 40px; /* 内边距40px */
  border-radius: 15px; /* 圆角15px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  text-align: center; /* 文字居中 */
}

.about-stats h3 {
  font-size: 1.8rem; /* 标题大小1.8rem */
  margin-bottom: 30px; /* 底部外边距30px */
  color: #606060; /* 颜色深灰色 */
  font-weight: 500; /* 加粗 */
}

.stat-item {
  margin-bottom: 30px; /* 底部外边距30px */
}

.stat-number {
  font-size: 3rem; /* 数字大小3rem */
  font-weight: 500; /* 加粗 */
  color: #ffbeb3; /* 颜色#ffbeb3 */
  margin-bottom: 5px; /* 底部外边距5px */
}

.stat-label {
  font-size: 1rem; /* 标签文字大小1rem */
  color: #666; /* 颜色中灰色 */
  font-weight: 500; /* 中等加粗 */
}

/* 神通法术部分（技能/能力展示）样式 */
.abilities {
  padding: 100px 0; /* 上下内边距100px */
  background: white; /* 白色背景 */
}

.abilities-grid {
  display: grid; /* 网格布局 */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 自动适应列数，每列最小350px */
  gap: 30px; /* 网格项间距30px */
}

.ability-card {
  background: #f8f9fa; /* 浅灰色背景 */
  padding: 40px; /* 内边距40px */
  border-radius: 15px; /* 圆角15px */
  text-align: center; /* 文字居中 */
  transition: all 0.3s ease; /* 所有属性过渡动画 */
  border: 2px solid transparent; /* 透明边框（为hover状态准备） */
}

.ability-card:hover {
  transform: translateY(-10px); /* 悬停时向上移动10px */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* 增强阴影效果 */
  border-color: #ffbeb3; /* 边框变为#ffbeb3 */
}

.ability-icon {
  width: 80px; /* 图标容器宽度80px */
  height: 80px; /* 图标容器高度80px */
  background: linear-gradient(135deg, #ffbeb3, #ff9e80); /* #ffbeb3渐变背景 */
  border-radius: 50%; /* 圆形容器 */
  display: flex; /* flex布局：图标居中 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  margin: 0 auto 20px; /* 水平居中，底部外边距20px */
}

.ability-icon i {
  font-size: 2rem; /* 图标大小2rem */
  color: white; /* 图标颜色白色 */
}

.ability-card h3 {
  font-size: 1.5rem; /* 标题大小1.5rem */
  font-weight: 500; /* 中等加粗 */   
  margin-bottom: 15px; /* 底部外边距15px */
  color: #606060; /* 颜色深灰色 */
}

.ability-card p {
  color: #666; /* 颜色中灰色 */
  line-height: 1.6; /* 行高1.6倍 */
}

/* 取经之路部分（时间线/经历展示）样式 */
.journey {
  padding: 100px 0; /* 上下内边距100px */
  background: #f8f9fa; /* 浅灰色背景 */
}

.timeline {
  position: relative; /* 相对定位：为时间线中轴线提供基准 */
  max-width: 800px; /* 最大宽度800px */
  margin: 0 auto; /* 水平居中 */
}

.timeline::before {
  content: ''; /* 伪元素内容为空 */
  position: absolute; /* 绝对定位 */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 水平居中调整 */
  width: 4px; /* 线宽4px */
  height: 100%; /* 高度100% */
  background: #ffbeb3; /* 颜色#ffbeb3 */
  border-radius: 2px; /* 轻微圆角 */
}

.timeline-item {
  position: relative; /* 相对定位：为时间点提供基准 */
  margin-bottom: 50px; /* 底部外边距50px */
  width: 50%; /* 宽度占父容器一半 */
}

/* 奇数项时间点（左侧） */
.timeline-item:nth-child(odd) {
  left: 0; /* 左对齐 */
  padding-right: 40px; /* 右侧内边距40px */
  text-align: right; /* 文字右对齐 */
}

/* 偶数项时间点（右侧） */
.timeline-item:nth-child(even) {
  left: 50%; /* 右移50%，位于右侧 */
  padding-left: 40px; /* 左侧内边距40px */
  text-align: left; /* 文字左对齐 */
}

.timeline-marker {
  position: absolute; /* 绝对定位 */
  top: 0; /* 顶部对齐 */
  width: 20px; /* 宽度20px */
  height: 20px; /* 高度20px */
  background: #ffbeb3; /* 颜色#ffbeb3 */
  border-radius: 50%; /* 圆形 */
  border: 4px solid white; /* 白色边框 */
  box-shadow: 0 0 0 4px #ffbeb3; /* #ffbeb3外阴影，增强立体感 */
}

/* 奇数项时间点位置 */
.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px; /* 位于右侧，超出容器10px（与中轴线对齐） */
}

/* 偶数项时间点位置 */
.timeline-item:nth-child(even) .timeline-marker {
  left: -10px; /* 位于左侧，超出容器10px（与中轴线对齐） */
}

.timeline-content {
  background: white; /* 白色背景 */
  padding: 30px; /* 内边距30px */
  border-radius: 10px; /* 圆角10px */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  transition: transform 0.3s ease; /* 变换过渡动画 */
}

.timeline-content:hover {
  transform: translateY(-5px); /* 悬停时向上移动5px */
}

.timeline-content h3 {
  font-size: 1.5rem; /* 标题大小1.5rem */
  font-weight: 500; /* 中等加粗 */
  margin-bottom: 10px; /* 底部外边距10px */
  color: #606060; /* 颜色深灰色 */
}

.timeline-content p {
  color: #666; /* 颜色中灰色 */
  font-weight: 500; /* 中等加粗 */
  line-height: 1.6; /* 行高1.6倍 */
}

/* 联系方式部分样式 */
.contact {
  padding: 100px 0; /* 上下内边距100px */
  background: white; /* 白色背景 */
}

.contact-grid {
  display: grid; /* 网格布局 */
  grid-template-columns: 1fr 1fr; /* 两列，各占1份 */
  gap: 60px; /* 列间距60px */
}

.contact-info h3,
.contact-form h3 {
  font-size: 2rem; /* 标题大小2rem */
  font-weight: 500; /* 中等加粗 */
  margin-bottom: 30px; /* 底部外边距30px */
  color: #606060; /* 颜色深灰色 */
}

.contact-item {
  display: flex; /* flex布局 */
  align-items: center; /* 垂直居中 */
  gap: 15px; /* 图标与文字间距15px */
  margin-bottom: 20px; /* 底部外边距20px */
  padding: 20px; /* 内边距20px */
  background: #f8f9fa; /* 浅灰色背景 */
  border-radius: 10px; /* 圆角10px */
  transition: transform 0.3s ease; /* 变换过渡动画 */
}

.contact-item:hover {
  transform: translateX(10px); /* 悬停时向右移动10px */
}

.contact-item i {
  font-size: 1.5rem; /* 图标大小1.5rem */
  color: #ffbeb3; /* 图标颜色#ffbeb3 */
  min-width: 30px; /* 最小宽度30px，确保图标对齐 */
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px; /* 底部外边距20px */
}

.form-group input,
.form-group textarea {
  width: 100%; /* 宽度100% */
  padding: 15px; /* 内边距15px */
  border: 2px solid #e9ecef; /* 边框颜色浅灰色 */
  border-radius: 10px; /* 圆角10px */
  font-size: 1rem; /* 字体大小1rem */
  transition: border-color 0.3s ease; /* 边框颜色过渡动画 */
  font-family: inherit; /* 继承父元素字体（确保textarea字体一致） */
}

/* 表单元素聚焦状态 */
.form-group input:focus,
.form-group textarea:focus {
  outline: none; /* 去除默认聚焦轮廓 */
  border-color: #ffbeb3; /* 边框颜色变为#ffbeb3 */
}

.form-group textarea {
  resize: vertical; /* 允许垂直方向调整大小 */
  min-height: 120px; /* 最小高度120px */
}

/* 页脚样式 */
.footer {
  background: linear-gradient(90deg, #796464, #5d4b4ba0); /* 背景为灰色渐变 */
  color: white; /* 文字白色 */
  padding: 40px 0; /* 上下内边距40px */
  text-align: center; /* 文字居中 */
}

.footer-content {
  display: flex; /* flex布局 */
  justify-content: space-between; /* 两端对齐 */
  align-items: center; /* 垂直居中 */
  flex-wrap: wrap; /* 小屏幕时自动换行 */
  gap: 20px; /* 元素间距20px */
}

.footer-text p {
  margin-bottom: 5px; /* 底部外边距5px */
}

.footer-social {
  display: flex; /* flex布局 */
  gap: 20px; /* 图标间距20px */
}

.footer-social a {
  color: white; /* 图标颜色白色 */
  font-size: 1.5rem; /* 图标大小1.5rem */
  transition: color 0.3s ease; /* 颜色过渡动画 */
}

.footer-social a:hover {
  color: #ffbeb3; /* 悬停时图标变为#ffbeb3 */
}

/* 响应式设计：平板及以下设备（最大宽度768px） */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* 显示汉堡菜单 */
  }
  
  .nav-menu {
    position: fixed; /* 固定定位 */
    left: -100%; /* 初始位置在左侧不可见区域 */
    top: 70px; /* 位于导航栏下方 */
    flex-direction: column; /* 垂直排列菜单 */
    background-color: white; /* 白色背景 */
    width: 100%; /* 宽度100% */
    text-align: center; /* 文字居中 */
    transition: 0.3s; /* 过渡动画 */
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); /* 阴影效果 */
    padding: 20px 0; /* 上下内边距20px */
  }
  
  .nav-menu.active {
    left: 0; /* 激活状态时移到可见区域 */
  }
  
  .hero-title {
    font-size: 2.5rem; /* 减小标题大小 */
  }
  
  .hero-buttons {
    flex-direction: column; /* 按钮垂直排列 */
    align-items: center; /* 水平居中 */
  }
  
  .about-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 40px; /* 间距40px */
  }
  
  .info-grid {
    grid-template-columns: 1fr; /* 单列布局 */
  }
  
  .abilities-grid {
    grid-template-columns: 1fr; /* 单列布局 */
  }
  
  .timeline::before {
    left: 20px; /* 时间线中轴线左移到20px位置 */
  }
  
  .timeline-item {
    width: 100%; /* 宽度100% */
    left: 0 !important; /* 强制左对齐 */
    padding-left: 60px !important; /* 左侧内边距60px */
    padding-right: 0 !important; /* 右侧内边距0 */
    text-align: left !important; /* 文字左对齐 */
  }
  
  .timeline-marker {
    left: 10px !important; /* 时间点左移到10px位置 */
    right: auto !important; /* 取消右侧定位 */
  }
  
  .contact-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 40px; /* 间距40px */
  }
  
  .footer-content {
    flex-direction: column; /* 垂直排列 */
    text-align: center; /* 文字居中 */
  }
}

/* 响应式设计：手机设备（最大宽度480px） */
@media (max-width: 480px) {
  .container {
    padding: 0 15px; /* 减小内边距 */
  }
  
  .hero-title {
    font-size: 2rem; /* 进一步减小标题大小 */
  }
  
  .section-title {
    font-size: 2rem; /* 减小section标题大小 */
  }
  
  .ability-card {
    padding: 30px 20px; /* 减小卡片内边距 */
  }
  
  .timeline-content {
    padding: 20px; /* 减小时间线内容内边距 */
  }
}

/* 动画效果定义 */
@keyframes fadeInUp {
  from {
    opacity: 0; /* 初始透明度0（不可见） */
    transform: translateY(30px); /* 初始位置向下30px */
  }
  to {
    opacity: 1; /* 结束透明度1（可见） */
    transform: translateY(0); /* 结束位置回到原位 */
  }
}

/* 应用淡入上移动画到英雄区内容 */
.hero-content > * {
  animation: fadeInUp 0.8s ease forwards; /* 应用动画，0.8s完成，保持结束状态 */
}

/* 为不同元素设置动画延迟，形成序列动画 */
.hero-title {
  animation-delay: 0.2s; /* 标题延迟0.2s开始 */
}

.hero-subtitle {
  animation-delay: 0.4s; /* 副标题延迟0.4s开始 */
}

.hero-description {
  animation-delay: 0.6s; /* 描述文字延迟0.6s开始 */
}

.hero-buttons {
  animation-delay: 0.8s; /* 按钮延迟0.8s开始 */
}

/* 滚动效果 */
html {
  scroll-behavior: smooth; /* 平滑滚动效果 */
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px; /* 滚动条宽度8px */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* 滚动条轨道背景浅灰色 */
}

::-webkit-scrollbar-thumb {
  background: #ffbeb3; /* 滚动条滑块颜色#ffbeb3 */
  border-radius: 4px; /* 滑块圆角4px */
}

::-webkit-scrollbar-thumb:hover {
  background: #ff9e80; /* 滑块悬停时颜色加深 */
}