* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  /* background: #003366; */
  background: #8889;
  color: #fff;
  padding: 16px 0;
  text-align: center;
}

header h1 {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  /* margin-bottom: 10px; */
  align-items: center;
}

header h1 img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 7px;
  overflow: hidden;
}

header h1 a {
  text-decoration: none;
  color: inherit;
}

header p {
  font-size: 1.2rem;
}

/* nav {
    display: flex;
    justify-content: center;
    background: #0066cc;
    padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcc00;
} */

.hero-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  height: 62vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  user-select: none;
  /* 防止文本被选中影响拖动 */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease-in-out;
}

.hero h2 {
  font-size: 3rem;
  text-align: center;
  z-index: 99;
}

section {
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #003366;
}

.products-series {
  font-size: 20px;
  color: #666;
  line-height: 25px;
  margin-bottom: 10px;
}

/* before属性，在div元素行内前面添加蓝色竖条 */
.products-series::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 30px;
  background-color: #003366;
  margin-right: 10px;
  vertical-align: middle;
}

.products {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  /* gap: 20px; */
}

.product {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.img-container {
  width: 100%;
  min-height: 150px;
  border-radius: 5px;
  overflow: hidden;
}

.product img {
  max-width: 100%;
  margin-bottom: 10px;
}

.product h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #0066cc;
}

#contact {
  margin-bottom: 50px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;

  /* background: #003366; */
  background: #8889;
  color: white;
  text-align: center;
  padding: 8px 0;


}

.products-datasheets {
  margin-top: 20px;
}

.products-datasheets li {
  display: flex;
  /* justify-content: center; */
  align-items: center;
  margin-bottom: 5px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 500px) {
  .products-datasheets li {
    justify-content: center;
  }
}

/* li.textContent 的宽度固定为300px */
.products-datasheets li span {
  min-width: 160px;
  max-width: 280px;
  font-size: 14px;
}

.products-datasheets li:last-child {
  border-bottom: none;
}

.products-datasheets li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: #003366;
  margin-right: 10px;
  vertical-align: middle;
}

/* 圆角矩形按钮按钮样式 */
.products-datasheets li a {
  text-align: center;
  width: 60px;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 10px;
  background-color: #015ebc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}