@import url("./public.css"); /* 通用样式 */
/* 设置当前页面的通用样式 */
:root {
  /* 板块通用边距 */
  --global-plate-margin: 50px auto;
  /* 板块标题 */
  --global-title-color: #121e2f;
  --global-title-size: 35px;
  --global-title-weight: 600;
  /* 板块描述 */
  --global-desc-color: #808080;
  --global-desc-size: 16px;

  /* 移动端样式 */
  --global-title-size-mobile: 5.6vw;
  --global-desc-size-mobile: 3.6vw;
}
/* 产品中心 */
.index-product-box {
  margin-top: 50px;
}

.index-product-box .index-product-title {
  text-align: center;
  color: var(--global-title-color);
  font-size: var(--global-title-size);
  font-weight: var(--global-title-weight);
}
.index-product-box .index-product-desc {
  text-align: center;
  color: var(--global-desc-color);
  font-size: var(--global-desc-size);
  margin-top: 20px;
}
.index-product-box .index-product-list {
  margin: var(--global-plate-margin);
  width: 1200px;
}
.index-product-list .product-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 30px;
  width: 100%;
  height: 100%;
}

.index-product-list .product-list-item:nth-child(odd) {
  flex-direction: row;
}
.index-product-list .product-list-item:nth-child(even) {
  flex-direction: row-reverse;
}

.index-product-list .product-list-item:nth-child(odd) .list-item-img {
  margin-right: 30px;
}
.index-product-list .product-list-item:nth-child(even) .list-item-img {
  margin-left: 30px;
}

/* 没有图片文件 */
.notfile-product-list-item {
  margin-top: 20px;
}
.notfile-product-list-item .notfile-product-list-item-title {
  text-align: center;
  color: "#37474f";
  font-size: 24px;
  font-weight: var(--global-title-weight);
}
.notfile-product-list-item .notfile-product-list-item-desc {
  margin-top: 20px;
}
.notfile-product-list-item .item-content-btngroup {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 50px;
}
.notfile-product-list-item .item-content-btngroup .item-content-btn {
  border: 1px solid #8797af;
  text-align: center;
  color: #333;
  border-radius: 10px;
  padding: 10px 30px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 60px;
}

.product-list-item .list-item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 40%;
  /* aspect-ratio: 4/3; */
  flex-shrink: 0;
}
.product-list-item .list-item-content {
  margin: var(--global-plate-margin);
  margin-left: 40px;
  flex-grow: 1;
}

.product-list-item .list-item-content .item-content-title {
  text-align: center;
  color: var(--global-title-color);
  font-size: 24px;
  font-weight: var(--global-title-weight);
}
.product-list-item .list-item-content .item-content-desc {
  margin-top: 20px;
  font-size: 14px;
  color: #121e2f;
  line-height: 2em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-list-item .list-item-content .item-content-btngroup {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-gap: 30px;
  margin-top: 50px; */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 50px;
}

.item-content-btngroup .item-content-btn {
  border: 1px solid #8797af;
  text-align: center;
  color: #333;
  border-radius: 10px;
  padding: 10px 30px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 60px;
}
.item-content-btngroup .item-content-btn-fill {
  background-color: #333;
  color: #fff;
}

/* --------------------------- */
/* 根据屏幕大小进行样式更换 */
/* ------------------------------ */

@media screen and (max-width: 768px) {
  /* 产品中心 */
  .index-product-box .index-product-title {
    text-align: center;
    color: var(--global-title-color);
    font-size: var(--global-title-size-mobile);
    font-weight: var(--global-title-weight);
  }
  /* 英文 */
  .index-product-box .index-product-title-en {
    text-align: center;
    color: var(--global-title-color-en);
    font-size: var(--global-title-size-mobile-en);
    font-weight: var(--global-title-weight);
  }
  .index-product-box .index-product-desc {
    text-align: center;
    color: var(--global-desc-color);
    font-size: var(--global-desc-size-mobile);
    margin: 20px;
    width: auto;
  }
  .index-product-box .index-product-list {
    width: auto;
    margin: 20px;
  }
  .index-product-list .product-list-item {
    background-color: #ffffff;
    display: block;
    border: 1px solid #efefef;
    margin-top: 20px;
    padding-bottom: 20px;
  }
  .index-product-list .product-list-item:nth-child(even) .list-item-img {
    /* margin-left: 30px; */
    margin-left: 0;
  }
  .product-list-item .list-item-img {
    margin: 0 auto;
    width: 100%;
    height: var(100vw / 3);
    background-color: #ffffff;
  }
  .product-list-item .list-item-content {
    margin: 10px;
    width: auto;
  }

  .product-list-item .list-item-content .item-content-title {
    text-align: center;
    color: var(--global-title-color);
    font-size: 20px;
    font-weight: var(--global-title-weight);
  }
  .product-list-item .list-item-content .item-content-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #808080;
    line-height: 2em;
    /* height: 100px; */
    width: 100%;
    text-indent: 2em;
    overflow: hidden;
  }
  .product-list-item .list-item-content .item-content-btngroup {
    margin-top: 20px;
  }
  .item-content-btngroup .item-content-btn {
    border: 1px solid #8797af;
    text-align: center;
    color: #0055cc;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
  }
  .item-content-btngroup .item-content-btn-fill {
    background-color: #ff8d1a;
    color: #fff;
  }
}
