:root {
    --primary-color: #f0f0f0;
    --background-color: #121212;
    --secondary-background: #1e1e1e;
    --accent-color: #00ff9d;
}

body.dark-theme {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 1.2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
    position: relative;
    padding-left: 1rem;
    text-transform: none;
}

.logo::before {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::before {
    display: none;
}

.carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 3rem;
    position: relative;
    padding-bottom: 40px;
    overflow: hidden;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--secondary-background);
    width: 100%;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

.carousel-item video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 2rem;
    background: transparent;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-control svg {
    width: 20px;
    height: 20px;
    fill: white !important;
    filter: none;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 0;
    background: transparent;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 5px var(--accent-color);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-item video::-webkit-media-controls-enclosure,
.carousel-item video::-webkit-media-controls-panel,
.carousel-item video::-webkit-media-controls,
.carousel-item video::-webkit-media-controls-overlay-play-button,
.carousel-item video::-webkit-media-controls-current-time-display,
.carousel-item video::-webkit-media-controls-time-remaining-display,
.carousel-item video::-webkit-media-controls-timeline,
.carousel-item video::-webkit-media-controls-volume-slider,
.carousel-item video::-webkit-media-controls-mute-button,
.carousel-item video::-webkit-media-controls-toggle-closed-captions-button,
.carousel-item video::-webkit-media-controls-fullscreen-button {
    background: transparent !important;
}

/* 时间轴容器样式 */
.timeline-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

/* 时间轴中间线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.3;
}

/* 时间轴项目样式 */
.timeline-item {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
    position: relative;
}

/* 时间轴圆点 */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* 时间轴内容 */
.timeline-content {
    width: 40%;
    padding: 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 左右交错布局 */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 2rem;
}

/* 内容样式 */
.timeline-content h3 {
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.timeline-content h5 {
    color: var(--accent-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: normal;
}

.timeline-content p {
    color: #ccc;
    margin: 0 0 1rem 0;
}

.timeline-content ul {
    color: #aaa;
    margin: 0;
    padding-left: 1.2rem;
}

.timeline-content li {
    margin: 0.5rem 0;
}

/* 悬停效果 */
.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 活跃状态 */
.timeline-item.active .timeline-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-item.active .timeline-content {
    background: rgba(30, 30, 30, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 5rem);
        margin-left: 4rem !important;
        margin-right: 1rem !important;
    }
}

/* 添加新的项目时间轴样式 */
.project-timeline-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.project-timeline {
    position: relative;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item:nth-child(2) {
    animation-delay: 0.2s;
}

.project-item:nth-child(3) {
    animation-delay: 0.2s;
}

.project-item:nth-child(4) {
    animation-delay: 0.4s;
}

.project-dot {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    align-self: center;
}

.project-dot::before {
    display: none;
}

.project-content {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.project-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    font-weight: normal;
}

.project-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 优化现有样式 */
.carousel-caption h3 {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    opacity: 0.9;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.carousel-control {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-wrapper:hover .carousel-control {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .project-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-timeline {
        grid-template-columns: 1fr;
    }
}

/* 恢复时间轴和项目点的光晕效果 */
.timeline-dot::after,
.project-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
    animation: glowing 2s ease-in-out infinite;
}

@keyframes glowing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
}

/* 保持时间轴和项目的悬停效果 */
.timeline-item:hover .timeline-dot,
.project-item:hover .project-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-item.active .timeline-dot,
.project-item.active .project-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px var(--accent-color);
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
        background: rgba(18, 18, 18, 0.8);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }
}

/* 添加导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    padding: 1rem 4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .nav-link {
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(0, 255, 157, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-link:hover::before {
        left: 0;
    }
}

/* 恢复背景装饰效果 */
.design-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--background-color);
}

.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 255, 157, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(18, 18, 18, 0) 0%,
        rgba(18, 18, 18, 0.7) 50%,
        rgba(18, 18, 18, 1) 100%
    );
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(30px);
    }
}

/* 修改轮播控制按钮的 SVG 图标颜色 */
.carousel-control svg {
    width: 28px;
    height: 28px;
    fill: white !important;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.carousel-control:hover svg {
    fill: white !important;
}

.prev svg,
.next svg {
    fill: white !important;
}

/* 底部栏样式更新 */
.footer {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    opacity: 0.6;
    font-size: 0.8rem;
}

.footer-section p {
    color: var(--primary-color);
    opacity: 0.6;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

/* 移除图标相关样式 */
[class^="icon-"] {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
}

/* 添加底部渐变阴影 */
.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent);
    pointer-events: none;
}

/* 修改视频效果相关的样式 */
.carousel-item video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: all 0.5s ease-in-out;
}

/* 移除所有模糊和透明度效果的相关样式 */
.carousel-item:first-child video,
.carousel-item:not(:first-child):not(.active) video,
.carousel-item.active video {
    filter: none !important;
    opacity: 1 !important;
}

/* 删除或注释掉之前的视频效果相关样式 */
/* .carousel-item:not(:first-child):not(.active) video {
    filter: blur(5px);
    opacity: 0.3;
} */

/* 修改视频播放按钮样式 */
.carousel-item video::-webkit-media-controls-play-button {
    width: 120px !important;
    height: 120px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

/* 播放按钮悬停效果 */
.carousel-item video::-webkit-media-controls-play-button:hover {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: none !important;
}

/* 确保播放按钮始终居中显示 */
.carousel-item video::-webkit-media-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 保持其他控制元素隐藏 */
.carousel-item video::-webkit-media-controls-timeline,
.carousel-item video::-webkit-media-controls-current-time-display,
.carousel-item video::-webkit-media-controls-time-remaining-display,
.carousel-item video::-webkit-media-controls-mute-button,
.carousel-item video::-webkit-media-controls-volume-slider,
.carousel-item video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* 调整视频控制面板的背景 */
.carousel-item video::-webkit-media-controls-panel {
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 软件工具栏优化 */
.tools-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2rem 0;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    width: 100px;
    text-align: center;
}

.tool-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: none;
}

.tool-name {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* 悬停效果 */
.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item:hover .tool-icon {
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.tool-item:hover .tool-name {
    color: var(--accent-color);
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tools-grid {
        gap: 2rem;
    }
    
    .tool-item {
        width: 80px;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
}

/* 个人信息栏样式优化 */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 上半部分布局 */
.profile-top {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.profile-photo {
    flex: 0 0 300px;
}

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-intro {
    flex: 1;
}

.profile-intro h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-intro p {
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

/* 下半部分布局 */
.profile-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section li {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .profile-top {
        flex-direction: column;
    }
    
    .profile-photo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .profile-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-content {
        padding: 2rem;
    }
    
    .profile-bottom {
        grid-template-columns: 1fr;
    }
}

/* 首页样式 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* 为导航栏留出空间 */
}

.hero-content {
    text-align: center;
    z-index: 1;
}

/* 故障文字效果 */
.glitch-text {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.75;
}

.glitch-text::after {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.75;
}

/* 打字机效果 */
.typing-text {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 2rem 0;
    opacity: 0.9;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: typing 3.5s steps(40, end),
               blink-caret 0.75s step-end infinite;
}

/* 滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator {
    width: 2px;
    height: 50px;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: scroll-down 1.5s ease-in-out infinite;
}

/* 动画关键帧 */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

@keyframes scroll-down {
    0% { transform: translateY(-100%) }
    100% { transform: translateY(100%) }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 1rem;
    }
}

/* 首页样式优化 */
.hero-title {
    margin-bottom: 2rem;
}

.sub-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 3px;
}

.hero-details {
    margin-top: 2rem;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-cta {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

/* 修改导航链接 */
.nav-links .nav-link[href="#works"] {
    color: var(--primary-color);
}

.nav-links .nav-link[href="#works"]::after {
    width: 0;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* 修改主体容器样式 */
body {
    overflow-x: hidden; /* 防止横向滚动 */
    width: 100%;
    position: relative;
}

/* 确保主要内容区域不会溢出 */
main {
    width: 100%;
    overflow-x: hidden;
}

/* PDF链接区域样式 */
.pdf-links {
    margin-top: 3rem;
    text-align: center;
}

.pdf-links h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.pdf-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pdf-link:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.9);
    border-color: var(--accent-color);
}

.pdf-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.pdf-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent-color);
}

.pdf-link span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pdf-link:hover span {
    opacity: 1;
    color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pdf-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .pdf-link {
        width: 200px;
    }
}

/* 视频说明文字样式 */
.video-note {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
 