/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1e88e5;
  color: white;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.pc-nav {
  background: var(--light-gray);
  /* background-color: white; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.pc-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  font-size: 18px;
}

.nav-links li {
  margin: 0 15px;
  position: relative;
}

.nav-links a {
  padding: 10px 0;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1e88e5;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1e88e5;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-box button {
  padding: 8px 15px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* 移动端导航按钮 - 默认隐藏 */
.mobile-nav-btn,
.mobile-nav {
  display: none;
}

/* 英雄区域/轮播图 */
.hero-section {
  /* margin-top: 80px; */
  position: relative;
  /* height: 600px; */
  height: 550px;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide img {
  width: 100%;
  /* height: 100%; */
  height: auto;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
}

.first {
  z-index: 9999;
  top: 78%;
  left: 8%;
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.slider-controls button {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-controls button:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
}

.slider-dots .dot.active {
  background-color: white;
}

/* 各内容区块通用样式 */
section {
  padding: 80px 0;
}

h2 {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: #333;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #1e88e5;
}

/* 关于我们区块 */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.about-image {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 产品中心 */
.product-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
}

.category-btn {
  padding: 8px 20px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
}

.category-btn.active,
.category-btn:hover {
  background-color: #1e88e5;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.product-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 100%;
  /* height: 200px; */
  height: auto;
  object-fit: cover;
}

.product-item h3 {
  padding: 15px 20px 5px;
  font-size: 20px;
}

.product-item p {
  padding: 0 20px 15px;
  color: #666;
  font-size: 14px;
}

.product-item .btn {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
}

.view-all {
  text-align: center;
}

/* 服务项目 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-item {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 280px;
  /* height: 80px;
  background-color: #e3f2fd;
  border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #1e88e5;
}

.service-item h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.service-item p {
  color: #666;
  font-size: 14px;
  text-align: left;
}

.service-details {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-details p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* 新闻动态 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-date {
  background-color: #1e88e5;
  color: white;
  padding: 15px;
  text-align: center;
  min-width: 80px;
}

.news-date .day {
  font-size: 28px;
  font-weight: bold;
  display: block;
}

.news-date .month {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.news-date .year {
  font-size: 12px;
  display: block;
}

.news-content {
  padding: 15px;
}

.news-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.news-content h3 a:hover {
  color: #1e88e5;
}

.news-content p {
  color: #666;
  font-size: 14px;
}

/* 合作伙伴 */
.partners-section {
  background-color: white;
  padding: 60px 0;
}

.partner-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logos img {
  height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-logos img:hover {
  opacity: 1;
}

/* 联系我们 */
.contact-section {
  background-color: rgb(6, 122, 198);
}
.contact-section h2,
.contact-section h3 {
  color: #ffffff;
}
.contact-wrap {
  color: rgb(199, 225, 242);
}
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
  /* background-color: white; */
  padding: 40px 15px;
  border-radius: 8px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
}

.contact-info h3 {
  margin-bottom: 30px;
  font-size: 24px;
  /* color: #333; */
}

.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 18px;
}

.contact-info i {
  margin-right: 10px;
  color: #1e88e5;
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #333;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: #1e88e5;
  color: white;
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  margin-bottom: 30px;
  font-size: 24px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1e88e5;
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* 页脚 */
footer {
  background-color: #263238;
  color: #b0bec5;
  /* padding: 60px 0 0; */
  padding: 0px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #1e88e5;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #1e88e5;
}

.footer-bottom {
  border-top: 1px solid #37474f;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #1e88e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #1565c0;
}

.textIndent {
  text-indent: 2em; /* 缩进2个字符 */
}
