/* =============================================
   首页样式 - home.css
   功能：首页10个模块专属样式
   ============================================= */

/* 模块2：Banner轮播区 */
.banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
  max-width: 800px;
  padding: 0 20px;
}

.banner-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.banner-dot.active {
  background-color: var(--secondary);
  width: 30px;
  border-radius: 6px;
}

/* 模块3：核心业务简介区 */
.core-intro {
  background-color: var(--page-bg);
  padding: var(--section-pad);
}

.core-intro .section-title {
  text-align: center;
  display: block;
}

.core-intro .section-title::after {
  margin: 12px auto 0;
}

.core-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.core-card {
  flex: 1;
  min-width: 250px;
  background-color: var(--card-bg);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.core-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: rgba(255,107,107,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--secondary);
}

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

.core-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 模块4：服务体系展示区 */
.service-show {
  background-color: var(--dark-bg);
  color: var(--text-white);
  padding: var(--section-pad);
}

.service-show .section-title {
  text-align: center;
  display: block;
  color: var(--text-white);
}

.service-show .section-title::after {
  margin: 12px auto 0;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.service-item {
  flex: 1;
  min-width: 250px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-item:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.service-item .s-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background-color: rgba(255,107,107,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--secondary);
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.service-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-item .s-link {
  display: inline-block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.service-item .s-link:hover {
  color: #ff8585;
}

/* 模块5：数据展示区 */
.data-section {
  background-color: var(--page-bg);
  padding: var(--section-pad);
}

.data-section .section-title {
  text-align: center;
  display: block;
}

.data-section .section-title::after {
  margin: 12px auto 0;
}

.data-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.data-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 32px 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.data-label {
  font-size: 15px;
  color: var(--text-muted);
}

/* 模块6：技术专栏精选区 */
.wiki-section {
  background-color: var(--card-bg);
  padding: var(--section-pad);
}

.wiki-section .section-title {
  text-align: center;
  display: block;
}

.wiki-section .section-title::after {
  margin: 12px auto 0;
}

.wiki-list {
  margin-top: 40px;
}

.wiki-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.wiki-item:hover {
  padding-left: 10px;
}

.wiki-item h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

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

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

.wiki-item .wiki-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background-color: rgba(255,107,107,0.1);
  color: var(--secondary);
  font-size: 12px;
  border-radius: 20px;
}

/* 模块7：新闻动态区 */
.news-section {
  background-color: var(--page-bg);
  padding: var(--section-pad);
}

.news-section .section-title {
  text-align: center;
  display: block;
}

.news-section .section-title::after {
  margin: 12px auto 0;
}

.news-list {
  margin-top: 40px;
}

.news-item {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.news-date {
  min-width: 80px;
  text-align: center;
  margin-right: 20px;
}

.news-date .day {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.news-date .month {
  font-size: 13px;
  color: var(--text-muted);
}

.news-info h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 600;
}

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

.news-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.partner-section .section-title {
  text-align: center;
  display: block;
}

.partner-section .section-title::after {
  margin: 12px auto 0;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.partner-logo {
  width: 160px;
  height: 80px;
  background-color: var(--page-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 模块9：联系我们快捷区 */
.contact-quick {
  background-color: var(--primary);
  color: var(--text-white);
  padding: var(--section-pad);
}

.contact-quick .section-title {
  text-align: center;
  display: block;
  color: var(--text-white);
}

.contact-quick .section-title::after {
  margin: 12px auto 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 32px 24px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-card .c-icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--secondary);
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

.contact-card a {
  color: rgba(255,255,255,0.75);
}

.contact-card a:hover {
  color: var(--secondary);
}

/* 模块10：Footer */
.footer {
  background-color: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

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

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

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

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

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

/* 平板端首页 */
@media screen and (max-width: 1023px) {
  .banner {
    height: 400px;
  }
  
  .banner-content h2 {
    font-size: 32px;
  }
  
  .banner-content p {
    font-size: 16px;
  }
  
  .core-card,
  .service-item,
  .data-item,
  .contact-card {
    min-width: 45%;
  }
}

/* 手机端首页 */
@media screen and (max-width: 767px) {
  .banner {
    height: 300px;
  }
  
  .banner-content h2 {
    font-size: 24px;
  }
  
  .banner-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .core-card,
  .service-item,
  .data-item,
  .contact-card {
    min-width: 100%;
  }
  
  .partner-logo {
    width: 45%;
    height: 60px;
    font-size: 14px;
  }
  
  .data-num {
    font-size: 36px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .news-date .day {
    font-size: 24px;
  }
  
  .footer-col {
    min-width: 100%;
  }
}
