/* 首页section：仅设置高度，无任何背景 */
#home-section {
  min-height: calc(100vh - 75px);
  position: relative;
  z-index: 3;
}

/* 首页Hero区域 */
.hero {
  height: 100%;
  min-height: calc(100vh - 75px - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 20px 40px;
}

/* Hero标题 - 渐变文字+发光特效 */
#hero-title {
  font-family: 'Orbitron', 'Rajdhani', monospace;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  letter-spacing: 0.09em;
  position: relative;
  z-index: 999;
  margin-bottom: 25px;
  background: var(--primary-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 10s linear infinite;
  -webkit-text-stroke: 1px rgba(0, 184, 217, 0.6);
  text-shadow:
    0 0 2px var(--primary-silver),
    0 1px 0 var(--primary-blue),
    0 2px 0 rgba(0, 184, 217, 0.8),
    0 3px 0 rgba(0, 184, 217, 0.6),
    0 0 8px var(--primary-cyan),
    0 0 15px rgba(128, 222, 234, 0.4);
  transform: translateZ(3px);
  -webkit-transform: translateZ(3px);
}

#hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  filter: opacity(0);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-shadow: 0 0 2px var(--primary-silver),0 0 5px var(--primary-cyan);
}

#hero-title span.show {
  opacity: 1;
  filter: opacity(1);
  transform: translateY(0);
}

#hero-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary-gradient-border);
  background-size: 200% 100%;
  animation: laserScan 4s linear infinite, gradientFlow 10s linear infinite;
  z-index: 2;
  box-shadow: 0 0 2px var(--primary-blue), 0 0 4px rgba(128, 222, 234, 0.4);
}

/* Hero描述文本 */
#hero-desc {
  color: var(--primary-silver);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
  max-width: 90%;
  margin: 0 auto 35px;
  text-shadow: 0 0 1px var(--primary-blue),0 0 3px rgba(0, 184, 217, 0.5);
  opacity: 0.95;
  transform: translateZ(0);
  white-space: nowrap;
}

/* 打字机光标 */
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary-gradient-border);
  background-size: 200% 100%;
  animation: cursorBreathe 1.5s ease-in-out infinite, gradientFlow 10s linear infinite;
  vertical-align: baseline;
  margin-left: 4px;
  box-shadow: 0 0 2px var(--primary-blue);
  transform: translateZ(0);
}

/* 按钮容器 */
.hero .btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 100%;
  z-index: 99;
}

/* 代码流动画 */
.code-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.6;
  overflow: hidden;
  perspective: 1000px;
}

/* 简化版代码行样式 */
.code-line {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  position: absolute;
  opacity: 0;
  animation: codeRain linear forwards;
  will-change: transform, opacity;
}

/* 代码雨容器 */
#codeBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  font-family: 'Consolas', monospace;
  overflow: hidden;
  perspective: 1000px;
}

.code-line {
  position: absolute;
  white-space: nowrap;
  user-select: none;
  animation: codeRain linear forwards, codePulse 2s infinite;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}
