:root {
    --primary-color: #67B2F1;
    --secondary-color: #2196F3;
    --bg-color: #ffffff;
    --text-color: #e1e1e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #0a192f;  /* 保留一个基础背景色 */
    position: relative;
    min-height: 100vh;
}

/* 星空背景容器 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/web-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.95;  /* 提高不透明度，从0.9到0.95 */
    z-index: -2;
}

/* 调整遮罩层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.4);  /* 降低遮罩层的不透明度，从0.5到0.4 */
    z-index: -1;
}

/* 调整所有section的基础样式 */
.section {
    position: relative;
    min-height: 90vh;  /* 减小最小高度 */
    padding: 100px 20px;  /* 减小上下内边距 */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* 调整容器通用样式 */
.container,
.experience-container,
.work-projects-container,
.projects-carousel,
.timeline-content {
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.01);
    box-shadow: none;
    border-radius: 25px;
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
}

/* 调整文字颜色 */
body {
    color: #e1e1e1;
}

h1, h2, h3, h4 {
    color: #fff;
}

p, li {
    color: rgba(255, 255, 255, 0.9);
}

/* 导航栏样式调整 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);  /* 深蓝色背景，高不透明度 */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(103, 178, 241, 0.1);  /* 添加带主题色的细边框 */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);  /* 添加微妙的阴影 */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);  /* 略微提高文字亮度 */
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;  /* 稍微调整字体大小 */
    letter-spacing: 0.5px;  /* 增加字间距 */
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), rgba(103, 178, 241, 0.5));  /* 添加渐变效果 */
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* 确保内容在遮罩层之上 */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 移除section的before和after */
.section::before,
.section::after {
    display: none;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.typing-animation {
    text-align: center;
    font-size: 1.5rem;
    min-height: 3rem;
}

/* 时间轴容器 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;  /* 增加整体上下边距 */
    padding: 2rem 0;    /* 增加内边距 */
    overflow: visible;
}

/* 时间轴内容区域基础样式 - 右侧容器 */
.timeline-content {
    width: calc(50% - 50px);
    padding: 2rem;
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    box-shadow: none;
    position: relative;
    margin-left: auto;  /* 默认靠右 */
    margin-right: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);  /* 更平滑的缓动 */
}

/* 偶数项靠左 */
.timeline-item:nth-last-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    transform: translateX(-30px);
}

/* 当元素进入视口时显示 */
.timeline-item.aos-animate .timeline-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;  /* 添加延迟 */
}

/* 时间节点项目 */
.timeline-item {
    position: relative;
    margin-bottom: 6rem;  /* 增加元素之间的间距 */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 最后一个元素不需要底部间距 */
.timeline-item:last-child {
    margin-bottom: 2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .timeline {
        margin: 3rem auto;
        padding: 1.5rem 0;
    }

    .timeline-item {
        margin-bottom: 4rem;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;  /* 强制所有内容靠右 */
        margin-right: 0 !important;
        padding: 1.5rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

#intro, #experience, #projects, #education {
    background: none;
}

/* 移除欢迎页的特殊背景 */
#welcome {
    position: relative;
    overflow: hidden;
}

/* 移除欢迎页的特殊装饰元素 */
#welcome::before,
#welcome::after {
    display: none;
}

/* 欢迎区域容器调整 */
.welcome-text {
    position: relative;
    z-index: 1;
    min-height: 500px;  /* 减小最小高度 */
    padding: 4rem;  /* 减小内边距 */
    max-width: 900px;  /* 控制最大宽度 */
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.01);  /* 保持现有边框 */
    box-shadow: none;  /* 移除阴影 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 背景图片样式 */
.welcome-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/welcome-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;  /* 降低不透明度，使其更柔和 */
    filter: 
        brightness(0.95)  /* 稍微降低亮度 */
        contrast(1.1)     /* 增加对比度 */
        saturate(1.15)    /* 增加饱和度 */
        blur(0.3px);      /* 轻微模糊 */
    z-index: 0;
}

/* 优化标题样式 */
.welcome-title {
    font-size: 4.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff 0%, #00bfff 50%, #1e90ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    letter-spacing: 3px;
    text-align: left;
    position: relative;
    z-index: 1;
    font-family: "Noto Sans SC", "Microsoft YaHei", "微软雅黑", sans-serif;
    text-shadow: 2px 2px 15px rgba(0, 191, 255, 0.5);
    animation: titleFadeIn 1.5s ease-out forwards;
}

/* 添加悬停效果 */
.welcome-title:hover {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 50%, #0000ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 2px 2px 20px rgba(0, 191, 255, 0.7);
    transition: all 0.3s ease;
}

/* 优化段落样式 */
.welcome-content {
    padding-top: 8rem;  /* 添加顶部内边距，将内容向下推 */
}

.welcome-content p {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

/* 第一段文字动画 */
.welcome-content p:first-child {
    margin-bottom: 0.8rem;
    animation: contentFadeIn 1.5s ease-out 1s forwards;  /* 放慢速度，延迟1秒 */
}

/* 第二段文字动画 */
.welcome-content p:last-child {
    animation: contentFadeIn 1.5s ease-out 2s forwards;  /* 放慢速度，延迟2秒 */
}

/* 标题动画 */
.welcome-title {
    animation: titleFadeIn 1.5s ease-out forwards;  /* 保持标题动画一致 */
}

/* 动画关键帧 */
@keyframes contentFadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 添加装饰性光效 */
.welcome-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0.5;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .welcome-text {
        min-height: 400px;
        padding: 2rem;
    }
    .welcome-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* 工作经历容器 */
.experience-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    box-shadow: none;
    overflow: hidden; /* 确保内部元素不会超出圆角 */
    min-height: 600px;  /* 设置合适的最小高度 */
    max-height: 80vh;  /* 限制最大高度 */
    overflow-y: auto;  /* 内容过多时可滚动 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* 左侧导航栏 */
.exp-nav {
    width: 180px;
    border-right: 1px solid rgba(255, 255, 255, 0.01);  /* 降低分隔线透明度 */
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

/* 导航项第一个元素适配圆角 */
.exp-nav .nav-item:first-child .nav-content {
    border-top-left-radius: 25px;
}

/* 导航项最后一个元素适配圆角 */
.exp-nav .nav-item:last-child .nav-content {
    border-bottom-left-radius: 25px;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.nav-content {
    position: relative;
    padding: 2rem 1.5rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);  /* 降低分隔线透明度 */
    overflow: hidden;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    letter-spacing: 1px;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(33, 150, 243, 0.05) 0%,
        rgba(33, 150, 243, 0.02) 70%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover .nav-content {
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-item:hover .nav-bg {
    opacity: 0.5;
}

.nav-item.active .nav-content {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent !important;
    margin-right: -1px;
    text-shadow: 1px 1px 2px rgba(33, 150, 243, 0.1);
    border-right: none;  /* 移除右侧边框 */
}

.nav-item.active .nav-bg {
    opacity: 1;
}

/* 中文和英文字体分别设置 */
.nav-content:lang(zh) {
    font-family: '楷体', KaiTi, '华文楷体', STKaiti, sans-serif;
    font-size: 1.4rem;
}

.nav-content:lang(en) {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-weight: 500;
}

/* 右侧内容区 */
.exp-content {
    flex: 1;
    padding: 2rem;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.exp-item {
    display: none;
}

.exp-item.active {
    display: block;
}

/* 右侧内容区基本信息 */
.exp-item p {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.exp-item span {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 1rem;
    min-width: 80px;
    display: inline-block;
}

/* 详细内容区域 */
.exp-detail {
    margin-top: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    padding-left: calc(80px + 1rem);
    font-size: 0.8rem;
}

.exp-detail p {
    margin: 0.8rem 0;
    font-size: 0.85rem;
}

.exp-detail strong {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.exp-detail ol {
    padding-left: 1.1rem;
    margin-bottom: 0.8rem;
}

.exp-detail li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 0.8rem;
}

/* 项目作品导航栏样式 */
.projects-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;  /* 减少导航栏与内容容器的距离，从3rem改为2rem */
    padding: 0.5rem;  /* 减小内边距 */
}

.projects-nav .nav-item {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.projects-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.projects-nav .nav-item.active {
    color: var(--primary-color);
}

.projects-nav .nav-item.active::after {
    transform: scaleX(1);
}

/* 项目内容区域 */
.project-section {
    display: none;
}

.project-section.active {
    display: block;
}

/* 项目网格布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* 工作项目容器 */
.work-projects-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    box-shadow: none;
    overflow: visible;  /* 改为 visible */
    max-height: none;  /* 移除最大高度限制 */
    overflow-y: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* 左侧项目导航栏 */
.project-nav {
    width: 200px;
    border-right: 1px solid rgba(255, 255, 255, 0.01);  /* 降低分隔线透明度 */
    background: transparent !important;
    backdrop-filter: none;  /* 移除模糊效果 */
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

/* 导航项第一个元素适配圆角 */
.project-nav .nav-item:first-child .nav-content {
    border-top-left-radius: 25px;
}

/* 导航项最后一个元素适配圆角 */
.project-nav .nav-item:last-child .nav-content {
    border-bottom-left-radius: 25px;
}

.project-nav .nav-item {
    position: relative;
    cursor: pointer;
}

.project-nav .nav-content {
    position: relative;
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);  /* 降低分隔线透明度 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 右侧内容区 */
.project-content {
    flex: 1;
    padding: 2rem;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.project-item {
    display: none;
}

.project-item.active {
    display: block;
}

/* 移除项目标题相关样式 */
.project-header {
    display: none;
}

/* 调整第一个section-block的上边距 */
.project-detail .section-block:first-child {
    margin-top: 0;
}

.section-block {
    margin-bottom: 2rem;  /* 通过margin来分隔区块 */
}

.section-block h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
}

.section-block h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-block p {
    margin-bottom: 1rem;  /* 增加段落之间的间距，从默认的0.5rem增加到1rem */
    line-height: 1.8;     /* 可选：适当增加行高使文字更加通透 */
}

.section-block ul {
    margin-top: 0.8rem;  /* 增加列表与上方文字的间距 */
    list-style: none;
    padding-left: 1rem;
}

.section-block li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.section-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* 个人作品容器 */
.personal-projects-container {
    min-height: 500px;  /* 同样降低最小高度 */
    max-height: 70vh;   /* 同样降低最大高度 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* 作品介绍文字 */
.projects-intro {
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* 作品展示区 */
.projects-showcase {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.projects-showcase::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 作品卡片 */
.project-card {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* 作品图片 */
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);  /* 将放大倍数从1.4改为1.2 */
    transform-origin: left top;  /* 保持以左上角为中心点 */
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* 作品信息 */
.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 轮播图容器 */
.projects-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 12px;
    overflow: visible;  /* 从 hidden 改为 visible */
}

/* 轮播图轨道 */
.carousel-container {
    position: relative;
    overflow: hidden;  /* 保持内部轨道的 overflow: hidden */
}

.carousel-track {
    position: relative;
    height: 450px;
}

/* 轮播图片切换动画 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 特别针对第一张图片(lottery.jpg)的样式 */
.carousel-slide:first-child img {
    transform: scale(1.2);  /* 只对第一张图片放大1.2倍 */
    transform-origin: left top;  /* 以左上角为中心点 */
}

/* 轮播图信息动画 */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active .slide-info {
    transform: translateY(0);
    opacity: 1;
}

.slide-info h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.slide-info p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
}

/* 导航按钮位置 */
.carousel-btn.prev {
    left: -60px;  /* 从20px改为-60px */
}

.carousel-btn.next {
    right: -60px;  /* 从20px改为-60px */
}

/* 导航按钮样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);  /* 调整边框颜色使其更和谐 */
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.1);  /* 调整阴影效果 */
}

.carousel-btn:hover {
    border-color: #333;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* 导航按钮图标样式 */
.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #666;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.carousel-btn svg path {
    transition: all 0.3s ease;
}

.carousel-btn:hover svg {
    stroke: #333;
}

/* 添加箭头动画效果 */
.carousel-btn:hover svg path:first-child {
    transform: translateX(-2px);
}

.carousel-btn:hover svg path:last-child {
    opacity: 0.8;
    transform: translateX(-2px);
}

.carousel-btn.next:hover svg path:first-child {
    transform: translateX(2px);
}

.carousel-btn.next:hover svg path:last-child {
    opacity: 0.8;
    transform: translateX(2px);
}

/* 在小屏幕上调整按钮大小 */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* 移除旧的卡片样式 */
.project-card,
.projects-showcase {
    display: none;
}

/* 时间轴中线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary-color) 10%,
        var(--primary-color) 90%,
        transparent
    );
    transform: translateX(-50%);
}

/* 时间轴圆点动画 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(103, 178, 241, 0.2);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);  /* 更平滑的缓动 */
}

/* 圆点进入视口时的动画 */
.timeline-item.aos-animate .timeline-dot {
    transform: translate(-50%, -50%) scale(1);
}

/* 新的连接线样式 */
.timeline-item {
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;  /* 连接线长度 */
    height: 2px;
    background: linear-gradient(
        to right,
        var(--primary-color) 0%,
        rgba(103, 178, 241, 0.3) 100%
    );
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.8s ease;
    left: calc(50% + 8px);  /* 从时间点右侧开始 */
}

/* 左侧连接线 */
.timeline-item:nth-last-child(even)::after {
    left: auto;
    right: calc(50% + 8px);
    background: linear-gradient(
        to left,
        var(--primary-color) 0%,
        rgba(103, 178, 241, 0.3) 100%
    );
}

/* 连接线动画 */
.timeline-item.aos-animate::after {
    opacity: 1;
}

/* 悬停效果 */
.timeline-item:hover::after {
    background: linear-gradient(
        to right,
        var(--primary-color) 0%,
        var(--primary-color) 100%
    );
    width: 65px;  /* 悬停时稍微延长 */
}

.timeline-item:nth-last-child(even):hover::after {
    background: linear-gradient(
        to left,
        var(--primary-color) 0%,
        var(--primary-color) 100%
    );
}

/* 日期样式 */
.timeline-date {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 内容标题 */
.timeline-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 详细内容 */
.timeline-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 添加入场动画 */
@keyframes titleFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 工作经历容器滚动条样式 */
.experience-container {
    /* 保持现有样式 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* 隐藏默认滚动条 - Chrome, Safari, Opera */
.experience-container::-webkit-scrollbar {
    width: 4px;  /* 非常细的滚动条 */
    background: transparent;
}

/* 默认状态下隐藏滚动条 */
.experience-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停时显示滚动条 */
.experience-container:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(103, 178, 241, 0.3) 10%,
        rgba(103, 178, 241, 0.3) 90%,
        transparent
    );
}

/* 滚动条悬停效果 */
.experience-container:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary-color) 10%,
        var(--primary-color) 90%,
        transparent
    );
}

/* 滚动条轨道 */
.experience-container::-webkit-scrollbar-track {
    background: transparent;
}

/* 同样的样式也应用到工作项目容器 */
.work-projects-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-projects-container::-webkit-scrollbar {
    display: none;
}

.work-projects-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 项目内容区域滑动样式 */
.projects-content {
    user-select: none;
    cursor: grab;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-x;
}

.projects-content:active {
    cursor: grabbing;
}

/* 项目切换动画 */
.project-section {
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(30px);
}

.project-section.active {
    opacity: 1;
    transform: translateX(0);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-detail .section-block p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

/* 确保内容正常显示 */
.project-detail {
    height: auto;  /* 自适应高度 */
    overflow: visible;  /* 改为 visible */
}

/* 敬请期待样式 */
.coming-soon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(10, 25, 47, 0.3);  /* 降低背景不透明度从0.8到0.3 */
}

/* 省略号动画 */
.dots {
    display: inline-block;
    animation: dotsAnimation 1.5s infinite;
    letter-spacing: 2px;
}

@keyframes dotsAnimation {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* 视频容器样式 */
.intro-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background: #000; /* 改为纯黑色背景，与播放器控制栏颜色一致 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.intro-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 视频播放按钮 */
.video-play-btn {
    position: absolute;
    bottom: 20px;  /* 距离底部20px */
    left: 20px;    /* 距离左侧20px */
    transform: none;  /* 移除居中变换 */
    width: 48px;   /* 稍微缩小按钮尺寸 */
    height: 48px;  /* 稍微缩小按钮尺寸 */
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 1;
}

/* 播放状态时隐藏按钮 */
.video-play-btn.playing {
    opacity: 0;
    pointer-events: none;  /* 禁用鼠标事件 */
}

/* 鼠标悬停在视频容器上时显示按钮 */
.intro-video-container:hover .video-play-btn.playing {
    opacity: 0.7;  /* 半透明显示 */
    pointer-events: auto;  /* 恢复鼠标事件 */
}

/* 播放图标 */
.play-icon {
    position: relative;
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;  /* 缩小三角形大小 */
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* 波纹效果 */
.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: ripple 1.5s ease-out infinite;
}

/* 波纹动画 */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 悬停效果 */
.video-play-btn:hover .play-icon {
    border-color: transparent transparent transparent var(--primary-color);
    transform: scale(1.1);
}

.video-play-btn:hover .btn-ripple {
    border-color: var(--primary-color);
}

/* 播放状态 */
.video-play-btn.playing .play-icon {
    width: 20px;   /* 调整暂停状态的宽度 */
    height: 20px;  /* 调整暂停状态的高度 */
    border: none;
    border-left: 6px solid rgba(255, 255, 255, 0.9);   /* 调整暂停条的宽度 */
    border-right: 6px solid rgba(255, 255, 255, 0.9);  /* 调整暂停条的宽度 */
    margin: 0 auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .intro-video-container {
        margin: 1rem auto;
        max-width: 100%;
    }
}