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

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

body {
  font-family: "Microsoft Yahei", PingFang SC, Hiragino Sans GB, sans-serif;
  background: radial-gradient(circle at 20% 12%, rgba(126, 217, 87, 0.14), transparent 30%), radial-gradient(circle at 80% 8%, rgba(41, 162, 69, 0.08), transparent 32%), linear-gradient(to bottom, #FFFFFF, #FAFFF7);
  color: #1F2933;
  line-height: 1.8;
}

ul,
li {
  list-style: none !important;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner {
  width: 100%;
  margin-top: -80px;
}

.banner > img {
  width: 100%;
  height: auto;
}

.main {
  padding: 100px 0;
}

.case-tab {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 80px;
}

.case-tab .tab-btn {
  width: 320px;
  height: 120px;
  border: 1px solid #E9EDE3;
  border-radius: 22px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #FFFFFF;
  color: #5F6F82;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(35, 155, 60, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-tab .tab-btn > img:nth-of-type(2) {
  display: none;
}

.case-tab .tab-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #29A245, #7ED957);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.case-tab .tab-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 162, 69, 0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.case-tab .tab-btn:hover {
  transform: translateY(-8px);
  border-color: rgba(41, 162, 69, 0.35);
  box-shadow: 0 16px 36px rgba(35, 155, 60, 0.12);
  color: #29A245;
}

.case-tab .tab-btn:hover > img:nth-of-type(1) {
  display: none;
}

.case-tab .tab-btn:hover > img:nth-of-type(2) {
  display: block;
}

.case-tab .tab-btn:hover::before {
  transform: scaleX(1);
}

.case-tab .tab-btn:hover::after {
  opacity: 1;
}

.case-tab .tab-btn.active {
  transform: translateY(-6px);
  border-color: rgba(41, 162, 69, 0.35);
  box-shadow: 0 0 0 1px rgba(41, 162, 69, 0.06), 0 8px 24px rgba(35, 155, 60, 0.1);
  color: #29A245;
}

.case-tab .tab-btn.active > img:nth-of-type(1) {
  display: none;
}

.case-tab .tab-btn.active > img:nth-of-type(2) {
  display: block;
}

.case-tab .tab-btn.active::before {
  transform: scaleX(1);
}

.case-tab .tab-btn.active::after {
  opacity: 1;
}

.content-wrap {
  display: flex;
  gap: 40px;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar .sidebar-title {
  height: 80px;
  line-height: 80px;
  background: linear-gradient(to right, #29A245, #7ED957);
  color: #FFFFFF;
  padding-left: 36px;
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sidebar .sidebar-list {
  border: 1px solid #E9EDE3;
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(35, 155, 60, 0.04);
}

.sidebar .sidebar-list .sidebar-item {
  height: 80px;
  line-height: 80px;
  padding-left: 36px;
  font-size: 18px;
  color: #5F6F82;
  border-bottom: 1px solid #F2F5EB;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .sidebar-list .sidebar-item > a {
  display: block;
  width: 100%;
}

.sidebar .sidebar-list .sidebar-item:last-child {
  border-bottom: none;
}

.sidebar .sidebar-list .sidebar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #29A245, #7ED957);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

.sidebar .sidebar-list .sidebar-item.active {
  background: rgba(41, 162, 69, 0.08);
  color: #29A245;
  font-weight: 500;
  padding-left: 42px;
}

.sidebar .sidebar-list .sidebar-item.active::before {
  width: 18px;
  margin-left: 12px;
}

.sidebar .sidebar-list .sidebar-item:hover:not(.active) {
  background: rgba(41, 162, 69, 0.08);
  color: #29A245;
  padding-left: 42px;
}

.sidebar .sidebar-list .sidebar-item:hover:not(.active)::before {
  width: 18px;
  margin-left: 12px;
}

.product-main {
  flex: 1;
}

.brand-nav {
  display: flex;
  gap: 14px;
  margin: 0 0 36px 0;
  flex-wrap: wrap;
}

.brand-item {
  padding: 10px 24px;
  font-size: 16px;
  color: #5F6F82;
  border: 1px solid #E9EDE3;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  background: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.brand-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 162, 69, 0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.brand-item::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
}

.brand-item:hover:not(.active) {
  transform: translateY(-5px) scale(1.02);
  color: #29A245;
  border-color: rgba(41, 162, 69, 0.35);
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(35, 155, 60, 0.08);
}

.brand-item:hover:not(.active)::before {
  opacity: 1;
}

.brand-item:hover:not(.active)::after {
  border-color: rgba(41, 162, 69, 0.22);
}

.brand-item.active {
  transform: translateY(-5px) scale(1.02);
  color: #29A245;
  border-color: rgba(41, 162, 69, 0.35);
  background: rgba(41, 162, 69, 0.08);
  box-shadow: 0 0 0 1px rgba(41, 162, 69, 0.06), 0 8px 24px rgba(35, 155, 60, 0.1);
}

.brand-item.active::before {
  opacity: 1;
}

.brand-item.active::after {
  border-color: rgba(41, 162, 69, 0.22);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 36px;
}

.product-grid .product-card {
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(35, 155, 60, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.product-grid .product-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #29A245, #7ED957);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.product-grid .product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 36px rgba(35, 155, 60, 0.12);
}

.product-grid .product-card:hover::before {
  transform: scaleX(1);
}

.product-grid .product-card:hover > .card-name {
  color: #29A245;
  background: rgba(41, 162, 69, 0.08);
}

.product-grid .product-card:hover > .card-img {
  border-color: rgba(41, 162, 69, 0.35);
  background: #FFFFFF;
}

.product-grid .product-card .card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #E9EDE3;
  border-radius: 22px 22px 0 0;
  background: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-grid .product-card .card-img img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}

.product-grid .product-card .card-name {
  height: 72px;
  line-height: 72px;
  text-align: center;
  font-size: 15px;
  color: #5F6F82;
  background-color: #F7FAF3;
  margin-top: 0;
  border-radius: 0 0 22px 22px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.pagination > img {
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination > img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(41, 162, 69, 0.35));
}

.pagination .page-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #E9EDE3;
  font-size: 16px;
  background: #FFFFFF;
  color: #5F6F82;
  line-height: 60px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pagination .page-num::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 162, 69, 0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pagination .page-num::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
}

.pagination .page-num:hover {
  color: #29A245;
  border-color: rgba(41, 162, 69, 0.35);
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(35, 155, 60, 0.08);
}

.pagination .page-num:hover::before {
  opacity: 1;
}

.pagination .page-num:hover::after {
  border-color: rgba(41, 162, 69, 0.22);
}

.pagination .page-num.active {
  color: #29A245;
  border-color: rgba(41, 162, 69, 0.35);
  background: rgba(41, 162, 69, 0.08);
  transform: scale(1.08);
  box-shadow: 0 0 0 1px rgba(41, 162, 69, 0.06), 0 8px 24px rgba(35, 155, 60, 0.1);
}

.pagination .page-num.active::before {
  opacity: 1;
}

.pagination .page-num.active::after {
  border-color: rgba(41, 162, 69, 0.22);
}

.pagination .page-num a {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 992px) {
  .banner {
    margin-top: 0;
  }
  .content-wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-tab {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 768px) {
  .banner {
    margin-top: 0;
  }
  .main {
    padding: 50px 0;
  }
  .case-tab {
    gap: 20px;
  }
  .case-tab .tab-btn {
    width: 100%;
    height: 100px;
    font-size: 22px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .brand-nav {
    gap: 10px;
  }
  .brand-nav .brand-item {
    padding: 9px 18px;
    font-size: 15px;
  }
  .pagination {
    gap: 16px;
  }
  .pagination .page-num {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
  }
}
