

  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&display=swap');

  :root {
    --background-color: #121212;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --grid-color: rgba(255, 255, 255, 0.05);
        /* 更新了卡片背景色以匹配新截图 */
        --card-bg: rgba(42, 42, 58, 0.5);
        /* 使用带透明度的颜色以配合backdrop-filter */
        --source-glow: #00aaff;
        --synth-glow: #e040fb;
        --border-glow-speed: 2s;
  }



  .studio-container {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 60px;
      width: 100%;
      max-width: 1200px;
      padding: 40px 0;
      align-items: center;
  }

  /* 新增图标样式 */
  .hero-icon {
      color: #00aaff;
      width: 50px;
      height: 50px;
      margin-bottom: 20px;
  }

  .hero-text h1 {
      font-family: 'Noto Sans SC', sans-serif;
      font-size: 2.8em;
      font-weight: 700;
      line-height: 1.3;
      margin: 0 0 20px 0;
  }

  .hero-text p {
      font-family: 'Noto Sans SC', sans-serif;
      font-size: 1.1em;
      line-height: 1.7;
      color: var(--text-secondary);
      max-width: 400px;
      margin: 0;
  }

  .hero-player {
      display: flex;
      gap: 20px;
      position: relative;
      /* 为3D效果设置透视 */
      perspective: 1000px;
  }

  /* 工具介绍区 */
  .tool-section-var {
      padding: 40px 0;
      text-align: center;
      background-color: var(--dark-bg-color);
  }
  /* --- 卡片核心升级样式 --- */
  .audio-card {
      flex: 1;
      height: 580px;
      border-radius: 16px;
      background-color: var(--card-bg);
      /* 1. 虚化/毛玻璃效果 */
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      /* border: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        /* 水平偏移 垂直偏移 模糊半径 颜色 */
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 20px;
      cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
        /* 保留一个简单的悬浮效果 */
  }

  /* 让视频绝对定位并填满父容器 */
  .audio-card video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* 确保视频内容填满容器，可能会裁剪边缘 */
      z-index: -1;
      /* 将视频放在底层，不遮挡其他内容 */
  }

/* --- 激活脉冲光效 (已修改) --- */
.audio-card.playing {
    /* 播放时，暂停悬停的上浮效果，以脉冲光晕为主 */
    transform: translateY(0);
    /* 这是默认的辉光动画，会应用到原声卡上 */
    animation: pulse-glow 2s infinite ease-in-out;
}

  /* 3. 动态辉光边框 (通过伪元素实现) */
 
  .audio-card::before {
    content: "";
        position: absolute;
        inset: 0;
        /* 让伪元素铺满整个卡片 */
        border-radius: inherit;
        /* 继承父元素的圆角 */
    
        /* 创建漂亮的对角渐变 */
    background: linear-gradient(45deg, rgba(224, 64, 251, 0.7), rgba(0, 170, 255, 0.7));
    
        /* 使用 clip-path 裁剪出截图中的斜角形状 */
        /* 语法: polygon(点1的x y, 点2的x y, 点3的x y, 点4的x y) */
        clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    
        opacity: 0;
        /* 默认状态下透明 */
        transition: opacity 0.4s ease-in-out;
        /* 设置平滑的过渡动画 */
        z-index: 0;
        /* 确保在内容下方，但在背景之上 */
  }

 .audio-card:hover::before {
      animation-play-state: running;
      /* 悬停时播放动画 */
      opacity: 1;
   } 
.audio-card.playing::before {
    animation-play-state: running;
    /* 悬停时播放动画 */
    opacity: 1;
}
  /* 为两个卡片定义不同的脉冲颜色 */
  @keyframes pulse-glow {

      0%,
      100% {
          box-shadow: 0 0 20px -5px var(--source-glow);
      }

      50% {
          box-shadow: 0 0 35px 5px var(--source-glow);
      }
  }

  #synth-card.playing {
      animation-name: pulse-glow-synth;
  }

  #video-card.playing{
    animation-name: pulse-glow-synth;
  }
 

  @keyframes pulse-glow-synth {

      0%,
      100% {
          box-shadow: 0 0 20px -5px var(--synth-glow);
      }

      50% {
          box-shadow: 0 0 35px 5px var(--synth-glow);
      }
  }
/* 将卡片内容层级提高，确保在渐变背景之上 */
.play-btn,
.waveform-container,
.card-label,
img {
    position: relative;
    z-index: 999;
}
  #synth-card {
      /* 使用您的本地图片路径 */
      background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%), url("../images/female.jpg");
      background-size: cover;
      background-position: center;
  }

  /* 其他元素样式保持不变 */
  .play-btn {
      z-index: 2;
      /* 确保按钮在最上层 */
      /* 其他样式不变... */
  }

  .waveform-container {
      z-index: 1;
      /* 其他样式不变... */
  }

  

  #data-stream {
      z-index: 10;
      /* 其他样式不变... */
  }

  /* ... 将之前代码中未变的样式粘贴到这里 ... */
  .play-btn {
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, 0.9);
      border: none;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all 0.2s ease;
  }

  .play-btn:hover {
      background: #fff;
      transform: scale(1.1);
  }

  .play-btn svg {
      width: 24px;
      height: 24px;
      fill: #000;
  }

  .waveform-container {
      width: 100%;
      height: 80px;
      position: absolute;
      bottom: 60px;
      left: 0;
      pointer-events: none;
  }

  .waveform-container canvas {
      width: 100%;
      height: 100%;
  }

  .card-label {
      align-self: flex-start;
      text-align: start;
  }

  .card-label span {
      display: block;
  }

  .card-label .type {
      font-size: 0.8em;
      font-weight: 500;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 1px;
  }

  .card-label .title {
      font-size: 1.5em;
      font-weight: 700;
      margin-top: 5px;
  }

/* --- 流式输出的光标样式 --- */
.card-content-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    /* 与字体高度差不多 */
    background-color: var(--text-primary);
    margin-left: 4px;
    animation: blink 1s infinite;
}

.card-content-text .cursor.hidden {
    display: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

  .text-animation{
    position: absolute;
        height: 4px;
        background: linear-gradient(90deg, var(--source-glow), var(--synth-glow));
        border-radius: 2px;
        box-shadow: 0 0 10px var(--source-glow), 0 0 10px var(--synth-glow);
        opacity: 0;
        transform-origin: left center;
        transform: scaleX(0);
        pointer-events: none;
        transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
        z-index: 10;
       
  }
  #data-stream {
      position: absolute;
      height: 4px;
      background: linear-gradient(90deg, var(--source-glow), var(--synth-glow));
      border-radius: 2px;
      box-shadow: 0 0 10px var(--source-glow), 0 0 10px var(--synth-glow);
      opacity: 0;
      transform-origin: left center;
      transform: scaleX(0);
      pointer-events: none;
      transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
  }



  .section_wrapper{
    background-image:
            linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
            linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
        background-size: 50px 50px;
        color: var(--text-primary);
  }
  .main_contain {
      font-family: 'Inter', 'Noto Sans SC', sans-serif;
      /* background-color: var(--background-color); */
      /* 使用多个linear-gradient创建网格背景 */
        background-image:
                linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
                linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
            background-size: 50px 50px;
            color: var(--text-primary);
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      /* min-height: 100vh; */
  }
  .hero-wrapper{
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    /* 占据屏幕大部分高度 */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 防止内容溢出 */
    padding: 40px 0;
  }
  .header-img{
    border: 1px solid #33cca0;
border-radius: 16px;
    background-color: var(--card-bg);
    /* 1. 虚化/毛玻璃效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
.header-bg{
    position: absolute;
            width: 1284px;
                height: 782px;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                border-radius: 1284px;
                opacity: .3;
                background: radial-gradient(50% 50% at 50% 50%, #5990FF 0%, rgba(247, 89, 255, .3) 90%);
                filter: blur(50px);
}
  
.header-btn{
    background: linear-gradient(90deg, #00c6ff, #4a00e0);
        color: #fff;
        border: none;
        box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
}

  .hero-wrapper::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* background: radial-gradient(circle, rgba(26, 26, 46, 0.9) 0%, rgba(0, 0, 0, 0.95) 70%); */
     z-index: 1;
 }

        .hero-wrapper h2 {
            font-size: 3.5em;
            margin-bottom: 20px;
            line-height: 1.2;
            color: #fff;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
    
        .hero-wrapper p {
            font-size: 1.3em;
            margin-bottom: 40px;
            color: rgba(220, 220, 220, 0.9);
        }

@media (max-width: 480px) {
    .hero-wrapper h2 {
        font-size: 2.2em;
    }

}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-wrapper h2 {
        font-size: 2.8em;
    }

    .hero-wrapper p {
        font-size: 1.1em;
    }

}


@media (max-width: 1200px) {
 
.studio-container {
    padding:40px 40px;
}
}



/* --- 新的 "视频提取" 组件样式 --- */
/* --- 新组件的特定内容样式 --- */
.card-content-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.card-content-text {
    /* 1. 使用绝对定位，让它脱离文档流 */
        position: absolute;
        top: 30%;
        left: 50%;
        /* 2. 使用transform将其自身宽高的一半拉回来，实现完美居中 */
        transform: translate(-50%, -50%);
    
        z-index: 1;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9em;
        line-height: 1.6;
        /* 增加行高，让多行文本不拥挤 */
        color: var(--text-primary);
    
        /* 3. 文本居中对齐 */
        text-align: left;
    
        /* 4. 限制宽度，避免文本太长而贴边 */
        width: 90%;
    
        /* 其他样式保持不变 */
        opacity: 0;
        transition: opacity 0.5s ease 0.5s;
}

/* 为文案卡片设置特定的背景图 */
#text-card {
    /* 您可以换成任何与“文档”、“科技”相关的背景图 */
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%), url("../images/screen.jpg");
    background-size: cover;
    background-position: center;
}

/* --- 新增：输入框和发送按钮样式 --- */
.input-text {
    margin-top: 30px;
    position: relative;
    max-width: 400px;
}

.input-text input {
    width: 100%;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 60px 0 20px;
    /* 右侧留出按钮空间 */
    color: var(--text-primary);
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-text input:focus {
    outline: none;
    border-color: var(--source-glow);
    box-shadow: 0 0 15px var(--source-glow);
}

.input-text button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--source-glow);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

/* .input-text button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--source-glow);
} */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--source-glow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }
}

.input-text button svg {
    width: 24px;
    height: 24px;
}


/* --- 新增：数据包动画样式 --- */
.data-packet {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--source-glow);
    border-radius: 50%;
    box-shadow: 0 0 15px 5px var(--source-glow);
    z-index: 20;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.5, 0, 0.5, 1), opacity 0.5s ease;
}

/* --- 新增：视频卡被激活时的脉冲效果 --- */
#video-card.activated .card-content-icon {
    animation: icon-pulse 1s ease-in-out;
}

@keyframes icon-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}