/*
* GPT5中文网 - 首页样式文件
* 功能说明：首页专用样式，包含Hero区域、服务卡片、新闻资讯、技术特色等模块
* 创建日期：2024年12月19日
* 作者：GPT5工作室
*/

/* Hero区域样式 */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0f2fe" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: #0066cc;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

/* AI动画样式 */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
}

.ai-animation {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-circle {
  width: 200px;
  height: 200px;
  border: 4px solid #0066cc;
  border-radius: 50%;
  position: relative;
  animation: rotate 10s linear infinite;
}

.ai-circle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #10b981;
  border-radius: 50%;
  border-top-color: transparent;
  animation: rotate 5s linear infinite reverse;
}

.ai-text {
  position: absolute;
  font-size: 32px;
  font-weight: 800;
  color: #0066cc;
  text-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

/* 服务卡片区域 */
.services {
  padding: 80px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #10b981);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.service-card p {
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.service-card li {
  padding: 8px 0;
  color: #4b5563;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* 新闻资讯区域 */
.news {
  padding: 80px 0;
  background: #f8fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #0066cc;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 15px;
}

.news-card p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.news-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* 技术特色区域 */
.features {
  padding: 80px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.feature-item:hover {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.feature-item p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 15px;
}

/* 页脚样式 */
.footer {
  background: #1f2937;
  color: #ffffff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #d1d5db;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-block;
  padding: 8px 16px;
  background: #374151;
  border-radius: 6px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #0066cc;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

/* 动画定义 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .ai-animation {
    width: 250px;
    height: 250px;
  }

  .ai-circle {
    width: 150px;
    height: 150px;
  }

  .ai-text {
    font-size: 24px;
  }

  .services,
  .news,
  .features {
    padding: 60px 0;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .services-grid,
  .news-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .news-card,
  .feature-item {
    margin: 0 10px;
  }

  .ai-animation {
    width: 200px;
    height: 200px;
  }

  .ai-circle {
    width: 120px;
    height: 120px;
  }

  .ai-text {
    font-size: 20px;
  }
}