/* ========================================
   Home V3 - 高科技感首页样式
   颜色方案: #0a0e27 深蓝黑 + #00d4ff 霓虹蓝 + #7b61ff 紫光
   ======================================== */

/* 全局重置 */
.home-v3 {
  background: #0a0e27;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* ========================================
   Hero 区
   ======================================== */
.hero-v3 {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 2rem 0;
  min-height: 100vh;
}

.hero-text {
  flex: 1;
  max-width: 50%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);
  color: #0a0e27;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #00d4ff;
  border: 2px solid #00d4ff;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero 统计数据 */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #00d4ff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Hero 终端 */
.hero-terminal {
  flex: 1;
  max-width: 45%;
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.terminal-header {
  background: #16213e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
  min-height: 300px;
}

.code-line {
  opacity: 0;
  animation: typing 0.5s forwards;
  margin-bottom: 4px;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.8s; }
.code-line:nth-child(4) { animation-delay: 1.0s; }
.code-line:nth-child(5) { animation-delay: 1.2s; }
.code-line:nth-child(6) { animation-delay: 1.6s; }
.code-line:nth-child(7) { animation-delay: 1.8s; }
.code-line:nth-child(8) { animation-delay: 2.2s; }
.code-line:nth-child(9) { animation-delay: 2.6s; }
.code-line:nth-child(10) { animation-delay: 2.8s; }

@keyframes typing {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   通用 Section 样式
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 3rem;
}

/* ========================================
   技术矩阵区
   ======================================== */
.tech-matrix-section {
  padding: 6rem 0;
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card:hover {
  transform: translateY(-8px);
  border-color: #00d4ff;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tech-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.tech-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ========================================
   精选文章区
   ======================================== */
.featured-articles-section {
  padding: 6rem 0;
  background: rgba(26, 26, 46, 0.3);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.article-card-v3 {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card-v3:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
}

.article-category {
  display: inline-block;
  background: rgba(123, 97, 255, 0.2);
  color: #7b61ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-title a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: #00d4ff;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.article-date {
  color: #64748b;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
}

.article-link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-link:hover {
  gap: 1rem;
  color: #7b61ff;
}

/* ========================================
   精选项目区
   ======================================== */
.featured-projects-section {
  padding: 6rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card-v3 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card-v3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #7b61ff);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card-v3:hover::before {
  opacity: 1;
}

.project-card-v3:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  gap: 1rem;
  color: #7b61ff;
}

/* ========================================
   关于我区
   ======================================== */
.about-section {
  padding: 6rem 0;
  background: rgba(26, 26, 46, 0.3);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.core-competencies {
  margin-top: 2rem;
}

.competency-list {
  list-style: none;
  padding: 0;
}

.competency-list li {
  padding: 0.75rem 0;
  color: #94a3b8;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.competency-list li:last-child {
  border-bottom: none;
}

/* 技能进度条 */
.skills-radar {
  padding: 2rem;
  background: #1a1a2e;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.skill-bars {
  margin-top: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-name {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #7b61ff);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* ========================================
   联系区
   ======================================== */
.contact-section {
  padding: 6rem 0;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  text-decoration: none;
  padding: 1rem 1.5rem;
  background: #1a1a2e;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  transform: translateY(-2px);
  color: #00d4ff;
}

.contact-icon {
  font-size: 1.5rem;
}

/* ========================================
   滚动动画
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-terminal {
    max-width: 100%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tech-grid,
  .articles-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
