/* home.css - 首页专属模块（仅首页加载） */

/* ===== Banner轮播 ===== */
.banner {
  position: relative;
  width: 100%;
  height: 700px;
  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: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

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

.banner-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.banner-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15,33,43,0.85) 0%, rgba(27,58,75,0.6) 100%);
}

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

.banner-content h2 {
  font-size: 48px;
  color: var(--text-white);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.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: 32px;
  border-radius: 6px;
}

.banner-dot:hover {
  background-color: rgba(255,255,255,0.7);
}

@media screen and (max-width: 1024px) {
  .banner {
    height: 500px;
  }
  .banner-content h2 {
    font-size: 36px;
  }
  .banner-content p {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .banner {
    height: 400px;
  }
  .banner-content h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .banner-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* ===== 核心业务简介区 ===== */
.highlights {
  background-color: var(--page-bg);
  padding: 60px 0;
}

.highlights-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.highlight-card {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.highlight-inner {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
}

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

.highlight-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.highlight-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--text-white);
}

.highlight-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.highlight-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

@media screen and (max-width: 1024px) {
  .highlight-card {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .highlight-card {
    width: 100%;
    margin-bottom: 16px;
  }
  .highlights {
    padding: 40px 0;
  }
}

/* ===== 服务体系展示区 ===== */
.services-section {
  background-color: #fff;
  padding: 60px 0;
}

.services-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.service-card {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.service-inner {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-inner:hover::before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.service-inner:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(230,57,70,0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(27,58,75,0.08);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.service-inner:hover .service-icon {
  background-color: var(--secondary);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  transition: all 0.3s ease;
}

.service-inner:hover .service-icon svg {
  fill: var(--text-white);
}

.service-title {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.service-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  .service-card {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .service-card {
    width: 100%;
    margin-bottom: 16px;
  }
  .services-section {
    padding: 40px 0;
  }
}

/* ===== 数据展示区 ===== */
.data-section {
  background-color: var(--primary);
  padding: 60px 0;
  color: var(--text-white);
}

.data-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.data-item {
  width: 25%;
  padding: 0 15px;
  text-align: center;
}

.data-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}

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

@media screen and (max-width: 1024px) {
  .data-item {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 767px) {
  .data-item {
    width: 50%;
    margin-bottom: 24px;
  }
  .data-number {
    font-size: 32px;
  }
  .data-label {
    font-size: 14px;
  }
  .data-section {
    padding: 40px 0;
  }
}

/* ===== 文章列表区（技术文库精选/新闻动态） ===== */
.article-section {
  padding: 60px 0;
}

.article-section:nth-child(even) {
  background-color: #fff;
}

.article-section:nth-child(odd) {
  background-color: var(--page-bg);
}

.article-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.article-item:hover {
  padding-left: 8px;
}

.article-item-title {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.article-item-title:hover {
  color: var(--secondary);
}

.article-item-meta {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.article-item-summary {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

@media screen and (max-width: 767px) {
  .article-section {
    padding: 40px 0;
  }
}

/* ===== 合作伙伴区 ===== */
.partner-section {
  background-color: #fff;
  padding: 60px 0;
}

.partner-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 30px;
}

.partner-item {
  width: 120px;
  height: 60px;
  background-color: var(--page-bg);
  border-radius: 6px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.partner-item img {
  max-width: 80%;
  max-height: 40px;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .partner-grid {
    gap: 16px;
  }
  .partner-item {
    width: 100px;
    height: 50px;
  }
  .partner-section {
    padding: 40px 0;
  }
}

/* ===== 联系快捷区 ===== */
.contact-section {
  background-color: var(--page-bg);
  padding: 60px 0;
}

.contact-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.contact-card {
  width: 33.333333%;
  padding: 0 15px;
  margin-bottom: 24px;
}

.contact-inner {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-white);
}

.contact-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  .contact-card {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .contact-card {
    width: 100%;
    margin-bottom: 16px;
  }
  .contact-section {
    padding: 40px 0;
  }
}

/* ===== 图片模块区 ===== */
.image-section {
  padding: 60px 0;
  background-color: #fff;
}

.image-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.image-item {
  width: 33.333333%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.image-inner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.image-inner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-inner:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
  .image-item {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .image-item {
    width: 100%;
  }
  .image-inner img {
    height: 200px;
  }
}
