.code-box-demo {
  padding: 42px 24px 50px;
  color: rgba(0,0,0,.85);
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1rem;
  margin-right: 1rem;
  display: inline-block;
}
.rate.card {
  width: 180px;
  max-width: 180px;
  height: fit-content;
  padding: 14px;
  border: none;
  border-radius: 20px;
  color: rgba(255, 0, 0, 0.85);
  background-color: rgba(255, 255, 255, 0);
  /* box-shadow: 0px 1px 3px -2px rgba(0,0,0,.4), 0px 3px 4.5px 1px rgba(0,0,0,.1); */
  /* -webkit-box-shadow: 0px 6px 25px -4px rgb(0 0 0 / 20%), 0px 16px 50px 8px rgb(0 0 0 / 8%); */
  /* box-shadow: 0px 6px 25px -4px rgb(0 0 0 / 20%), 0px 16px 50px 8px rgb(0 0 0 / 8%); */
  /* -webkit-transform: scale(0.8);
  transform: scale(0.9); */
  transition: all .3s ease;
}
.rate.card:hover {
  /* -webkit-transform: scale(1.1);
  transform: scale(1.1); */
  -webkit-box-shadow: 0px 10px 32px -10px rgb(0 0 0 / 37%), 0px 16px 50px 8px rgb(0 0 0 / 8%);
  box-shadow: 0px 10px 32px -10px rgb(0 0 0 / 37%), 0px 16px 50px 8px rgb(0 0 0 / 8%);
}
.rate.card.red {
  background: #ff416c;
  background-image: linear-gradient( 135deg, #ff416c, #ff4b2b);
}
.rate.card.red2 {
  background-image: linear-gradient( 135deg, #ffb199 0%, #ff0844 100%);
}
.rate.card.red3 {
  background: #ed213a;
  background-image: linear-gradient( 135deg, #ed213a, #93291e);
}
.rate.card.orange {
  background-image: linear-gradient( 135deg, #FEC163 10%, #DE4313 100%);
}
.rate.card.orange2 {
  background-image: linear-gradient( 135deg, #FCCF31 10%, #F55555 100%);
}
.rate.card.orange3 {
  background-image: linear-gradient( 135deg, #FDD819 10%, #E80505 100%);
}
.rate.card.yellow {
  background-image: linear-gradient( 135deg, #FFE985 10%, #FA742B 100%);
}
.rate.card.green {
  background-image: linear-gradient( 135deg, #93f9b9 10%, #1d976c 100%);
}
.rate.card.teal {
  background-image: linear-gradient( 135deg, #2AFADF 10%, #4C83FF 100%);
}
.rate.card.teal2 {
  background-image: linear-gradient( 135deg, #65FDF0 10%, #1D6FA3 100%);
}
.rate.card.teal3 {
  background-image: linear-gradient( 135deg, #5EFCE8 10%, #736EFE 100%);
}
.rate.card.blue {
  background-image: linear-gradient( 135deg, #ABDCFF 10%, #0396FF 100%);
}
.rate.card.blue2 {
  background-image: linear-gradient( 135deg, #43CBFF 10%, #9708CC 100%);
}
.rate.card.blue3 {
  background-image: linear-gradient( 135deg, #97ABFF 10%, #123597 100%);
}
.rate.card.blue4 {
  background-image: linear-gradient( 135deg, #52E5E7 10%, #130CB7 100%);
}
.rate.card.blue5 {
  background-image: linear-gradient( 135deg, #72EDF2 10%, #5151E5 100%);
}
.rate.card.purple {
  background-image: linear-gradient( 135deg, #CE9FFC 10%, #7367F0 100%);
}
.rate.card.purple2 {
  background-image: linear-gradient( 135deg, #FAB2FF 10%, #1904E5 100%);
}
.rate.card.purple3 {
  background-image: linear-gradient( 135deg, #FF6FD8 10%, #3813C2 100%);
}
.rate.card.purple4 {
  background-image: linear-gradient( 135deg, #E2B0FF 10%, #9F44D3 100%);
}
.rate.card.purple5 {
  background-image: linear-gradient( 135deg, #EE9AE5 10%, #5961F9 100%);
}
.rate.card.pink {
  background-image: linear-gradient( 135deg, #F6D242 10%, #FF52E5 100%);
}
.rate.card.pink2 {
  background-image: linear-gradient( 135deg, #f093fb 0%, #f5576c 100%);
}

.rate.icon {
  height: 2rem;
  width: 100%;
  margin-bottom: 2px;
  fill: #fff;
}

ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
}

.ant-rate {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: rgba(0, 0, 0, .85);
  font-size: 14px;
  font-variant: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  /* display: inline-block; */
  margin: 0;
  padding: 0;
  color: #fadb14;
  font-size: 20px;
  line-height: unset;
  list-style: none;
  outline: none
}

.ant-rate.ant-rate-disabled {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  line-height: 0;
}

.ant-rate-disabled .ant-rate-star {
  margin-top: 0;
  cursor: default;
}

.ant-rate-disabled .ant-rate-star:hover {
  -webkit-transform: scale(1);
  transform: scale(1)
}

.ant-rate-star {
  position: relative;
  display: inline-block;
  color: inherit;
  cursor: pointer;
  -webkit-transition: all .3s;
  transition: all .3s
}

.ant-rate-star:not(:last-child) {
  margin-right: 0px
}

.ant-rate-star>div:focus {
  outline: 0
}

.ant-rate-star>div:focus, .ant-rate-star>div:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1)
}

.ant-rate-star-first, .ant-rate-star-second {
  color: #f0f0f0;
  -webkit-transition: all .3s;
  transition: all .3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none
}

.ant-rate-star-first .anticon, .ant-rate-star-second .anticon {
  vertical-align: middle
}

.ant-rate-star-first {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  opacity: 0
}

.ant-rate-star-half .ant-rate-star-first, .ant-rate-star-half .ant-rate-star-second {
  opacity: 1
}

.ant-rate-star-full .ant-rate-star-second, .ant-rate-star-half .ant-rate-star-first {
  color: inherit
}

.ant-rate-text {
  /* display: inline-block; */
  margin: 0 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.ant-rate-rtl {
  direction: rtl
}

.ant-rate-rtl .ant-rate-star:not(:last-child) {
  margin-right: 0;
  margin-left: 8px
}

.ant-rate-rtl .ant-rate-star-first {
  right: 0;
  left: auto
}

/* 移动屏幕自适应 */
/* Extra small devices (phones, 400px and down) */
@media only screen and (max-width: 400px) {
  .rate.card {
    width: 100%;
    max-width: 90%;
    margin: 0 0 1.5rem 0;
  }
}
/* iPhone X */
@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) {
      .rate.card {
        width: 40vw;
        margin: 0 2vw 4vw 2vw;
      }
    }

/* Small devices (portrait tablets and large phones, 400px and up) */
@media only screen and (min-width: 400px) {
  .rate.card {
    width: 41vw;
    max-width: 44%;
    margin: 0 0.5rem 1rem 0.5rem;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .rate.card {
    width: 10rem;
    max-width: 180px;
    margin: 0 0.5rem 1.5rem 0.5rem;
  }
} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .rate.card {
    width: 10rem;
    margin: 0 0.5rem 1.5rem 0.5rem;
  }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .rate.card {
    width: 15rem;
    max-width: 188px;
    margin: 0 1rem 1.5rem 1rem;
  }
}

/* 横屏 */
/* @media only screen and (min-width: 400px) and (orientation : landscape) {
  .rate.card {
    width: 27vw;
    margin: 0 1vw 3vw 1vw;
  }
} */
/* @media only screen and (min-width: 600px) and (orientation : landscape) {
  .rate.card {
    width: 23vw;
  }
} */
/* @media only screen and (min-width: 700px) and (orientation : landscape) {
  .rate.card {
    width: 20vw;
  }
} */
/* iPhone 12 Pro Max */
/* @media only screen and (min-width: 830px) and (orientation : landscape) {
  .rate.card {
    width: 19vw;
    margin: 0 1vw 2vw 1vw;
  }
} */
/* @media only screen and (min-width: 992px) and (orientation : landscape) {
  .rate.card {
    margin: 0 1vw 2vw 1vw;
  }
} */

/* 自适应黑暗模式 */
[data-user-color-scheme='dark'] .rate.card:hover {
  -webkit-box-shadow: 0px 10px 32px -10px rgb(0 0 0 / 47%), 0px 16px 50px 8px rgb(0 0 0 / 18%);
  box-shadow: 0px 10px 32px -10px rgb(0 0 0 / 47%), 0px 16px 50px 8px rgb(0 0 0 / 18%);
}
