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

/* CSS 变量默认值 - 会被组件的 inline style 覆盖 */

.step2-page {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
}

.step2-page .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* 跑马灯动画 */
.step2-page .marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 0.5rem 0;
}

.step2-page .marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: bold;
  font-size: 1.2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 网格背景 */
.step2-page .bg-grid {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* 故障文字效果 */
.step2-page .glitch-wrapper {
  position: relative;
}

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

.step2-page .glitch::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.step2-page .glitch::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 30px, 0);
  }

  20% {
    clip: rect(30px, 9999px, 10px, 0);
  }

  40% {
    clip: rect(50px, 9999px, 80px, 0);
  }

  100% {
    clip: rect(90px, 9999px, 100px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(80px, 9999px, 10px, 0);
  }

  20% {
    clip: rect(20px, 9999px, 50px, 0);
  }

  40% {
    clip: rect(10px, 9999px, 60px, 0);
  }

  100% {
    clip: rect(40px, 9999px, 90px, 0);
  }
}

/* 卡片悬停效果 */
.step2-page .service-card {
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.step2-page .service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.step2-page .cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}