/* Section2 产品中心（源站：左分类 240 + 右图 895 + 4 产品卡） */
.section2 {
  margin-top: 100px;
  padding-bottom: 10px;
  background: #fff;
}

.s2-main {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

/* 左栏 */
.s2-left {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
}

.s2-title {
  padding-bottom: 18px;
  border-bottom: 1px solid #e9e9e9;
}

.s2-title h2 {
  font-size: 24px;
  font-weight: 600;
  color: #393e44;
  line-height: 1.4;
}

.s2-title p {
  font-size: 15px;
  color: #bca289;
  margin-top: 8px;
}

.s2-tab {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.s2-tab span {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a9a9a9;
  margin-left: 25px;
  margin-right: 12px;
  transition: 0.3s;
}

.s2-tab a,
.s2-tab em {
  font-style: normal;
  font-size: 15px;
  color: #282828;
  transition: 0.3s;
}

.s2-tab.on {
  background: #393e44;
  border-radius: 0 20px 20px 0;
}

.s2-tab.on span {
  background: #fff;
}

.s2-tab.on a {
  color: #fff;
}

.s2-tab:hover {
  background: #f2f2f2;
  border-radius: 0 20px 20px 0;
}

.s2-tab.on:hover {
  background: #393e44;
}

.s2-tab-more {
  margin-top: 10px;
}

.s2-tab-more em {
  color: #282828;
}

/* 右侧分类图 */
.s2-right {
  flex: 1;
  min-width: 0;
  height: 385px;
  border: 1px solid #393e44;
  overflow: hidden;
}

.s2-pic {
  display: none;
  height: 100%;
}

.s2-pic.on {
  display: block;
}

.s2-pic a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.s2-pic img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 产品卡片 */
.s2-prods {
  margin-top: 10px;
}

.s2-prods-group {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.s2-prods-group.on {
  display: grid;
}

.s2-item {
  position: relative;
  display: block;
  height: 240px;
  border: 1px solid #393e44;
  overflow: hidden;
  transition: 0.6s;
}

.s2-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.s2-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: 0.6s;
}

.s2-item h3 {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  z-index: 2;
  padding: 0 10px;
  text-align: center;
  font-size: 14px;
  color: #282828;
  transition: 0.6s;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s2-item:hover {
  border-color: #bca289;
}

.s2-item:hover::after {
  opacity: 1;
}

.s2-item:hover h3 {
  color: #fff;
}

/* 响应式 */
@media screen and (max-width: 1240px) {
  .s2-main {
    gap: 30px;
  }

  .s2-left {
    flex: 0 0 310px;
  }

  .s2-tab a,
  .s2-tab em {
    font-size: 14px;
  }

  .s2-right {
    height: 330px;
  }

  .s2-item {
    height: 200px;
  }
}

@media screen and (max-width: 1024px) {
  .s2-main {
    gap: 24px;
  }

  .s2-left {
    flex: 0 0 310px;
  }

  .s2-right {
    height: 300px;
  }

  .s2-title h2 {
    font-size: 20px;
  }

  .s2-tab a,
  .s2-tab em {
    font-size: 14px;
  }

  .s2-prods-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .s2-item {
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .section2 {
    margin-top: 40px;
  }

  .s2-main {
    display: block;
    margin-bottom: 14px;
  }

  .s2-left {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .s2-left::-webkit-scrollbar {
    display: none;
  }

  .s2-title {
    display: none;
  }

  .s2-tab {
    flex: 0 0 auto;
    height: 34px;
    margin-top: 0;
    padding: 0 14px;
    background: #f3f3f3;
    border-radius: 17px;
  }

  .s2-tab span {
    display: none;
  }

  .s2-tab.on {
    border-radius: 17px;
  }

  .s2-tab a,
  .s2-tab em {
    font-size: 13px;
  }

  .s2-tab-more {
    display: none;
  }

  .s2-title {
    display: block;
    width: 100%;
  }

  .s2-left {
    flex-wrap: wrap;
  }

  .s2-title {
    flex: 0 0 100%;
    margin-bottom: 10px;
  }

  .s2-title h2 {
    font-size: 20px;
  }

  .s2-title p {
    font-size: 13px;
    margin-top: 4px;
  }

  .s2-right {
    height: 190px;
    margin-top: 14px;
  }

  .s2-prods-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .s2-item {
    height: 150px;
  }

  .s2-item h3 {
    font-size: 13px;
    bottom: 10px;
  }
}

/* ===== 2026-10-20 补原站轮播左右箭头 ===== */
.s2-right {
  position: relative;
}

.s2-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
  transition: background 0.3s;
}

.s2-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.s2-prev {
  left: 12px;
}

.s2-next {
  right: 12px;
}

@media screen and (max-width: 768px) {
  .s2-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}
