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;
    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;
      font-family: sans-serif;
    
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10vw;
    font-family: 'Audiowide', sans-serif;

}

nav ul li a {
    text-decoration: none;
    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: clamp(2.5rem, 6vw, 6rem); /* ✅ 更智能的字体大小控制 */
  text-align: center;                 /* ✅ 居中文本内容 */
  margin: 0 auto 20px auto;           /* ✅ 元素本身居中 */
  max-width: 90vw;                    /* ✅ 防止过宽导致换行或视觉偏移 */
  white-space: normal;                /* ✅ 允许自动换行（可选） */
  word-break: break-word;            /* ✅ 万一太长也能优雅断行 */
  line-height: 1.2;
}

    

.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;
}

#documentary-section {
  padding: 80px 20px;
}

.doc-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.doc-heading {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(4rem, 6vw, 6rem);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 2rem;
}

.doc-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: nowrap;
}

/* 左侧海报 */
.doc-poster img {
  width: 460px;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 右侧内容 */
.doc-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1;
  max-width: 700px;
}

/* 视频 */
.doc-video iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* 简介 */
.doc-description {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  text-align: justify;
  line-height: 1.6;
  color: #333;
}

.doc-description h3 {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 5px;
}

/* 初始隐藏状态 */
.fade-section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

/* 出现时 */
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}



/* 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: 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: sans-serif;
    text-align: justify;
    background: rgba(255,255,255,0.95);
    padding: 26px;
    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: sans-serif;
    text-align: center;
    z-index: 3; /* 文字层级，比按钮还高 */
  }

.section-title {
  font-size: 8.2vh;
  font-weight: 600;
  margin-top: .5vh;

  color: #2f2f2f;
  font-family: 'Audiowide', sans-serif;
  
}

.figma-container {
  padding: 80px 20px;
}

.figma-showcase {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4vw;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.figma-phone iframe {
  border: none;
  border-radius: 48px;
  width: 480px;
  height: 1060px;
}

.figma-description {
  max-width: 35vw;
  font-family: sans-serif;
  height: 1060px;
  overflow: auto;
  padding-top: 15vh;
}

.figma-description h2 {
    
  font-size: 28px;
  margin-bottom: 12px;
}

.figma-description p {
  font-size: 20px;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 5vh;
   text-align: justify;  
   line-height: 1.6;
}

.figma-description ul {
  list-style: none;
  padding-left: 0;
}

.figma-description li {
  margin-bottom: 10px;
  font-size: 16px;
}

.figma-learn-more-btn {
  display: inline-block;
  margin-top: -3rem;
  padding: 1.1rem 2.4rem; /* ← 按钮整体变大 */
  font-size: 1.05rem;     /* ← 字体稍微变大 */
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(to right, #4f39f6, #615fff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 57, 246, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.figma-learn-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(79, 57, 246, 0.38);
}


/* ===== 动画部分 ===== */
.slide-left,
.slide-right {
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  will-change: transform, opacity;
}

.slide-left {
  transform: translateX(-200px);
}

.slide-right {
  transform: translateX(200px);
}

.slide-visible {
  transform: translateX(0);
  opacity: 1;
}


.figma-image-row {
  display: flex;
  justify-content: center;
  gap: 4vw; /* 用 vw 控制间距更灵活 */
  margin-top: -1rem;
  flex-wrap: nowrap; /* ❗️不要换行 */
}

.figma-top-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4vw;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto 60px auto;
}


.figma-image-item {
  width: 42vw;  /* 更大但能排下两张 */
  text-align: center;
}

.figma-image-item h3 {
  font-size: 2rem;
  font-family: 'Audiowide', sans-serif;
  font-weight: 600;
  margin: 2.8rem 0 0.8rem;
  color: #222;
}

.figma-image-item p {
  font-size: 1.3rem;
  color: #555;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 90%;
}


.figma-image-item a img {
  transition: transform 0.3s ease;
  display: block;
}

.figma-image-item a:hover img {
  transform: scale(1.16);
  cursor: pointer;
}



.figma-image-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all .8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.blue-text {
  color: #6167e8; /* 你可以替换成任何蓝色值，比如 #1e90ff、#0055ff */
}


/* 悬浮聊天图标 */
#chat-icon {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #ff4d00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#chat-icon:hover {
  background-color: #e24500;
}

/* 聊天框 */
#chat-box {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 24px; /* ✅ 改成右侧定位 */
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 24px;
  width: 320px;
  color: #fff;
  border-radius: 14px;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px); /* ✅ 不再水平居中移动 */
  transition: all 0.4s ease;
}

#chat-box.visible {
  display: block;
  opacity: 1;
  transform: translateY(0); /* ✅ 不再左右移动 */
}


/* 标题 */
#chat-box h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-family: 'Audiowide', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
}

/* 关闭按钮 */
#chat-box .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}

#chat-box .close-btn:hover {
  color: #fff;
}

/* 输入框和文本域 - 短一点并居中 */
#chat-box input,
#chat-box textarea {
  width: 90%;
  margin: 0 auto 12px auto;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1rem;
  font-family: sans-serif;
  transition: box-shadow 0.3s;
}

#chat-box input::placeholder,
#chat-box textarea::placeholder {
  color: #999;
}

#chat-box input:focus,
#chat-box textarea:focus {
  box-shadow: 0 0 0 2px #ff4d00;
  outline: none;
}

/* 提交按钮 */
#chat-box button {
  width: 98%;
  margin: 0 auto;
  display: block;
  background: linear-gradient(to right, #ff4d00, #ff8000);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
    font-family: 'Audiowide', sans-serif;
  
}

#chat-box button:hover {
  background: linear-gradient(to right, #e24500, #cc6e00);
}


