@charset "utf-8";
/* color*/
/* wrap */
/* img */
/* 覆盖现有样式 */
.ky_banner h1 {
  text-shadow: 0 0 19px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 0, 0, 0.3);
}
.columns_menu a {
  box-shadow: 0 0 19px 6px rgb(145 60 0 / 20%);
}

.article-content {
  padding-bottom: 14rem;
}

.main-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3rem;
  margin: 0 auto;
  width: fit-content;
}

.grid-item {
  position: relative;
  width: 68.7rem;
  height: 33.9rem;
  border-radius: 2rem;
  overflow: hidden;
}
/* grid-item背景 */
.grid-item:nth-child(1) { 
  background: linear-gradient(to right, #ffad57, #fe720c);
}
.grid-item:nth-child(2) { 
  background: linear-gradient(to right, #659ff7, #0972de);
}
.grid-item:nth-child(3) { 
  background: linear-gradient(to right, #a5abf9, #5458e8);
}
.grid-item:nth-child(4) { 
  background: linear-gradient(to right, #45e0ce, #0ab0b5);
}

.absolute-img {
  position: absolute;
  top: 7.5rem;
  right: 7.6rem;
  width: 20rem;
  height: 20rem;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.relative-title {
  position: relative;
  left: 5.8rem;
  top: 0;
  width: 35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.relative-title > h2 {
  font-weight: normal;
  font-size: 4.8rem;
  line-height: 7rem;
  color: var(--white-primary);
}
.title-decoration {
  margin-top: 4rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.3);
  color: var(--white-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.6rem;
  font-weight: bold;
  transition: background-color 0.3s;
}
/* 选中效果 */
.grid-item:hover .absolute-img {
  transform: scale(1.2);
}
.grid-item:hover .title-decoration { 
  background-color: var(--red-primary);
}

@media screen and (max-width: 1280px) { 
  .grid-item {
    width: 50rem;
    height: 26rem;
  }
  .relative-title {
    left: 3rem;
    width: 30rem;
  }
  .relative-title > h2 {
    font-size: 4rem;
    line-height: 5rem;
  }
  .title-decoration {
    margin-top: 2rem;
  }
  .absolute-img {
    top: 2.5rem;
    right: 1.6rem;
  }
}

@media screen and (max-width: 767px) { 
  .article-content {
    padding-bottom: 60px;
  }
  .main-content {
    grid-template-columns: 1fr;
    grid-gap: 20px;
    width: 100%;
    padding: 0 20px;
  }
  .grid-item {
    width: 100%;
    height: auto;
    padding: 20px 0;
    border-radius: 20px;
  }
  .relative-title {
    left: 0;
    width: 74%;
    padding: 0 20px;
  }
  .relative-title > h2 {
    font-size: 28px;
    line-height: 40px;
  }
  .title-decoration {
    margin-top: 10px;
    width: 26px;
    height: 26px;
    font-size: 28px;
  }
  .absolute-img {
    top: 0;
    right: 5px;
    width: 130px;
    height: 100%;
  }
}