body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* 防止水平滚动 */
}

.nav-container {
    padding: 40px 0;
    background-color: #1a1a1a;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;  /* 添加相对定位 */
}

.nav-list {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0 250px;
    position: relative;
    top: -10px;  /* 从-5px改为-10px，再向上移动5px */
    font-size: 20px; /* 增大字体大小，原来可能是16px或18px */
}

/* 让四个导航项固定在特定位置 */
.nav-list li {
    position: absolute;
}

.nav-list li:nth-child(1) { /* 作品集 */
    left: 335px;  /* 从350px改为335px，向左移动15px */
}

.nav-list li:nth-child(2) { /* 里程碑 */
    left: 640px;
}

.nav-list li:nth-child(3) { /* 联系方式 */
    left: 960px;
}

.nav-list li:nth-child(4) { /* VR展示厅 */
    left: 1280px;
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    font-size: 20px; /* 增大字体大小 */
}

.nav-list a:hover {
    color: #ccc;
}

.nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-list a:hover:after {
    width: 100%;
}

.hero-section {
    position: relative;
    padding: 60px 0;
    height: 540px;
}

.background-square {
    position: absolute;
    left: 0;
    top: 0;
    width: 36%;
    height: 100%;
    background-color: #e6ddd6;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;  /* 确保内容从顶部对齐 */
}

.profile-card {
    flex: 0 0 260px;
    background: #f0e9e4;
    padding: 40px 40px 0;
    text-align: center;
    box-shadow: -8px 0 15px -8px rgba(0,0,0,0.06);
    margin-left: 8%;
    z-index: 1;
    position: relative;
    height: 440px;
    animation: moveCard 1s ease-out forwards;
    transform-origin: left center;
}

@keyframes moveCard {
    0% {
        transform: translateX(-40%) translateY(20%);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    margin: 0 auto 20px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-name {
    font-size: 32px;
    margin: 25px 0 10px;
    font-weight: bold;
}

.profile-title {
    font-size: 14px;
    color: #333;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 25px;
}

.social-links {
    background: white;
    margin: 30px -40px 0;
    padding: 15px;  /* 改回统一的padding */
    display: flex;
    justify-content: center;
    align-items: center;  /* 改为center使图标垂直居中 */
    gap: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.social-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;  /* 改为center */
    justify-content: center;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.hero-content {
    flex: 1;
    padding: 40px 60px;
}

.hero-title {
    font-size: 72px;
    margin: 0;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 24px;
    margin: 20px 0 30px;
    font-weight: normal;
}

.cta-buttons {
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 15px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;  /* 移除链接下划线 */
    display: inline-block;  /* 让链接表现得像按钮 */
}

.btn-primary {
    background-color: #0066FF;
    color: white;
    border: none;
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid #333;
    padding: 12px 20px;  /* 调整padding以适应更长的文本 */
    white-space: nowrap;  /* 防止文本换行 */
}

.hero-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
    max-width: 600px;
}

/* 首页导航和标识区域 */
.home-header {
    position: relative;
    padding: 20px 40px 40px;  /* 减少顶部padding */
}

/* 导航样式 */
.home-header .header-nav {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-bottom: 40px;
}

.home-header .header-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.home-header .header-nav a:hover {
    color: #0066FF;
}

/* 左侧标识样式 */
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    margin-left: 0;
}

/* 蓝色方块和名字的容器 */
.header-name {
    font-weight: bold;
    position: relative;
    padding-left: 20px;
    margin-left: 0;  /* 移除左边距，让整体更靠左 */
}

.header-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #0066FF;
}

.header-separator {
    color: #666;
    margin: 0 5px;
}

.header-title {
    color: #666;
    font-size: 0.9em;
}

/* 作品集介绍部分的样式 */
.portfolio-intro {
    position: relative;
    padding: 80px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;  /* 确保内容不会溢出 */
}

.portfolio-description {
    max-width: 600px;
    margin-bottom: 80px;
}

/* 分隔线容器 */
.divider-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
}

/* 分隔线 */
.divider {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin: 0 -9999px;
    padding: 0 9999px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* 添加一条横线 */
.thin-divider {
    position: absolute;
    height: 1px;
    background-color: #e5e5e5;
    left: 280px;  /* 从230px增加到280px */
    width: calc(50% + 10px);
    bottom: 76px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-title {
    font-size: 80px;
    font-weight: bold;
    margin: 0 0 30px 0;
    color: #333;
}

.portfolio-description h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
    line-height: 1.4;
}

.portfolio-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 二级页面导航样式 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 40px 0;  /* 与里程碑页面一致 */
}

.site-header .header-nav {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0 250px;
    position: relative;
    top: -10px;  /* 与里程碑页面一致，使文字垂直居中 */
}

/* 四个导航项的具体位置 */
.site-header .header-nav a:nth-child(1) {
    position: absolute;
    left: 335px;  /* 与里程碑页面一致 */
}

.site-header .header-nav a:nth-child(2) {
    position: absolute;
    left: 640px;  /* 与里程碑页面一致 */
}

.site-header .header-nav a:nth-child(3) {
    position: absolute;
    left: 960px;  /* 与里程碑页面一致 */
}

.site-header .header-nav a:nth-child(4) {
    position: absolute;
    left: 1280px;  /* 与里程碑页面一致 */
}

.site-header .header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.site-header .header-nav a.active {
    opacity: 0.6;
}

.site-header .header-nav a:hover {
    opacity: 0.8;
}

/* 为了防止内容被固定导航遮挡 */
.portfolio-intro {
    margin-top: 100px;  /* 适应更长的导航栏 */
}

.featured-image {
    position: absolute;
    top: 80px;
    right: 120px;  /* 从80px改为120px，让图片向左移动 */
    width: 400px;
    height: 300px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 作品集网格容器 */
.portfolio-grid {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 320px);  /* 改为320px宽度 */
    gap: 40px;  /* 调整间距，确保对齐 */
    position: relative;
    justify-content: start;
}

/* 作品集项目卡片 */
.portfolio-item {
    width: 320px;
    height: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    position: relative;
    padding: 15px 15px 0 15px;  /* 保持原有的内边距 */
}

.portfolio-item-inner {
    background: white;
    border-radius: 8px;
}

.portfolio-item-image {
    width: 100%;
    height: 180px;  /* 恢复原有高度 */
    border-radius: 8px;
    background: #f8f8f8;
    overflow: hidden;
    margin-bottom: 15px;  /* 增加与标题的间距 */
}

.portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 标题样式 */
.portfolio-item-title {
    font-size: 14px;
    font-weight: normal;
    color: #0066FF;
    margin: 15px 0 8px 0;  /* 恢复与图片的间距 */
}

.portfolio-item-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}

.portfolio-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 12px;
}

/* 分类标题样式 */
.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1000px;
    margin: -20px auto 30px;
    padding: 0 40px;
}

.category-header::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #0066FF;
}

.category-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* 分类标题样式 - 第二个及之后的标题 */
.portfolio-grid + .category-header {
    margin: 60px auto 30px;
}

/* 卡片链接样式 */
.portfolio-item-link:hover {
    cursor: pointer;
}

/* 项目详情页面样式 */
.project-intro {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 250px 80px;
    transform: translateX(50px);
    gap: 60px;
    overflow-x: hidden;  /* 确保内容不会溢出 */
}

.intro-content {
    flex: 0 0 45%;
    padding-right: 0;
    transform: translateX(10px);
}

.project-title {
    font-size: 80px;
    font-weight: bold;
    margin: 0 0 30px 0;
    color: #333;
}

.project-description h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
    line-height: 1.4;
}

.project-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.intro-image {
    flex: 0 0 45%;
    position: relative;
    transform: translate(-10px, 3px);
}

/* 删除之前的伪元素 */
.intro-image::before {
    display: none;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 照片网格样式 */
.photo-grid {
    display: flex;
    max-width: 1200px;
    margin: -50px auto 10px;  /* 从-60px改为-50px，向下移动10px */
    padding: 0 330px;
    gap: 15px;
    overflow-x: hidden;
}

/* 里程碑页面的照片卡片样式 */
.milestone-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 105px;
    width: 162px;
    flex-shrink: 0;
}

.milestone-item-inner {
    margin: 5px;  /* 恢复内边距 */
    height: calc(100% - 10px);
    width: calc(100% - 10px);
    background: #f8f8f8;
    border-radius: 6px;
}

.milestone-item-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.milestone-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;  /* 从40%减少到20%让图片往上移 */
}

/* 导航当前页面样式 */
.nav-container .nav-list a.current {
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-weight: inherit;
}

/* 里程碑时间轴容器 */
.milestone-container {
    max-width: 1200px;
    margin: 440px auto 0;  /* 从240px增加到440px */
    padding: 0 20px;
    position: relative;
    min-height: 800px;
}

/* 树干主轴 */
.timeline {
    position: relative;
    width: 2px;
    background: #333;
    margin: 0 auto;
    height: 1000px;  /* 从800px增加到1000px */
}

/* 时间节点容器 */
.timeline-item {
    position: absolute;
    width: 100%;
}

/* 刻度线 */
.timeline-mark {
    position: absolute;
    width: 40px;
    height: 1px;
    background: #333;
}

/* 刻度线连接点 */
.timeline-mark::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    top: -2.5px;  /* 垂直居中对齐 */
}

/* 左侧刻度线 */
.timeline-mark.left {
    right: 1px;
}
.timeline-mark.left::before {
    right: -3px;  /* 圆点位置调整 */
}

/* 右侧刻度线 */
.timeline-mark.right {
    left: 1px;
}
.timeline-mark.right::before {
    left: -3px;  /* 圆点位置调整 */
}

/* 时间轴文字内容 */
.timeline-content {
    position: absolute;
    width: 200px;
}

/* 左侧内容 */
.timeline-content.left {
    right: 50px;
    text-align: right;
    top: -12px;
}

/* 右侧内容 */
.timeline-content.right {
    left: 50px;
    text-align: left;
    top: -12px;
}

/* 年份 */
.timeline-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 描述文字 */
.timeline-content p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 树枝和树叶样式 */
.branches {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 300px;
}

.branch {
    position: absolute;
    width: 2px;
    background: #333;
    transform-origin: bottom center;
}

/* 左侧树枝 */
.branch-left {
    left: 0;
    height: 200px;
    transform: rotate(-30deg);
}

/* 右侧树枝 */
.branch-right {
    right: 0;
    height: 200px;
    transform: rotate(30deg);
}

/* 技能标签（树叶） */
.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.1);
    color: #0066FF;
    border-radius: 20px;
    font-size: 14px;
    position: absolute;
    white-space: nowrap;
}

/* 树根样式 */
.tree-roots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.root {
    position: absolute;
    width: 2px;
    height: 60px;
    background: #333;
    transform-origin: top center;
}

.root::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: #333;
    transform: rotate(45deg);
    transform-origin: top left;
}

.root:nth-child(1) { transform: rotate(-40deg); left: -20px; }
.root:nth-child(2) { transform: rotate(-20deg); left: -10px; }
.root:nth-child(3) { transform: rotate(0deg); left: 0; }
.root:nth-child(4) { transform: rotate(20deg); left: 10px; }
.root:nth-child(5) { transform: rotate(40deg); left: 20px; }

/* 里程碑内容区域样式 */
.milestone-content {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 250px;
    transform: translateX(-10px);  /* 整体向左移动10px */
    overflow-x: hidden;
    position: relative;  /* 添加相对定位 */
}

.milestone-block {
    display: flex;
    justify-content: center;
    align-items: center;  /* 改为center以实现垂直居中 */
    padding: 80px 0;
    gap: 80px;
}

.milestone-block:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    gap: 80px;
}

.milestone-block:nth-child(2) .milestone-image {
    flex: 0 0 40%;
    order: 1;  /* 图片放在左边 */
    transform: translateX(-330px);
}

.milestone-block:nth-child(2) .milestone-text {
    flex: 0 0 45%;
    order: 2;  /* 文字放在右边 */
    transform: translateX(-30px);  /* 确保与右边框对齐 */
}

.milestone-block:nth-child(2) .milestone-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.milestone-block:nth-child(2) .milestone-detail {
    font-size: 18px;
    color: #333;
    line-height: 2.2;
    margin: 0;
}

.milestone-text {
    flex: 0 0 45%;
    transform: translateX(-30px);  /* 从20px改为-30px，向左移动50px */
}

.milestone-image {
    flex: 0 0 40%;
    transform: translateX(-330px);  /* 从-310px改为-330px，向左移动20px */
}

.milestone-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 2016-2020下面的分隔线特殊样式 */
.milestone-divider {
    margin: 22px auto 0;
}

.second-divider {
    margin-top: 500px;
}

.third-divider {
    margin-top: 500px;
}

.fourth-divider {
    margin-top: 500px;
}

.milestone-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.milestone-detail {
    font-size: 18px;
    color: #333;
    line-height: 2.2;  /* 增加行高 */
    margin: 0;
}

/* 第二个里程碑的文字样式 */
.milestone-block .milestone-text:last-child {
    position: absolute;
    right: 260px;  /* 从250px改为260px，相当于向左移动10px */
    top: 50%;
    transform: translateY(-50%);  /* 添加垂直居中的transform */
}

/* 修改第二个里程碑模块的位置 */
.milestone-text[style*="left: 350px"] {
    left: 320px !important;  /* 从340px改为320px，再向左移动20px */
}

.milestone-image[style*="right: 150px"] {
    right: 240px !important;  /* 从220px改为240px，再向左移动20px */
    width: 40% !important;  /* 保持图片大小不变 */
}

/* 修改第三个里程碑模块的整体位置 */
div[style*="position: relative; height: 500px"]:last-of-type {
    margin-top: 60px;  /* 从40px改为60px，再向下移动20px */
}

/* 调整内部元素的top值 */
div[style*="position: relative; height: 500px"]:last-of-type .milestone-text,
div[style*="position: relative; height: 500px"]:last-of-type .milestone-image {
    top: calc(50% + 60px) !important;  /* 从40px改为60px，再向下移动20px */
}

/* 统一的二级页面导航容器样式 */
.nav-container,
.site-header {
    padding: 40px 0;
    background-color: #1a1a1a;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* 统一的导航列表样式 */
.nav-list,
.site-header .header-nav {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0 250px;
    position: relative;
    top: -10px;
}

/* 统一的导航项样式 */
.nav-list li,
.site-header .header-nav a {
    position: absolute;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;  /* 统一字体大小 */
    font-weight: normal;  /* 统一不加粗 */
}

/* 统一的导航项位置 */
.nav-list li:nth-child(1),
.site-header .header-nav a:nth-child(1) {
    left: 335px;
}

.nav-list li:nth-child(2),
.site-header .header-nav a:nth-child(2) {
    left: 640px;
}

.nav-list li:nth-child(3),
.site-header .header-nav a:nth-child(3) {
    left: 960px;
}

.nav-list li:nth-child(4),
.site-header .header-nav a:nth-child(4) {
    left: 1280px;
}

/* 统一的悬停效果 */
.nav-list a:hover,
.site-header .header-nav a:hover {
    opacity: 0.8;
}

/* 底部黑框样式 */
.footer-container {
    padding: 40px 0;
    background-color: #1a1a1a;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 100px;  /* 与上面内容保持一定距离 */
}

.highlight-number {
    font-size: 22px;  /* 比普通文字大一号 */
    font-weight: bold;
    color: #333;
}

/* 修改第一个里程碑模块的图片位置 */
.milestone-block:first-child .milestone-image {
    flex: 0 0 32%;  /* 保持图片大小不变 */
    transform: translateX(-280px);  /* 从-290px改为-280px，向右移动10px */
}

/* 修改第一个里程碑模块的文字位置 */
.milestone-block:first-child .milestone-text {
    flex: 0 0 45%;
    transform: translateX(-10px);  /* 从-30px改为-10px，向右移动20px */
}

/* 第二个里程碑模块 */
.milestone-image[style*="right: 150px"] {
    right: 250px !important;  /* 从240px改为250px，向左移动10px */
    width: 37% !important;  /* 从40%改为37%，缩小图片 */
}

/* 第三个里程碑模块 */
.milestone-image[style*="left: 330px"] {
    left: 290px !important;  /* 从300px改为290px，向左移动10px */
    width: 37% !important;  /* 缩小图片 */
}

/* 调整右边文字位置 */
.milestone-text[style*="right: 150px"] {
    right: 240px !important;  /* 从210px改为240px，再向左移动30px */
}

.milestone-block .milestone-text:last-child {
    right: 320px;  /* 从290px改为320px，再向左移动30px */
}