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

body {
  font-family: "Microsoft YaHei", sans-serif;
  color: #222;
}

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

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

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul,
li {
  list-style: none;
}

.container, .case-wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section__head--center {
  justify-content: center;
  text-align: center;
}

.section__title div {
  display: flex;
  align-items: center;
}

.section__title div > img {
  width: 15px;
  height: 15px;
}

.section__title div > img:last-child {
  margin-left: -3px;
  z-index: -1;
}

.section__title h2 {
  font-size: 44px;
  font-weight: bold;
  margin-top: 20px;
}

.section__title p {
  color: #333;
  font-size: 18px;
  margin-top: 20px;
}

.more-link {
  font-size: 18px;
  display: flex;
  align-items: center;
  border-bottom: solid 3px #000;
  padding-bottom: 18px;
  font-weight: bold;
}

.more-link > img {
  margin-left: 24px;
}

.more-link > img:last-child {
  display: none;
}

.more-link:hover {
  color: #009933;
}

.more-link:hover > img:nth-of-type(1) {
  display: none;
}

.more-link:hover > img:last-child {
  display: block;
}

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

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

.case-wrap {
  display: flex;
  gap: 40px;
  padding: 100px 0;
}

.left-sidebar {
  width: 270px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.left-sidebar .sidebar-title {
  background: #29a245;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 18px 24px;
}

.left-sidebar .cate-item {
  display: block;
  padding: 15px 24px;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
}

.left-sidebar .cate-item:hover {
  background: rgba(41, 162, 69, 0.1);
  color: #29a245;
  padding-left: 28px;
}

.left-sidebar .cate-item.active {
  background: #29a245;
  color: #fff;
}

.left-sidebar .cate-item.all-cate {
  font-weight: bold;
  color: #29a245;
}

.right-main {
  flex: 1;
}

.right-main .page-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.right-main .page-bar .page-title {
  font-size: 18px;
  font-weight: 700;
}

.right-main .page-bar .page-count {
  color: #888;
  font-size: 14px;
}

.right-main .case-grid {
  column-count: 3;
  column-gap: 26px;
}

@media (max-width: 1200px) {
  .right-main .case-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .right-main .case-grid {
    column-count: 1;
  }
}

.right-main .case__card {
  border: 1px solid #e6f8eb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 26px;
}

.right-main .case__card .case__card-top {
  background: linear-gradient(to bottom, #40ae3e, #007e14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  height: 70px;
}

.right-main .case__card > .content {
  box-shadow: inset 0 8px 20px rgba(203, 234, 210, 0.8);
  background-color: #f3fff6;
  padding: 25px;
  font-weight: 700;
}

.right-main .case__card > .content > img {
  width: 100%;
  height: auto;
  display: block;
}

.right-main .case__card .case__card-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.right-main .case__card .case__card-desc > p:nth-of-type(1) {
  margin-top: 30px;
  margin-bottom: 20px;
}

.right-main .empty-tips {
  padding: 100px 0;
  text-align: center;
  font-size: 16px;
  color: #999;
}

.right-main .pagination {
  margin-top: 45px;
  text-align: center;
}

.right-main .pagination a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0 5px;
  font-size: 14px;
  transition: all 0.25s;
}

.right-main .pagination a:hover {
  border-color: #29a245;
  color: #29a245;
}

.right-main .pagination a.active {
  background: #29a245;
  color: #fff;
  border-color: #29a245;
}

@media screen and (max-width: 1340px) {
  .case-wrap {
    width: 96%;
  }
}

@media screen and (max-width: 992px) {
  .banner {
    margin-top: 0;
  }
  .case-wrap {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
    width: 92%;
  }
  .left-sidebar {
    width: 100%;
    position: static;
    top: auto;
  }
  .right-main .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__title h2 {
    font-size: 32px;
  }
}

@media screen and (max-width: 768px) {
  .banner {
    margin-top: 0;
  }
  .case-wrap {
    padding: 40px 0;
    width: 90%;
  }
  .right-main .case-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .section__title h2 {
    font-size: 26px;
    margin-top: 12px;
  }
  .section__title p {
    font-size: 15px;
    margin-top: 12px;
  }
  .page-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .pagination a {
    padding: 7px 12px;
    margin: 0 3px;
    font-size: 13px;
  }
  .case__card-top {
    height: 60px !important;
    font-size: 19px !important;
  }
  .case__card > .content {
    padding: 18px !important;
  }
  .case__card-desc {
    font-size: 14px !important;
  }
  .sidebar-title {
    padding: 14px 20px !important;
    font-size: 16px !important;
  }
  .cate-item {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .cate-item:hover {
    padding-left: 24px !important;
  }
  .empty-tips {
    padding: 80px 10px !important;
  }
}

@media screen and (max-width: 480px) {
  .case-wrap {
    padding: 30px 0;
    width: 94%;
  }
  .pagination {
    margin-top: 30px;
  }
  .pagination a {
    padding: 6px 9px;
    margin: 0 2px;
  }
  .page-title {
    font-size: 16px !important;
  }
  .more-link {
    font-size: 15px;
    padding-bottom: 10px;
  }
}
