/* home.css - 首页专属模块 */
/* 太原市斯航网络科技有限公司 - 首页样式 */

/* ===== Banner轮播 ===== */
.banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: #261A17;
}

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

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

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

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.banner-content h2 {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(38, 26, 23, 0.6);
}

.banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(38, 26, 23, 0.5);
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  z-index: 4;
}

.banner-dot {
  width: 12px;
  height: 12px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 6px;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.banner-dot.active {
  background-color: #4DB6AC;
}

/* ===== 核心业务简介 ===== */
.core-intro {
  background-color: #F5F2F0;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: #3E2723;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title .subtitle {
  color: #666666;
  font-size: 1rem;
}

/* 核心亮点卡片 */
.feature-cards {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.feature-card {
  width: 25%;
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  float: left;
}

.feature-card-inner {
  background-color: #FFFFFF;
  padding: 2rem 1.5rem;
  text-align: center;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: 0 2px 12px rgba(38, 26, 23, 0.08);
  -moz-box-shadow: 0 2px 12px rgba(38, 26, 23, 0.08);
  box-shadow: 0 2px 12px rgba(38, 26, 23, 0.08);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card-inner:hover {
  -webkit-box-shadow: 0 8px 24px rgba(38, 26, 23, 0.15);
  -moz-box-shadow: 0 8px 24px rgba(38, 26, 23, 0.15);
  box-shadow: 0 8px 24px rgba(38, 26, 23, 0.15);
  -webkit-transform: translateY(-4px);
  -moz-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background-color: rgba(77, 182, 172, 0.1);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #4DB6AC;
}

.feature-card h3 {
  color: #3E2723;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== 服务体系展示 ===== */
.services-section {
  background-color: #261A17;
  padding: 4rem 0;
}

.services-section .section-title h2 {
  color: #FFFFFF;
}

.services-section .section-title .subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.service-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.service-item {
  width: 25%;
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  float: left;
}

.service-item-inner {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(77, 182, 172, 0.2);
  padding: 2rem 1.5rem;
  text-align: center;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  height: 100%;
}

.service-item-inner:hover {
  background-color: rgba(77, 182, 172, 0.1);
  border-color: #4DB6AC;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background-color: rgba(77, 182, 172, 0.15);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 2rem;
  color: #4DB6AC;
}

.service-item h3 {
  color: #FFFFFF;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== 数据展示 ===== */
.data-section {
  background-color: #F5F2F0;
  padding: 4rem 0;
}

.data-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.data-item {
  width: 25%;
  padding: 0 0.75rem;
  text-align: center;
  float: left;
}

.data-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: #4DB6AC;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.data-label {
  font-size: 0.9375rem;
  color: #666666;
}

/* ===== 技术专栏精选 ===== */
.wiki-section {
  background-color: #FFFFFF;
  padding: 4rem 0;
}

.wiki-list {
  list-style: none;
  padding-left: 0;
}

.wiki-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #D5CFCB;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.wiki-item:last-child {
  border-bottom: none;
}

.wiki-item:hover {
  padding-left: 0.5rem;
}

.wiki-item a {
  display: block;
}

.wiki-item a:hover {
  text-decoration: none;
}

.wiki-item h3 {
  color: #3E2723;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.wiki-item a:hover h3 {
  color: #4DB6AC;
}

.wiki-item p {
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.wiki-item .wiki-date {
  font-size: 0.75rem;
  color: #999999;
  margin-top: 0.375rem;
}

/* ===== 新闻动态 ===== */
.news-section {
  background-color: #F5F2F0;
  padding: 4rem 0;
}

.news-list {
  list-style: none;
  padding-left: 0;
}

.news-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #D5CFCB;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  padding-left: 0.5rem;
}

.news-item a {
  display: block;
}

.news-item a:hover {
  text-decoration: none;
}

.news-item h3 {
  color: #3E2723;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.news-item a:hover h3 {
  color: #4DB6AC;
}

.news-item .news-meta {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 0.375rem;
}

.news-item p {
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== 合作伙伴 ===== */
.partner-section {
  background-color: #FFFFFF;
  padding: 4rem 0;
}

.partner-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 -0.75rem;
}

.partner-logo {
  width: 25%;
  padding: 0.75rem;
  text-align: center;
  float: left;
}

.partner-logo-inner {
  background-color: #F5F2F0;
  border: 1px solid #D5CFCB;
  padding: 1.5rem;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.partner-logo-inner:hover {
  border-color: #4DB6AC;
  -webkit-box-shadow: 0 2px 8px rgba(77, 182, 172, 0.15);
  -moz-box-shadow: 0 2px 8px rgba(77, 182, 172, 0.15);
  box-shadow: 0 2px 8px rgba(77, 182, 172, 0.15);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  margin: 0 auto;
}

/* 合作伙伴文字替代 */
.partner-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #3E2723;
  line-height: 60px;
}

/* ===== 联系我们快捷 ===== */
.contact-section {
  background-color: #261A17;
  padding: 4rem 0;
}

.contact-section .section-title h2 {
  color: #FFFFFF;
}

.contact-section .section-title .subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.contact-info-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.contact-info-item {
  width: 33.333333%;
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  float: left;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background-color: rgba(77, 182, 172, 0.15);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1.375rem;
  color: #4DB6AC;
}

.contact-info-item h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.contact-info-item a {
  color: #4DB6AC;
}

.contact-info-item a:hover {
  color: #FFFFFF;
}

/* 留言入口按钮 */
.contact-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: #4DB6AC;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #3E2723;
  color: #FFFFFF;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #3E2723;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(77, 182, 172, 0.2);
}

.footer-col {
  width: 33.333333%;
  padding: 0 0.75rem;
  float: left;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #4DB6AC;
  display: inline-block;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #4DB6AC;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #4DB6AC;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

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

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

.footer-bottom a:hover {
  color: #4DB6AC;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1023px) {
  .feature-card,
  .service-item {
    width: 50%;
  }
  
  .data-item {
    width: 50%;
    margin-bottom: 2rem;
  }
  
  .partner-logo {
    width: 33.333333%;
  }
  
  .contact-info-item {
    width: 100%;
  }
  
  .footer-col {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-col:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .banner-slider {
    height: 300px;
  }
  
  .banner-content h2 {
    font-size: 1.5rem;
  }
  
  .banner-content p {
    font-size: 0.875rem;
  }
  
  .feature-card,
  .service-item {
    width: 100%;
  }
  
  .data-item {
    width: 50%;
  }
  
  .partner-logo {
    width: 50%;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .data-number {
    font-size: 2rem;
  }
}
