
@font-face {
    font-family: 'YuanWeiTuSi'; /* 自定义字体名，可任意命名 */
    src: url('fonts/SanJiQiongYingJianTi-2.ttf') format('truetype');
    font-weight:bold;
    font-style: normal;
  }
  
  
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* 确保粒子效果在最上层 */
    pointer-events: none; /* 禁止鼠标与画布互动，确保鼠标正常 */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 禁止横向滚动 */
}

header {
    display: flex;
    font-family: 'Audiowide', sans-serif;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 2vw;
    position: fixed; /* 固定在页面顶部 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* 确保 header 在其他元素之上 */
    background-color: transparent; /* 初始状态无背景 */
    transition: background-color 0.3s ease; /* 背景颜色平滑过渡 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}



body {
    margin: 0;
    padding-top: 10vh; /* 为 header 预留空间，避免内容被 header 覆盖 */
    overflow-x: hidden;
    cursor: default;
    background: #F5F5F5;

    
    
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10vw;
  font-family: 'YuanWeiTuSi';
    font:bold



}

nav ul li a {
    text-decoration: none;
    letter-spacing: 0.2em; /* 字间距更宽 */
    font-weight: bolder;
    color: black;
    font-size: 1.3vw;
    transition: color 0.3s ease;
}

nav ul li a.active {
    color: #ff2a00; /* 激活时的颜色 */
}

nav ul li a:hover {
    color: #ff2a00; /* 悬停时变为橙色 */
}

.icons a {
    margin-right: 5vh;
    text-decoration: none;
    color: black;
    font-size: 2.1vh;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icons a:hover {
    transform: scale(1.2); /* 悬停时图标放大 */
    color:  #ff2a00; /* 图标悬停时变为橙色 */
}

.large-text {
    font-size: 43vw;
    font-weight: bold;
    color: #292727;
    text-align: center;
    z-index: 1; /* 确保文字在粒子效果的下方 */
    margin-left: -10vh;
    margin-top: -10vh;
    letter-spacing: -1vw;
    font-family: 'Audiowide', sans-serif;
    position: relative; /* relative 使 small-text 参考 */
    text-shadow: 2px 2px 0px #000,   /* 黑色的右下阴影 */
                 4px 4px 0px #555,   /* 更深的灰色阴影 */
                 6px 6px 0px #777,   /* 次浅的阴影 */
                 8px 8px 0px #999;   /* 最浅的阴影，越远越浅 */
}

.small-text {
    font-weight: bold;
    font-family: 'Audiowide', sans-serif;
    font-size: 2vw; /* 使用 vw 单位 */
    position: absolute; 
    color: rgb(255, 47, 0); /* 小字的颜色设置为橘色 */
    position: absolute;
    right: -55vw; /* 靠右对齐，使用 vw 单位 */
    bottom: 8vw; /* 靠下对齐，使用 vw 单位 */
    letter-spacing: 2vw;
}

/* 定义 large-text 和 small-text 的基本样式 */
.large-text, .small-text {
    position: relative;
    animation: raceFast 3s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* 修改贝塞尔曲线 */
}

/* 定义动画 */
@keyframes raceFast {
    0% {
        transform: translateX(-150vw); /* 从屏幕左侧外开始 */
    }
    80% {
        transform: translateX(0); /* 快速移到屏幕中间 */
    }
    100% {
        transform: translateX(0); /* 停留在中间 */
    }
}


/* Timeline container */
#timeline {
    display: flex;
    justify-content: center;
    padding: 10vh 0;
    position: relative;
}

.timeline-container {
    width: 80vw;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px; /* Initial width */
    height: 0;
    background-color: black; /* Initial black color */
    transform: translateX(-50%);
    z-index: 2;
    transition: background-color 0.3s ease, height 0.3s ease;
}

.timeline-event {
    position: relative;
    width: 50%;
    padding: 5vh 0;
    animation: floatEvent 6s ease-in-out infinite; /* Adding float animation */
}

.timeline-event.left {
    text-align: right;
    padding-right: 10vw;
    transform: translateX(-5vh);
}

.timeline-event.right {
    text-align: left;
    padding-left: 40vw;
    transform: translateX(5vh);
}

.timeline-point {
    display: inline-block;
    width: 20vw;
    height: auto;
    padding: 2vh;
    background-color: #292727;
    color: white;
    font-family: 'Exo 2', sans-serif;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2vw;
    line-height: 1.5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.timeline-year {
    font-size: 1.5vw;
    font-weight: bold;
    color: #ff5a48;
    margin-bottom: 1vh;
    display: block;
    font-family: 'Audiowide', sans-serif;
}

.timeline-year1 {
    font-size: 2vw;
    font-weight: bold;
    color: #ffd000;
    margin-bottom: 1vh;
    display: block;
    font-family: 'Audiowide', sans-serif;
}

.last-point {
    margin-top: 15vh;
    margin-left: 42vh;
    padding: 10vh;
}

/* Skill icon styles */
.skill-icon {
    font-size: 4vw;
    color: #ff2a00;
    position: absolute;
    transition: transform 0.3s, color 0.3s;
}

.skill-icon:hover::after {
    content: attr(data-skill); 
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1vh;
    white-space: nowrap;
    letter-spacing: .3vw;
}

.skill-icon:hover {

    color: #ff6600;
}

.skill-right {
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
}

.skill-left {
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
}

.skill-top {
    left: 50%;
    top: -10vh;
    transform: translateX(-50%);
}

.skill-bottom {
    left: 50%;
    bottom: -10vh;
    transform: translateX(-50%);
}

/* Add irregular floating animation */
@keyframes floatEvent {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(15px);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.timeline-event.left {
    animation-duration: 7s;
    animation-delay: 0.5s; /* 创建错开的效果 */
    padding-right: 20vw; /* 增加右侧事件与中间线的距离 */
    position: relative;
    left: -5vw; /* 手动调整左侧事件位置 */
}



.timeline-event.right {
    animation-duration: 8s;
    animation-delay: 1s; /* Another staggered effect */
    padding-left: 20vw; /* 增加左侧事件与中间线的距离 */
    position: relative;
    right: -25vw; /* 手动调整左侧事件位置 */


}


.video-section {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    text-align: center;
    position: relative;
}
.video-section h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 10vh;
    margin-bottom: 20px;
    animation: float var(--float-duration) infinite ease-in-out alternate;
    transition: transform 0.4s ease-in-out, opacity 0.8s ease-out;
    
    
}
.video-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 150px;
    justify-content: center;
    align-items: center;
    position: relative;
}


.video-item {
    text-align: center;
    transition: transform 0.4s ease-in-out, opacity 0.8s ease-out;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: float var(--float-duration) infinite ease-in-out alternate;

}
.video-item.show {
    opacity: 1;
    transform: translateY(0);
}


@keyframes float {
    0% {
        transform: translate(var(--float-x-start), var(--float-y-start));
    }
    100% {
        transform: translate(var(--float-x-end), var(--float-y-end));
    }
}
.video-item:nth-child(1) {
    --float-duration: 4s;
    --float-x-start: -10px;
    --float-x-end: 15px;
    --float-y-start: -20px;
    --float-y-end: 25px;
}
.video-item:nth-child(2) {
    --float-duration: 5s;
    --float-x-start: 20px;
    --float-x-end: -10px;
    --float-y-start: -15px;
    --float-y-end: 30px;
}
.video-item:nth-child(3) {
    --float-duration: 4.5s;
    --float-x-start: -30px;
    --float-x-end: 20px;
    --float-y-start: -25px;
    --float-y-end: 35px;
}
.video-item:nth-child(4) {
    --float-duration: 6s;
    --float-x-start: 15px;
    --float-x-end: -20px;
    --float-y-start: -35px;
    --float-y-end: 40px;
}
video {
    width: 600px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.video-title {
    font-size: 4vh;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: 'Audiowide', sans-serif;
}
.video-description {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 2vh;
    color: #222;
    margin-top: 15px;
}




/* 设置 interactive-section 的样式，确保高度为视口高度 */
#interactive-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

/* 调整图标的位置到 section 中间，初始状态 */
#movie-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10; /* 确保图标在最上层 */
    cursor: pointer;
}

/* 图标的样式，设置动画效果 */
#movie-icon i {
    font-size: 7rem;
    color: #000000;
    transition: transform 0.5s ease;
}

/* 鼠标悬停时放大图标 */
#movie-icon:hover i {
    transform: scale(1.2);
}

/* 使用 Flexbox 布局，让海报和视频并排显示，文字在下方 */
#media-content {
    display: flex;
    flex-direction: column; /* 垂直排列，确保文字在海报和视频的下方 */
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
}


/* 当内容被激活时，启用交互并显示内容 */
#media-content.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9;
    pointer-events: auto; /* 允许点击和交互 */
}

/* 视频和海报容器，确保它们并排且垂直居中 */
#media-row {
    display: flex; /* 水平排列视频和海报 */
    justify-content: center;
    align-items: center;
    gap: 20px; /* 控制视频和海报之间的间距 */
    width: 100%; /* 占据整行 */
}

/* 视频容器样式 */
#video-container {
    width: 60%; /* 设置容器宽度 */
    height: auto; /* 自动调整高度 */
    display: flex;
    justify-content: center; /* 视频容器居中 */
    margin-bottom: 18vh;
}

/* 确保 iframe 填充容器 */
#video-container iframe {
    width: 60vw; /* 填充容器的宽度 */
    height: 40vh; /* 设置相对页面高度，例如占满视口高度的60% */
    border: none; /* 移除边框 */
}


/* 海报容器样式 */
#poster-container {
    width: 59%; /* 设置海报占页面宽度的45% */
    height: auto;
}

#poster-container img {
    width: 100%; /* 确保海报宽度适应容器 */
    height: 100%; /* 保持海报与视频等高 */
}

/* 文字部分样式，位于视频和海报下方 */
.text-content {
    width: 56%; /* 限制宽度为页面宽度的一部分 */
    max-width: 1200px; /* 设置最大宽度 */
    text-align: justify; /* 对齐文本 */
    margin-top: -15vh;
    padding: 20px;
    color: #333;
    margin-left: 43vh;
    background-color: rgba(255, 255, 255, 0.7); /* 添加半透明背景框 */
    border-radius: 10px; /* 圆角效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
    
}

/* 标题样式 */
.text-content h1 {
    text-align: center; /* 标题剧中 */   
    font-family: 'Audiowide', sans-serif;
}

.hidden {
    display: none;
}

.visible {
    display: block; /* 或其他适合的显示方式 */
}

#media-content h2 {
    font-size: 5.5rem; /* 设置字体大小 */
    color: #000000; /* 字体颜色 */
    text-align: center; /* 居中显示 */
    margin-bottom: 20px; /* 文字和视频之间的间距 */
    font-family: 'Audiowide', sans-serif; /* 使用之前的字体 */
    letter-spacing: 2rem; /* 设置字母间距 */
    font-weight: bold;
}



/* Gallery grid layout */
#gallery-section {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
    width: 100vw;
    height: 90vh;
    margin: 38vh 0 0 0;
    position: relative;
    overflow: hidden; /* Prevent overflow */
}

/* Gallery item styling */
.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0; /* Initial hidden state */
    transform: translateX(-100px); /* Start position off-screen */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out; /* Smooth transition */
    will-change: transform, opacity;
}

/* Image styling */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title overlay remains intact */
.title-overlay-outside {
    position: relative; /* No changes to position */
    text-align: center;
    font-family: 'Audiowide', sans-serif;
    font-size: 5vw; /* Large font for the title */
    color: black;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.7);
    padding-bottom: 1vh;
    pointer-events: none;
}

/* Specific object positions for images */
.gallery-item:nth-child(1) img {
    object-position: center;
}

.gallery-item:nth-child(2) img {
    object-position: 15% 45%;
}

.gallery-item:nth-child(3) img {
    object-position: 0% 15%;
}

.gallery-item:nth-child(4) img {
    object-position: 93% 80%;
}

.gallery-item:nth-child(5) img {
    object-position: 25% 85%;
}

.gallery-item:nth-child(6) img {
    object-position: 49% 50%;
}

.gallery-item:nth-child(7) img {
    object-position: 20% 50%;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 5vh 15vh rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Animation for floating effect with larger amplitude */
@keyframes floatAnimation {
    0% {
        transform: translateY(0); /* Start at original position */
    }
    50% {
        transform: translateY(40px); /* Float down more */
    }
    100% {
        transform: translateY(0); /* Float back to original position */
    }
}

/* Apply the floating animation to gallery-item (image and text move together) */
.gallery-item {
    opacity: 1;
    animation: floatAnimation var(--float-duration) ease-in-out infinite; /* Float animation */
    animation-delay: var(--float-delay); /* Random delay */
}

/* Add random durations and delays for each gallery-item */
.gallery-item:nth-child(1) {
    --float-duration: 5s;
    --float-delay: 1s;
}

.gallery-item:nth-child(2) {
    --float-duration: 6s;
    --float-delay: 0.5s;
}

.gallery-item:nth-child(3) {
    --float-duration: 4s;
    --float-delay: 1.2s;
}

.gallery-item:nth-child(4) {
    --float-duration: 5.5s;
    --float-delay: 0.8s;
}

.gallery-item:nth-child(5) {
    --float-duration: 6.5s;
    --float-delay: 0.3s;
}

.gallery-item:nth-child(6) {
    --float-duration: 5.2s;
    --float-delay: 1.5s;
}

.gallery-item:nth-child(7) {
    --float-duration: 7s;
    --float-delay: 0.7s;
}


/* Modal styling 保留 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 10vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}



.close:hover,
.close:focus {
    color: #bbb;
}

footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* 居中对齐 */
    justify-content: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #555;
    gap: 8vw; /* 增加三个 section 之间的间距 */
}

.footer-section {
    flex: 1;
    margin: 20px;
    max-width: 300px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ffffff;
    font-family: 'Audiowide', sans-serif; /* 添加这一行 */
}


.footer-section p, .footer-section a {
    margin-bottom: 10px;
    color: white;
    font-size: 1rem;
}

.footer-button {
    display: inline-block;
    padding: 10px 20px;
    background-color:#ff2a00;
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.footer-button:hover {
    background-color: #8a1700;
}

footer form input, footer form textarea {
    width: 100%;
    padding: 10px;
background-color: #b4b4b4;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #555;
    font-size: 1rem;
}

footer form button {
    padding: 10px 20px;
    background-color:  #b0acac;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

footer form button:hover {
    background-color:#605f5f;
}

.footer-bottom {
    padding-top: 20px;
    color: #bbb;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}



#scroll-section {
    margin-top: 30vh; /* 设置顶部的距离为 30vh */
}

/* 滚动容器样式 */
.scroll-container {
    width: 100vw;
    height: 33vh; /* 每个容器占视口高度的三分之一 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 滚动文字的基础样式 */
.scroll-text {
    font-size: 8vw; /* 大字体 */
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    color: #fff;
    white-space: nowrap; /* 禁止换行 */
    position: absolute;
    left: 100%; /* 初始位置在右边 */
    animation-play-state: paused; /* 初始暂停动画 */
}

/* 左向右滚动动画 */
@keyframes scrollLeft {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* 右向左滚动动画 */
@keyframes scrollRight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 动画激活时，启用往返滚动 */
.scroll-text.scroll-active {
    animation-iteration-count: infinite;
    animation-direction: alternate; /* 当到达边界时反向滚动 */
    animation-play-state: running; /* 启动动画 */
}

/* 为不同方向设置滚动动画 */
.scroll-left .scroll-text.scroll-active {
    animation: scrollLeft 5s linear infinite alternate;
}

.scroll-lefts .scroll-text.scroll-active {
    animation: scrollLeft 4s linear infinite alternate;
}

.scroll-right .scroll-text.scroll-active {
    animation: scrollRight 6s linear infinite alternate;
}

/* 背景颜色设置 */
#scroll-1 {
    background-color: #222222;
}

#scroll-2 {
    background-color: #5A5A5A; /* 深色背景 */
}

#scroll-3 {
    background-color: #c9c6c6; /* 白色背景 */
}

#scroll-3 .scroll-text {
    color: #ffffff;
}


@media (max-width: 768px) {

    .title-overlay-outside {
        display: none;
    }
    
    header, .icons, #timeline {
        display: none !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    
        body {
            overflow-x: hidden;
        }
    
        /* Main Text */
        .large-text {
            font-size: 35vw; 
            left: 5vh;
    
        }
    
        .small-text {
            font-size: 5vw; 
            left: 50vw; 
            bottom: 4vw;
        }
    
        
        #timeline {
            display: none;
        }
    
    
        #scroll-section {
            display:none;
        }
    
        #gallery-section {
            grid-template-columns: 1fr; 
            height: auto; 
            width: 100%;
            margin-top: 3vh;
        }
    
        .gallery-item {
            pointer-events: none; 
    
        }
        #modal {
            display: none; 
        }
    
    
        #movie-icon, #interactive-section {
            display: none; 
        }
    
        footer{
            footer {
                position: relative;
                top: -20vh; 
        }
        /* Footer */
        .footer-container {
            flex-direction: column;
            text-align: center;
    
    
        }
    
        .footer-section {
            flex-direction: column;
            text-align: center;
    
        }
    
    
        .footer-section h3 {
            font-size: 1.2rem;
        }
    
        .footer-section p, .footer-section a {
            font-size: 0.9rem;
        }
    
    
    .modal {
        display: none;
    }
    
    }
    
    @media (max-width: 1080) {
        .timeline-line {
           
            left: 50%;
            top: 0;
            width: 10px; 
            height:180vh;
            background-color: black; 
            transform: translateX(-50%);
            z-index: 2;
            transition: background-color 0.3s ease, height 0.3s ease;
        }
    }
    }

    /* 全屏弹窗，覆盖整个页面 */
#screen-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    font-family: 'Audiowide', sans-serif;
    z-index: 99999; /* 确保始终在最上层 */
    padding: 20px;
    box-sizing: border-box;
}

/* 隐藏页面所有其他内容，但不隐藏 #screen-alert */
body.lock-scroll > *:not(#screen-alert) {
    display: none !important;
}

/* 屏幕 >=1280px 时隐藏弹窗，恢复正常页面 */
@media (min-width: 1280px) {
    #screen-alert {
        display: none !important;
    }
    body.lock-scroll > * {
        display: block !important; /* 恢复所有内容 */
    }
}


#game-demo-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 40px 20px;
    font-family: 'Audiowide', sans-serif;
    text-align: center;
  
    opacity: 0; /* 初始状态：透明 */
    transform: translateY(30px); /* 初始时稍微偏移 */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* 更快速的渐变效果 */

    border-radius: 15px; /* 圆角 */
  }
  
  #game-demo-section.visible {
    opacity: 1; /* 滚动到该部分时，显示 */
    transform: translateY(0); /* 元素平滑移动到正常位置 */
    animation: fadeIn 0.6s ease-out forwards; /* 更快速的渐变动画 */
  }
  
  /* 渐变动画：从透明到显示 */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(30px); /* 从下方平滑进入 */
    }
    100% {
      opacity: 1;
      transform: translateY(0); /* 恢复到原始位置 */
    }
  }
  
  .demo-title {
    font-size: 9vh;
    margin-bottom: 20px;
    color: #292727;
  }
  
  .demo-caption {
    font-size: 2.3vh;
    color: #ff0000;
    margin-bottom: 40px;
  }
  
  .demo-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
  }
  
  .demo-video,
  .demo-playable {
    flex: 1 1 500px;
    max-width: 600px;
  }
  
  .demo-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  }
  
  .demo-description {
    margin-top: 20px;
    font-size: 2vh;
    color: #333;
    line-height: 1.6;
    font-family: 'Exo 2', sans-serif;
    text-align: justify;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  }
  
  .demo-playable iframe {
    width: 100%;
    height: 620px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: white;
    border: none;
  }
  
  .demo-thumbnail-container {
    position: relative;
    width: 100%;
    height: 620px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: white;
  }
  
  .demo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .demo-play-button {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3vh;
    background: rgba(255, 42, 0, 0.9);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Audiowide', sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
  }
  
  .demo-play-button:hover {
    background: rgb(147, 0, 0);
  }
  

  .demo-note {
    position: absolute; /* 使文字不被图片覆盖 */
    top: 10px; /* 文字距离顶部 */
    width: 100%; /* 让文字居中显示 */
    font-size: 2vh;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    text-align: center;
    z-index: 3; /* 文字层级，比按钮还高 */
  }


