/* 科技主题视觉装饰元素样式 */

/* 1. 科技风格背景和纹理 */
.tech-bg {
    position: relative;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 142, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 2. 电路纹理效果 */
.circuit-texture {
    position: relative;
}

.circuit-texture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(60, 142, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 142, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* 3. 粒子效果容器 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 4. 科技风格的霓虹边框 */
.neon-border {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
                linear-gradient(45deg, var(--primary-color), #8a2be2, var(--primary-color)) border-box;
    box-shadow: 
        0 0 5px rgba(60, 142, 255, 0.5),
        inset 0 0 5px rgba(60, 142, 255, 0.1);
    transition: all 0.3s ease;
}

.neon-border:hover {
    box-shadow: 
        0 0 15px rgba(60, 142, 255, 0.8),
        inset 0 0 10px rgba(60, 142, 255, 0.2);
    transform: translateY(-2px);
}

/* 5. 科技风格的卡片效果 */
.tech-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(60, 142, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(60, 142, 255, 0.3);
    border-color: rgba(60, 142, 255, 0.5);
}

/* 6. 科技风格的按钮效果 */
.tech-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.tech-btn:hover::before {
    left: 100%;
}

/* 7. 科技风格的标题效果 */
.tech-title {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8a2be2);
    border-radius: 3px;
    z-index: -1;
}

/* 机器人装饰 */
.robot-decoration {
  position: absolute;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(60, 142, 255, 0.5));
}

.robot-decoration:nth-child(1) {
  width: 200px;
  height: 200px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="80" r="40" fill="%233c8eff"/><rect x="70" y="120" width="60" height="60" fill="%233c8eff"/><rect x="60" y="100" width="20" height="10" fill="%233c8eff"/><rect x="120" y="100" width="20" height="10" fill="%233c8eff"/><rect x="50" y="180" width="30" height="10" fill="%233c8eff"/><rect x="120" y="180" width="30" height="10" fill="%233c8eff"/><rect x="90" y="70" width="10" height="10" fill="white"/><rect x="100" y="70" width="10" height="10" fill="white"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  right: 5%;
  top: 10%;
  transform-origin: right top;
  animation: float 6s ease-in-out infinite;
}

.robot-decoration:nth-child(2) {
  width: 150px;
  height: 150px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><polygon points="100,50 150,100 150,150 50,150 50,100" fill="%238a2be2"/><circle cx="80" cy="90" r="10" fill="%233c8eff"/><circle cx="120" cy="90" r="10" fill="%233c8eff"/><rect x="85" y="120" width="30" height="10" fill="%233c8eff"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  left: 5%;
  bottom: 10%;
  transform-origin: left bottom;
  animation: float 8s ease-in-out infinite reverse;
}

/* 9. 数据流动效果 */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(60, 142, 255, 0.1) 2px,
        rgba(60, 142, 255, 0.1) 4px
    );
    animation: stream 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* 发光效果 */
.glow-effect {
  box-shadow: 0 0 15px rgba(60, 142, 255, 0.5);
  transition: all 0.3s ease;
}

/* 进度指示器 */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #3c8eff, #8a2be2, #00ffff);
  z-index: 9999;
  box-shadow: 0 0 8px rgba(60, 142, 255, 0.8);
  transition: width 0.1s ease;
}

/* 11. 扫描线效果 */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 11. 网格背景 */
.grid-bg {
    position: relative;
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(60, 142, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 142, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 数字雨效果 */
.digital-rain {
  position: relative;
  overflow: hidden;
}

.digital-rain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(60, 142, 255, 0.05) 2px,
    rgba(60, 142, 255, 0.05) 4px
  );
  pointer-events: none;
  animation: digitalRain 10s linear infinite;
}

@keyframes digitalRain {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100px;
  }
}

/* 12. 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes stream {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 闪烁动画 */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 142, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(60, 142, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60, 142, 255, 0);
  }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* 14. 增强现有元素的科技风格 */
/* 导航栏 */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(60, 142, 255, 0.2);
    position: sticky;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 142, 255, 0.5), transparent);
    animation: pulse 3s ease-in-out infinite;
}

/* 导航项增强 */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.3s ease;
}

.nav-item:hover::before {
    left: 0;
}

/* 粒子样式 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor, transparent);
    box-shadow: 0 0 10px currentColor;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* 数字流动效果 */
.data-stream-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #3c8eff, transparent);
  opacity: 0.6;
  animation: dataFlow linear infinite;
  pointer-events: none;
  filter: blur(1px);
}

/* 科技风格图标装饰 */
.tech-icon {
    position: relative;
    display: inline-block;
}

.tech-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(60, 142, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-icon:hover::after {
    opacity: 1;
}

/* 闪烁边框效果 */
.flicker-border {
    position: relative;
}

.flicker-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(60, 142, 255, 0.5);
    border-radius: inherit;
    animation: flicker 2s infinite;
    pointer-events: none;
    z-index: 1;
}

/* 进度指示器 */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8a2be2, var(--primary-color));
    z-index: 9999;
    animation: pulse 2s ease-in-out infinite;
}

/* 科技风格分隔线 */
.tech-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(60, 142, 255, 0.5), transparent);
    margin: 2rem 0;
}

.tech-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--bg-base);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(60, 142, 255, 0.5);
}

/* 加载动画 */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(60, 142, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: rotate 1s ease-in-out infinite;
}

/* 卡片增强效果 */
.tech-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(60, 142, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(60, 142, 255, 0.3);
    border-color: rgba(60, 142, 255, 0.5);
}

/* 按钮增强效果 */
.tech-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.tech-btn:hover::before {
    left: 100%;
}

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 142, 255, 0.4);
}

/* 标题增强效果 */
.tech-title {
    position: relative;
    display: inline-block;
    z-index: 1;
    animation: flicker 5s infinite;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8a2be2);
    border-radius: 3px;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

/* 扫描线效果 */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanline 6s linear infinite;
}

/* 数字雨效果 */
.digital-rain {
    position: relative;
    overflow: hidden;
}

.digital-rain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' font-family='monospace' font-size='10' fill='rgba(60, 142, 255, 0.1)' text-anchor='middle'%3E01%3C/text%3E%3Ctext x='20%25' y='30%25' font-family='monospace' font-size='8' fill='rgba(0, 255, 255, 0.05)' text-anchor='middle'%3E10%3C/text%3E%3Ctext x='80%25' y='70%25' font-family='monospace' font-size='12' fill='rgba(138, 43, 226, 0.08)' text-anchor='middle'%3E11%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
    animation: digitalRain 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* 响应式科技效果调整 */
/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动设备上的科技元素优化 */
  .robot-decoration {
    width: 100px !important;
    height: 100px !important;
    opacity: 0.08;
  }
  
  .particle {
    width: 2px !important;
    height: 2px !important;
    opacity: 0.5 !important;
  }
  
  .circuit-texture,
  .grid-bg {
    background-size: 200px !important;
  }
  
  .neon-border {
    border-width: 1px !important;
  }
  
  /* 简化移动设备上的效果以提高性能 */
  .data-stream-line {
    width: 1px !important;
    opacity: 0.4 !important;
  }
  
  .tech-card {
    box-shadow: 0 4px 10px rgba(60, 142, 255, 0.2) !important;
  }
  
  
}

/* Hero区域 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 142, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #6a5acd);
    box-shadow: 
        0 4px 15px rgba(60, 142, 255, 0.4),
        0 0 10px rgba(60, 142, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2864c5, #483d8b);
    box-shadow: 
        0 6px 20px rgba(60, 142, 255, 0.6),
        0 0 15px rgba(60, 142, 255, 0.4);
    transform: translateY(-2px);
}

/* 卡片 */
.auth-card, .overview-card, .req-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.auth-card:hover, .overview-card:hover, .req-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(60, 142, 255, 0.3);
    border-color: rgba(60, 142, 255, 0.5);
}

/* 图标盒 */
.icon-box {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-box:hover::before {
    opacity: 1;
}

/* 时间线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #8a2be2, var(--primary-color));
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(60, 142, 255, 0.5), transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .robot-decoration.robot-1 {
        width: 100px;
        height: 100px;
        top: 5%;
        right: 2%;
    }
    
    .robot-decoration.robot-2 {
        width: 80px;
        height: 80px;
        bottom: 5%;
        left: 2%;
    }
    
    .circuit-texture::after {
        background-size: 15px 15px;
    }
    
    .grid-bg::before {
        background-size: 30px 30px;
    }
}

/* 14. 添加科技风格的滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), #8a2be2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#2864c5, #483d8b);
}

/* 15. 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(60, 142, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: rotate 0.8s linear infinite;
}

/* 16. 应用到现有部分 */
#index {
    position: relative;
}

#eventIntroduction, #workRequirements, #schedule, #faq, #cta {
    position: relative;
}

/* 为特定部分添加背景效果 */
#eventIntroduction {
    background-color: var(--bg-white);
}

#eventIntroduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(60, 142, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#workRequirements {
    background-color: var(--bg-gray);
}

#workRequirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(60, 142, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 142, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

#schedule {
    background-color: var(--bg-white);
}

#schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 40% 80%, rgba(60, 142, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#faq {
    background-color: var(--bg-gray);
}

#faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(60, 142, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 142, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

#cta {
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 142, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
