/* ============================================
   太原市斯航网络科技有限公司 - 首页专属样式
   文件名：home.css
   作用：首页10个模块专属样式
   ============================================ */

/* ====== 模块1：顶部导航+Logo区 - 见nav.css ====== */

/* ====== 模块2：Banner轮播区 ====== */
.banner-section {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(42,42,42,0.7) 0%, rgba(42,42,42,0.3) 50%, rgba(42,42,42,0.1) 100%);
  display: flex;
  align-items: center;
}

.banner-content {
  color: var(--white);
  max-width: 600px;
  padding: 0 20px;
}

.banner-content h2 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* Banner指示器 */
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.banner-dot.active,
.banner-dot:hover {
  background-color: var(--secondary);
  border-color: var(--white);
  transform: scale(1.2);
}

/* Banner箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.banner-arrow:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.banner-arrow.prev {
  left: 30px;
}

.banner-arrow.next {
  right: 30px;
}

/* ====== 模块3：核心业务简介区 ====== */
.core-business {
  background-color: var(--bg);
  padding: 80px 0;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.business-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 40px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: var(--secondary);
}

.business-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ff8c5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--white);
}

.business-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.business-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ====== 模块4：服务体系展示区 ====== */
.service-section {
  background-color: var(--white);
  padding: 80px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--dark);
  color: var(--white);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-card-img {
  opacity: 0.5;
}

.service-card-body {
  padding: 25px;
}

.service-card-body h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card-body h3 a {
  color: var(--white);
}

.service-card-body h3 a:hover {
  color: var(--secondary);
}

.service-card-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.service-link:hover {
  color: #ff8c5a;
}

/* ====== 模块5：数据展示区 ====== */
.data-section {
  background-color: var(--dark);
  padding: 80px 0;
  position: relative;
}

.data-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/module5.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.data-item {
  text-align: center;
  padding: 30px;
}

.data-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1;
}

.data-label {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.data-item .data-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--secondary);
}

/* ====== 模块6：技术百科精选区 ====== */
.wiki-section {
  background-color: var(--bg);
  padding: 80px 0;
}

.wiki-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.wiki-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s ease;
}

.wiki-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transform: translateX(5px);
}

.wiki-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.wiki-item h3 a {
  color: var(--primary);
}

.wiki-item h3 a:hover {
  color: var(--secondary);
}

.wiki-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.wiki-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.wiki-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ====== 模块7：新闻动态区 ====== */
.news-section {
  background-color: var(--white);
  padding: 80px 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background-color: var(--bg);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border-radius: 8px;
  color: var(--white);
}

.news-date .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  font-size: 12px;
  margin-top: 2px;
}

.news-content {
  flex: 1;
}

.news-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.4;
}

.news-content h3 a {
  color: var(--primary);
}

.news-content h3 a:hover {
  color: var(--secondary);
}

.news-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ====== 模块8：合作伙伴区 ====== */
.partner-section {
  background-color: var(--bg);
  padding: 60px 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.partner-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ====== 模块9：联系我们快捷区 ====== */
.contact-quick {
  background-color: var(--dark);
  padding: 60px 0;
  color: var(--white);
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.contact-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-quick-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: rgba(255,107,53,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
}

.contact-quick-item h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 5px;
}

.contact-quick-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.contact-quick-item a {
  color: var(--secondary);
}

.contact-quick-item a:hover {
  color: #ff8c5a;
}

/* ====== 模块10：Footer区 ====== */
.footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.footer-links h4 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: var(--secondary);
}

.footer-contact h4 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ====== 首页响应式 ====== */
@media (max-width: 1024px) {
  .business-grid,
  .service-grid,
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .banner-section {
    height: 400px;
    margin-top: 60px;
  }
  
  .banner-content h2 {
    font-size: 28px;
  }
  
  .banner-content p {
    font-size: 15px;
  }
  
  .banner-arrow {
    display: none;
  }
  
  .business-grid,
  .service-grid,
  .data-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wiki-list,
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-quick-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .core-business,
  .service-section,
  .wiki-section,
  .news-section {
    padding: 50px 0;
  }
  
  .data-section {
    padding: 50px 0;
  }
  
  .data-number {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .banner-section {
    height: 350px;
  }
  
  .banner-content h2 {
    font-size: 22px;
  }
  
  .section-title h2 {
    font-size: 22px;
  }
  
  .partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .partner-item {
    height: 70px;
    font-size: 14px;
    padding: 15px;
  }
  
  .news-item {
    flex-direction: column;
    gap: 15px;
  }
}
