/* ===== 科技感交互效果增强 ===== */

/* 按钮样式改造 - 适配黑色背景 */
.button.tech-button {
  background: linear-gradient(135deg, #007acc 0%, #005a9e 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  padding: 1.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

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

.button.tech-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
  background: linear-gradient(135deg, #005a9e 0%, #004080 100%);
}

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

.button.tech-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

/* 卡片科技感效果 */
.tech-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--glass-shadow);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--tech-cyan), var(--cosmic-purple));
  opacity: 0.8;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  border-color: rgba(0, 255, 255, 0.5);
}

.tech-card:hover::before {
  animation: techGlow 2s ease-in-out infinite;
}

/* 标题效果 */
.tech-title {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.tech-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #007acc, transparent);
  opacity: 0.7;
}

/* 加载动画 */
.tech-loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(138, 43, 226, 0.3);
  border-top: 3px solid var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.tech-loader::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid transparent;
  border-top: 2px solid var(--tech-cyan);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
  opacity: 0.7;
}

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

@keyframes techGlow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 10px var(--neon-blue);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px var(--tech-cyan), 0 0 30px var(--neon-blue);
  }
}

/* 输入框科技感样式 */
.tech-input {
  background: rgba(10, 10, 18, 0.8);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: var(--backdrop-blur);
}

.tech-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
  background: rgba(10, 10, 18, 0.9);
}

.tech-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* 进度条科技感样式 */
.tech-progress {
  background: rgba(10, 10, 18, 0.6);
  border-radius: var(--radius-lg);
  height: 8px;
  overflow: hidden;
  position: relative;
}

.tech-progress-bar {
  background: linear-gradient(90deg, var(--neon-blue), var(--tech-cyan));
  height: 100%;
  border-radius: var(--radius-lg);
  position: relative;
  transition: width 0.5s ease;
}

.tech-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .button.tech-button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
  
  .tech-card {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .button.tech-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .tech-title {
    font-size: 1.5rem;
  }
}