/*--------------------------------------------------------------
# Hero Section Styles
--------------------------------------------------------------*/

/* Hero Section */
.hero {
  position: relative;
  padding-top: 160px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%) 50%, color-mix(in srgb, var(--accent-color), transparent 98%) 25%, transparent 50%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent-color), transparent 92%), transparent 40%);
  pointer-events: none;
}

/* Hero 文字样式优化 */
.hero-content {
  padding-right: 20px;
  margin-bottom: 30px;
}

/* 主标题样式统一 */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; /* 使用更粗的字重 */
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em; /* 稍微调整字间距 */
}

.hero-title:nth-child(2) {
  margin-bottom: 24px;
}

/* 强调文字样式 */
.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(var(--color-primary-rgb), 0.2);
  z-index: -1;
  border-radius: 4px;
}

/* 副标题样式 */
.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin: 0 0 20px 0;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* 描述文字样式 */
.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 95%;
}

.hero-description ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.hero-description li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.hero .brand-text {
  font-weight: 900;
  color: var(--primary-color);
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

.hero .accent-text {
  font-size: 2.4rem;
  color: var(--primary-color);
  font-weight: 700;
  display: block;
  margin-top: 0.5rem;
}

.hero .company-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* Hero按钮样式 */
.hero .btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.hero .btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

.hero .btn-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.hero .btn-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Hero Image Styles */
.hero-image {
  position: relative;
  padding: 20px;
}

/* 专门针对三个页面顶部配图的样式 - 保持1024x600比例不变形 */
.hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1024 / 600; /* 保持1024:600的宽高比 */
  object-fit: cover; /* 保持比例，裁剪多余部分 */
  border-radius: 20px; /* 添加圆角效果 */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* 添加阴影增强视觉效果 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

/* 鼠标悬停效果 */
.hero-image img:hover {
  transform: translateY(-5px) scale(1.02); /* 轻微上移和放大 */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); /* 增强阴影 */
}

/* 保留原有的hero-img类样式作为备用 */
.hero-img {
  width: 120%;  /* 让图片比容器更宽 */
  max-width: none;  /* 覆盖.img-fluid的max-width限制 */
  transform: translateX(-10%);  /* 调整位置以保持居中 */
}

/* 响应式调整 - 确保在不同屏幕尺寸下都能正确显示 */
@media (max-width: 1200px) {
  .hero-image img {
    border-radius: 16px; /* 稍微减小圆角 */
  }
}

@media (max-width: 992px) {
  .hero-image img {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .hero-image img:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 768px) {
  .hero-image img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  
  .hero-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
}

/* Hero Image Carousel 样式 */
.image-carousel {
  position: relative;
  width: 100%;
  height: 600px; /* 调整高度适应全身图片 */
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* 对话气泡样式优化 */
.ai-teacher-bubble {
  position: absolute;
  top: 30%; /* 下移气泡位置 */
  right: 0;
  background: #fff;
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 320px; /* 略微增加宽度以适应更长的文本 */
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.ai-teacher-bubble::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.ai-teacher-bubble p {
  margin: 0;
  font-size: 15px; /* 略微增加字号 */
  line-height: 1.6;
  color: var(--text-color);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .hero-img {
    width: 110%;
    transform: translateX(-5%);
  }
}

@media (max-width: 992px) {
  .hero-img {
    width: 100%;
    transform: none;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero .brand-text {
    font-size: 2.8rem;
  }
  
  .hero .accent-text {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}