/* 全局变量 */
:root {
  --primary-color: #0F172A;
  --secondary-color: #3B82F6;
  --accent-color: #F97316;
  --neutral-color: #64748B;
  --light-color: #F8FAFC;
  --dark-color: #1E293B;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 代码高亮样式 */
.keyword {
  color: #569CD6;
}

.method {
  color: #DCDCAA;
}

.string {
  color: #CE9178;
}

.comment {
  color: #6A9955;
}

/* 代码高亮样式 */
.keyword {
  color: #569CD6;
}

.method {
  color: #DCDCAA;
}

.string {
  color: #CE9178;
}

.comment {
  color: #6A9955;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏 */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.logo h1 span {
  color: var(--accent-color);
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1rem;
}

.nav ul li a:hover {
  color: var(--secondary-color);
}

.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav ul li a:hover::after {
  width: 100%;
  height: 3px;
}

/* 英雄区域 */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block {
  background: #0F172A;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #1E293B;
}

.code-block pre {
  margin: 0;
  color: #E2E8F0;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-block code {
  display: block;
  font-feature-settings: "liga" 0;
}

/* 特性区域 */
.features {
  padding: 100px 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--neutral-color);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  position: relative;
}

.feature-card p {
  color: var(--neutral-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* 培训内容 */
.training {
  padding: 100px 0;
  background: linear-gradient(to bottom, #F8FAFC 0%, #FFFFFF 100%);
}

.training-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.training-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  width: calc(50% - 40px);
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-top: 10px;
  border: 1px solid #E2E8F0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--neutral-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 生态系统 */
.ecosystem {
  padding: 100px 0;
  background-color: white;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.ecosystem-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ecosystem-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
}

.ecosystem-card p {
  color: var(--neutral-color);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.ecosystem-card ul {
  list-style-type: none;
}

.ecosystem-card ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--neutral-color);
  font-size: 0.95rem;
}

.ecosystem-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1rem;
}

/* 联系方式 */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
}

.contact .section-header h2,
.contact .section-header p {
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item svg {
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: white;
  transition: var(--transition);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 页脚 */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 70px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
}

.footer-logo h2 span {
  color: var(--secondary-color);
}

.footer-logo p {
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
  font-weight: 500;
}

.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact .contact-item svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.footer-contact .contact-item span {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #334155;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    max-width: 100%;
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav ul {
    display: none;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 0 !important;
    text-align: center;
  }
  
  .training-timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}