/* ===== 轮播图样式 ===== */
.banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

.banner-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  background-color: rgba(4, 55, 173, 0.4);
  padding: 15px 50px;
  border-radius: 20px;
  z-index: 10;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 20;
}

.banner-arrow:hover {
  background-color: rgba(40, 76, 159, 0.8);
}

.banner-arrow-left {
  left: 20px;
}

.banner-arrow-right {
  right: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--color-orange);
  transform: scale(1.2);
}

.dot:hover {
  background-color: var(--color-blue);
}

@media (max-width: 768px) {
  .banner {
    height: 300px;
  }

  .banner-title {
    font-size: 20px;
    padding: 10px 25px;
  }

  .banner-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 200px;
  }

  .banner-title {
    font-size: 16px;
    padding: 8px 15px;
  }

  .banner-arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* ===== 通用板块样式 ===== */
.section-box {
  width: 80%;
  margin: 50px auto;
  text-align: center;
}

.section-box h2 {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.section-box .section-subtitle {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

/* ===== 关于我们 ===== */
.about {
  width: 100%;
  background-color: var(--color-bg-gray);
  padding: 80px 0;
  margin: 80px 0;
}

.about .container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-left {
  flex: 1;
  padding-left: 50px;
  text-align: left;
}

.about-left h2 {
  font-size: 32px;
}

.about-left p {
  font-size: 16px;
  font-weight: 300;
  color: #222;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

.about-img {
  width: 50%;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.about-data {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-top: 30px;
}

.data-item {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  position: relative;
}

.data-item .data-number {
  font-size: 60px;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  display: inline-block;
}

.data-item .data-unit {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.8;
  display: inline-block;
  margin-left: 2px;
  transform: translateY(0.3em);
}

.data-item .data-text {
  font-size: 16px;
  font-weight: 300;
  color: #222;
  display: block;
  width: 100%;
  margin-top: 5px;
  line-height: 1.4;
}

/* ===== 产品展示 ===== */
.product {
  width: 80%;
  margin: 50px auto;
  text-align: center;
}

.product-card-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background-color: var(--color-bg-gray);
  padding: 20px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-btn {
  padding: 8px 24px;
  font-size: 14px;
  color: #333;
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.product-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* ===== 技术特色 ===== */
.tech {
  width: 80%;
  margin: 80px auto;
  text-align: center;
}

.tech-feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tech-feature-item {
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
}

.tech-feature-icon {
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tech-feature-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.tech-feature-item h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 15px;
}

.tech-feature-item p {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: justify;
  flex: 1;
}

/* ===== 应用案例 ===== */
.case {
  width: 80%;
  max-width: 1400px;
  margin: 80px auto;
  text-align: center;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 0 auto;
}

.case-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  cursor: pointer;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.case-item img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-item:hover img {
  transform: scale(1.05);
}

.case-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 12px 15px 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  min-height: 50px;
  max-height: 50px;
}

.case-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 15px 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.case-item .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 15px 15px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.case-item .tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag::before {
  content: '📍';
  margin-right: 4px;
  font-size: 12px;
}

.case-item .arrow {
  font-size: 18px;
  color: #999;
  transition: color 0.3s, transform 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}

.case-item:hover .arrow {
  color: var(--color-blue);
  transform: translateX(5px);
}

/* ===== 新闻中心 ===== */
.news {
  width: 100%;
  background-color: var(--color-bg-gray);
  padding: 60px 0;
  margin: 60px 0;
}

.news .container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.news h2 {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.news .section-subtitle {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.news-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-blue);
}

.news-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 15px 15px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.news-date {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

.news-arrow {
  font-size: 18px;
  color: #999;
  transition: color 0.3s, transform 0.3s;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}

.news-item:hover .news-arrow {
  color: var(--color-blue);
  transform: translateX(5px);
}

/* ===== 响应式布局 ===== */
@media (max-width: 1200px) {
  .product-card-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-box h2 {
    font-size: 36px;
  }

  .section-box .section-subtitle {
    font-size: 24px;
  }

  .about .container {
    flex-direction: column;
  }

  .about-left {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-img {
    width: 90%;
  }

  .product-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-feature-list {
    grid-template-columns: 1fr;
  }

  .case-list {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .product {
    width: 90%;
  }

  .tech {
    width: 90%;
  }

  .case {
    width: 90%;
  }

  .news .container {
    width: 90%;
  }

  .news h2 {
    font-size: 36px;
  }

  .news .section-subtitle {
    font-size: 24px;
  }

  .news-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .product-card-list {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 200px;
  }
}