/* 全局样式重置与基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #165dff; /* AI科技蓝为主色调 */
  --secondary-color: #f5f7fa; /* 浅灰辅助色 */
  --accent-color: #7b61ff; /* AI紫色强调色 */
  --text-dark: #1d2129; /* 深色文本 */
  --text-light: #666c7b; /* 浅色文本 */
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0047d1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

section {
  padding: 80px 0;
  position: relative;
}

.section-white {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* 导航栏样式 */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* 英雄区样式 */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
  padding: 140px 0 80px;
  margin-top: 70px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-img {
  position: relative;
}

.hero-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(22, 93, 255, 0.15);
  position: relative;
  z-index: 2;
}

.hero-img::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.1;
  border-radius: 12px;
  z-index: 1;
}

/* AI核心能力样式 */
.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.ai-card {
  padding: 40px 30px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color)) 1;
}

.ai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ai-card i {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
  display: block;
}

.ai-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.ai-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* AI产品功能样式 */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  align-items: center;
}

.feature-item {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.feature-content h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-content p {
  color: var(--text-light);
  line-height: 1.7;
}

.product-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(22, 93, 255, 0.1);
}

/* AI学习场景样式 */
.scenarios {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.scenario-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.scenario-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scenario-content {
  padding: 30px;
}

.scenario-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.scenario-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.scenario-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(22, 93, 255, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* AI效果展示样式 */
.ai-results {
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.result-item {
  padding: 30px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-item i {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.result-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.result-item p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* 联系我们样式 */
.contact {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
}

.contact .section-title h2,
.contact .section-title p {
  color: var(--white);
}

.contact .section-title h2::after {
  background: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* 页脚样式 */
footer {
  background-color: #1d2129;
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  color: var(--white);
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-col p {
  color: #969ba5;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-col .logo {
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #969ba5;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #2b2f38;
  color: #969ba5;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img {
    margin-top: 40px;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .product-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 30px;
  }

  .ai-card {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .result-grid {
    gap: 20px;
  }

  .result-item {
    padding: 20px;
  }

  .result-item .number {
    font-size: 2rem;
  }
}
