/* 首页样式 */

/* 轮播图 */
.hero-carousel {
  position: relative;
}

.hero-carousel .layui-carousel {
  background: #1a3a5c;
}

.hero-carousel .layui-carousel>[carousel-item]>* {
  background-size: cover;
  background-position: center;
}

.hero-slide {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 58, 92, 0.85) 0%, rgba(26, 58, 92, 0.4) 60%, transparent 100%);
}

.hero-slide .slide-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  color: #fff;
}

.hero-slide .slide-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

.hero-slide .slide-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-slide .slide-content .layui-btn {
  animation: fadeInUp 0.8s ease 0.4s both;
  height: 44px;
  line-height: 44px;
  padding: 0 32px;
  font-size: 15px;
  border-radius: 22px;
}

.hero-slide-1 {
  background-image: url("../img/banner1.jpg");
}

.hero-slide-2 {
  background-image: url("../img/banner2.jpg");
}

.hero-slide-3 {
  background-image: url("../img/banner3.jpg");
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 数据统计 */
.stats-bar {
  background: #0066cc;
  padding: 40px 0;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  color: #fff;
}

.stat-item .number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-item .number span {
  font-size: 18px;
}

.stat-item .label {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

/* 产品推荐 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.product-card .pic {
  height: 180px;
  overflow: hidden;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .pic img {
  transform: scale(1.08);
}

.product-card .info {
  padding: 16px;
  text-align: center;
}

.product-card .info h4 {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card .info p {
  font-size: 12px;
  color: #999;
}

/* 关于我们预览 */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview .about-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-preview .about-img img {
  width: 100%;
  display: block;
}

.about-preview .about-img .experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: #0066cc;
  color: #fff;
  padding: 20px 28px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
}

.about-preview .experience-badge .num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.about-preview .experience-badge .text {
  font-size: 13px;
  margin-top: 4px;
}

.about-preview .about-text h3 {
  font-size: 26px;
  color: #1a3a5c;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-preview .about-text p {
  color: #666;
  line-height: 2;
  margin-bottom: 16px;
  text-align: justify;
}

.about-preview .feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.about-preview .feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.about-preview .feature-list li i {
  color: #0066cc;
  font-size: 18px;
}

/* 解决方案 */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.solution-card:hover {
  border-color: #0066cc;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
  transform: translateY(-4px);
}

.solution-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.solution-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card h4 {
  font-size: 18px;
  color: #1a3a5c;
  margin-bottom: 12px;
  font-weight: 600;
}

.solution-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}

/* 资讯中心 */
.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.news-item:hover {
  border-color: #0066cc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.news-item .date-box {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #0066cc;
  color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-item .date-box .day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.news-item .date-box .month {
  font-size: 12px;
  margin-top: 2px;
}

.news-item .news-content h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item .news-content p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-more-bar {
  margin-top: 28px;
  text-align: center;
}

.news-empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 40px 0;
}

/* 合作伙伴 */
.partner-scroll {
  overflow: hidden;
  padding: 20px 0;
}

.partner-track {
  display: flex;
  gap: 40px;
  animation: scrollPartner 30s linear infinite;
}

.partner-track img {
  height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.partner-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollPartner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 首页响应式 */
@media (max-width: 992px) {
  .hero-slide .slide-content h2 {
    font-size: 28px;
  }

  .hero-slide .slide-content p {
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item .number {
    font-size: 28px;
  }

  .about-preview .feature-list {
    grid-template-columns: 1fr;
  }
}

/* 广告位 - 单图 / 网格 */
.ad-single-block {
  margin: 24px 0;
}

.ad-single-link {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.ad-single-link img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

.ad-single-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.ad-grid-block {
  padding: 24px 0;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ad-grid-item {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s;
}

.ad-grid-item:hover {
  transform: translateY(-3px);
}

.ad-grid-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ad-grid-item h4 {
  font-size: 16px;
  margin: 12px 14px 6px;
  color: #1a3a5c;
}

.ad-grid-item p {
  font-size: 13px;
  color: #888;
  margin: 0 14px 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ad-grid {
    grid-template-columns: 1fr;
  }
}
