.header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 1.2rem;
  transition: background-color 0.3s;
}

.header-left,
.header-right {
  flex: 1;
}

.logo {
  width: 80px;
}

.search {
  height: 32px;
  width: 480px;
  /* background-color: #fff; */
  padding: 0 16px;
  border-radius: 8px;
  /* border: 1px solid rgba(68, 83, 130, 0.25); */
}

input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

/* 添加悬浮样式 */

.sticky-header {
  position: fixed;
  top: 0;
  background-color: rgb(252, 252, 255);
  z-index: 1000;
}

.main {
  background-size: contain;
  background: linear-gradient(to bottom, #774cff, #f4f4f5 344px);
}

.contain {
  width: 95%;
  margin: auto;
}

/* 头部banner */

.banner {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background-image: radial-gradient(circle at 10% 20%, #794efe 0%, #a68cfb 90%);
  background-size: 400%;
  background-position: 0 100%;
  animation: Banner_gradient__1iGeC 7.5s ease-in-out infinite;
  transform: translateZ(0);
  z-index: 1;
}

@keyframes Banner_gradient__1iGeC {
  50% {
    background-position: 100% 0;
  }
}

.banner-text {
  width: 52%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.5rem;
}

.banner-title {
  font-weight: 500;
  font-size: 36px;
  line-height: 36px;
  margin-bottom: 12px;
}

.banner-desc {
  font-weight: 400;
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.banner-btn {
  width: fit-content;
  border-radius: 8px;
  min-width: 32px;
  height: 32px;
  font-size: 14px;
  padding: 6px 16px;
  background-color: #ffffff1f;
  cursor: pointer;
}

.banner-btn:hover {
  background-color: #ffffff33;
}

/* 模版 */

.template {
  margin-top: 40px;
}

.title {
  line-height: 28px;
  font-size: 22px;
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.title-main {
  color: rgba(8, 13, 30, 0.9);
}

.subtitle {
  color: rgba(32, 41, 69, 0.62);
}

.template-main {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 16px;
}

.template-card {
  width: 100%;
  height: 364px;
  background-color: #fff;
  margin-bottom: 16px;
  border: 1px solid rgba(82, 100, 154, 0.13);
  border-radius: 8px;
  padding: 12px 12px 16px;
  cursor: pointer;
  position: relative;
}

.template-card:hover {
  /* box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 8px 24px 0 rgba(0, 0, 0, 0.04); */
  box-shadow: 0 4px 12px 0 #7b51fe, 0 8px 24px 0 rgba(201, 13, 13, 0.04);
}

.template-img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.template-s {
  display: none;
}

.template-text {
  padding: 0 4px;
  margin-top: 8px;
}

.template-title {
  display: flex;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  gap: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.icon-text {
  margin-left: 2px;
}

.user {
  display: flex;
  gap: 4px;
  height: 18px;
  align-items: center;
  color: rgba(32, 41, 69, 0.62);
  font-size: 12px;
  line-height: 18px;
  margin-top: 4px;
}

.user-img {
  border-radius: 12px;
}

.template-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 24px;
  color: rgba(32, 41, 69, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-price {
  font-weight: 500;
  width: 78px;
  /* box-shadow: rgba(122, 118, 246, 0.2) 0px 4px 24px 0px,
    rgba(255, 255, 255, 0.5) 0px 2px 16px 0px inset; */
  text-align: center;
  border-radius: 7px;
  height: 26px;
  background-color: #7b51fe;
  color: #ffffff;
  font-size: 14px;
  line-height: 26px;
  position: absolute;
  right: 14px;
  top: 224px;
  border: none;
  cursor: pointer;
}

.footer-price:hover {
  background-color: #a78cfb;
}

.footer-price:focus {
  outline: none;
  box-shadow: 0 0 5px #7b51fe;
}

.footer-copy {
  display: flex;
  gap: 4px;
  color: rgba(32, 41, 69, 0.62);
  font-size: 12px;
  line-height: 26px;
}

/* 商店 */

.shop {
  margin-top: 40px;
}

.shop-tab-box {
  padding-bottom: 12px;
  position: sticky;
  top: 15px;
}

.shop-tab-main {
  max-width: 100%;
  display: flex;
  overflow: auto;
}

.sticky-shop {
  background-color: rgb(252, 252, 255);
  width: 100vw;
  left: 0;
  border-bottom: 0.5px solid rgb(240, 240, 245);
  box-shadow: rgba(0, 0, 0, 0.08) 0px 6px 6px 0px;
}

.shop-tab {
  background-color: #fff;
  box-shadow: 0 2px 4px 0 #1e1e1f0a;
  cursor: pointer;
  font-weight: 600;
  height: 32px;
  margin-right: 12px;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 4px 12px;
  white-space: nowrap;
}

.shop-tab:hover {
  background-color: #2e2e3814;
}

.select-shop {
  background-color: #4d53e8;
  color: #fff;
}

.select-shop:hover {
  background-color: #4d53e8;
}

.shop-main {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 16px;
}

.shop-card {
  background: #fff;
  cursor: pointer;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 20px 20px 16px;
  width: 100%;
  border-radius: 8px;
}

.shop-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 8px 24px 0 rgba(0, 0, 0, 0.04);
}

.shop-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.shop-img {
  background: #f0f0f5;
  border: 1px solid #f0f0f5;
  border-radius: 8px;
  height: 64px;
  width: 64px;
}

.shop-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 126px;
}

.shop-title {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  color: #1c1d23;
  font-size: 18px;
  font-weight: 600;
  height: 24px;
  line-height: 24px;
}

.shop-title-icon {
  height: 24px;
  font-size: 12px;
  color: rgb(81, 71, 255);
  border-radius: 5px;
  background-color: rgba(171, 181, 255, 0.3);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

.shop-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* 显示的行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(56, 55, 67, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 4px;
  width: 100%;
}

.line {
  border-bottom: 0.5px solid #f0f0f5;
  margin-bottom: 16px;
  margin-top: 20px;
}

.shop-bottom {
  display: flex;
  height: 20px;
  width: 100%;
  gap: 8px;
  font-size: 12px;
  color: rgba(29, 28, 35, 0.35);
  justify-content: space-between;
}

.shop-data {
  display: flex;
  gap: 6px;
  align-items: center;
}

.shop-data > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-btn {
  width: fit-content;
  align-items: center;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  line-height: 32px;
  outline: none;
  padding-left: 16px;
  padding-right: 16px;
  user-select: none;
  white-space: nowrap;
  background: #fff;
  border-radius: 40px;
  font-weight: 600;
  margin: 12px auto 28px;
}

@media (min-width: 640px) {
  .shop-main,
  .template-main {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .contain {
    width: 95%;
    margin: auto;
  }
}

@media (min-width: 768px) {
  .shop-main,
  .template-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contain {
    width: 95%;
    margin: auto;
  }
}

@media (min-width: 1200px) {
  .shop-main,
  .template-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contain {
    width: 83%;
    margin: auto;
  }
}

@media (min-width: 1600px) {
  .shop-main,
  .template-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .contain {
    width: 83%;
    margin: auto;
  }
}

.footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 40px;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  font-size: 14px;
  line-height: 22px;
  color: #888892;
}

.footer-l {
  display: flex;
  flex-wrap: wrap;
  gap: 4;
  justify-content: center;
  margin-top: 10px;
}

.footer-l img {
  width: 150px;
  height: 150px;
}

.footer-lx {
  text-align: center;
  color: #1c1d23;
  font-size: 18px;
  font-weight: 600;
  height: 24px;
  line-height: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4;
  justify-content: center;
  margin-top: 100px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

/* 弹窗 */

#customModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 888;
}

#customModal .modal-content {
  border-radius: 5px;
  padding: 20px 26px;
  background: #fff;
  width: 600px;
  overflow: hidden;
}

#customModal .modal-close {
  float: right;
  font-weight: 500;
  width: 78px;
  text-align: center;
  border-radius: 6px;
  height: 30px;
  color: #ffffff;
  font-size: 14px;
  line-height: 30px;
  border: none;
  cursor: pointer;
  margin-left: 20px;
}

#customModal .modal-closeg {
  background-color: #a68cfb;
}

#customModal .modal-closeg:hover {
  background-color: #7b51fe;
}

#customModal .modal-closeg:focus {
  outline: none;
  box-shadow: 0 0 5px #a68cfb;
}

#customModal .modal-closeu {
  background-color: #fa5b5a;
  width: 100px;
}

#customModal .modal-closeu:hover {
  background-color: #7b51fe;
}

#customModal .modal-closeu:focus {
  outline: none;
  box-shadow: 0 0 5px #a68cfb;
}

#customModal .modal-img {
  width: 548px;
  height: 274px;
  border-radius: 6px;
  float: left;
  margin-right: 16px;
}

#customModal .modal-names {
  padding-top: 16px;
  width: 100%;
  font-weight: 600;
  font-size: 16px;
  float: left;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #373d41;
}

#customModal .modal-title {
  width: 100%;
  text-indent: 2em;
  line-height: 24px;
  max-height: 200px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  text-align: justify;
  color: rgba(32, 41, 69, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  float: left;
}




  #cnblogs_post_body .cnblogs_code {
      /* background-color: rgba(152, 147, 147, 0.28); */
      /* border: 1px solid rgba(255, 251, 251, 0); */
      border-radius: 4px;
      color: #000;
      font-family: Courier New !important;
      font-size: 13px !important;
      margin: 5px 0;
      overflow: auto;
      padding: 5px;
    }
    .hljs-built_in,
    .hljs-keyword,
    .hljs-name,
    .hljs-selector-tag,
    .hljs-tag {
      color: #332870 !important;
    }

    .hljs-emphasis,
    .hljs-strong {
      color: #a8a8a2 !important;
    }
    .hljs-built_in,
    .hljs-keyword,
    .hljs-name,
    .hljs-selector-tag,
    .hljs-tag {
      color: #bababa !important;
    }

    .hljs-bullet,
    .hljs-link,
    .hljs-literal,
    .hljs-number,
    .hljs-quote,
    .hljs-regexp {
      color: #27c94a !important;
    }

    .hljs-code,
    .hljs-selector-class {
      color: #eeff00 !important;
    }

    .hljs-emphasis {
      font-style: italic !important;
    }

    .hljs-attribute,
    .hljs-keyword,
    .hljs-name,
    .hljs-section,
    .hljs-selector-tag,
    .hljs-variable {
      color: #00c3ff !important;
    }

    .hljs-attr,
    .hljs-params {
      color: #b9b9b9 !important;
    }

    .hljs-string {
      color: #ffbb00 !important;
    }

    .hljs-addition,
    .hljs-built_in,
    .hljs-builtin-name,
    .hljs-selector-attr,
    .hljs-selector-id,
    .hljs-selector-pseudo,
    .hljs-subst,
    .hljs-symbol,
    .hljs-template-tag,
    .hljs-template-variable,
    .hljs-title,
    .hljs-type {
      color: #dfe231 !important;
    }

    .hljs-comment,
    .hljs-deletion {
      color: #008839 !important;
    }

    .hljs-meta {
      color: #00ff0d !important;
    }
    #cnblogs_post_body{
      margin: 0 auto;
      width: 1440px;
    }
    #cnblogs_post_body .toc ul {
      max-height: 550px;
      overflow-y: auto;
    }

    .cnblogs-markdown .hljs {
      display: block;
      overflow-x: auto;
      padding: 0.5em !important;
      background: #2b2b2b !important;
      font-size: 14px !important;
      color: #bababa !important;
      font-family: Source Code Pro, Consolas, Menlo, Monaco, Courier New,
        monospace !important;
    }
    #cnblogs_post_body h1::before {
      content: "H1";
      margin-right: 10px;
      color: gainsboro;
    }
    #cnblogs_post_body h2::before {
      content: "H2";
      margin-right: 10px;
      color: gainsboro;
    }
    #cnblogs_post_body h3::before {
      content: "H3";
      margin-right: 10px;
      color: gainsboro;
    }
    #mainContent #post_detail #cnblogs_post_body h4::before {
      content: "h4";
      margin-right: 10px;
      color: gainsboro;
    }
    #cnblogs_post_body h5::before {
      content: "h5";
      margin-right: 10px;
      color: gainsboro;
    }
    #cnblogs_post_body h6::before {
      content: "h6";
      margin-right: 10px;
      color: gainsboro;
    }
    #cnblogs_post_body td.hljs-ln-numbers {
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      text-align: center;
      color: #ccc;
      border-right: 1px solid #ccc;
      vertical-align: top;
      padding-right: 5px;

      /* your custom style here */
    }

    #cnblogs_post_body .hljs td {
      border-collapse: inherit;
      min-width: unset;
      padding-left: 20px;
      padding-right: 10px;
    }


    .tit{
      width: 100vw;
      height: 100px;
      margin: 0 auto;
      text-align: center;
      line-height: 100px;
      font-size: 30px;
      font-weight: 600;
      color:#fff;
    }

.titAlt{
      width: 1440px;
      height: 20px;
      margin: 0 auto;
      line-height: 20px;
      font-size: 14px;
      font-weight: 600;
      color:#666;
    }

