:root {
  --font-size-14: clamp(13px, calc(12.5px + 0.07vw), 14px);
  --font-size-14: clamp(13px, calc(12.5px + 0.07vw), 14px);
  --font-size-16: clamp(14px, calc(13.5px + 0.13vw), 16px);
  --font-size-18: clamp(16px, calc(15.5px + 0.13vw), 18px);
  --font-size-20: clamp(18px, calc(17.5px + 0.13vw), 20px);
  --font-size-22: clamp(18px, calc(17px + 0.26vw), 22px);
  --font-size-24: clamp(20px, calc(19px + 0.26vw), 24px);
  --font-size-26: clamp(22px, calc(21px + 0.26vw), 26px);
  --font-size-28: clamp(22px, calc(20.5px + 0.39vw), 28px);
  --font-size-30: clamp(24px, calc(22.5px + 0.39vw), 30px);
  --font-size-32: clamp(24px, calc(22px + 0.52vw), 32px);
  --font-size-52: clamp(34px, calc(29.6px + 1.17vw), 52px);
  --font-size-56: clamp(36px, calc(31px + 1.3vw), 56px);
}

html {
  scroll-behavior: smooth;
}

.scroll_box {
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

/* Chrome / Edge / Safari */
.scroll_box::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scroll_box::-webkit-scrollbar-track {
  background: transparent;
}

.scroll_box::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 999px;
}

.scroll_box::-webkit-scrollbar-thumb:hover {
  background: #8f9bb3;
}

.scroll_box::-webkit-scrollbar-corner {
  background: transparent;
}

.btn_download {
  background: linear-gradient(322.62deg, #326ff0 42.26%, #41b6fa 92.86%);
  color: #fff;
  padding: 1.2rem 2.4rem;
  font-weight: 600;
  font-size: var(--font-size-20);
}

.btn_download:hover {
  text-decoration: none;
  color: #fff;
}

.article_container {
  margin-top: 3rem;
  display: flex;
  /* flex-wrap: wrap; */
  align-items: flex-start;
}

/* .article_container a:not([class]) {
  color: inherit;
}
.article_container a:not([class]):hover {
  color: var(--color-link);
  text-decoration: none;
} */

.article_left_share {
  position: sticky;
  top: 2rem;
  z-index: 2;
}

.article_left_share a {
  width: 45px;
  height: 45px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.article_left_share a:hover {
  transform: translateX(-5px);
}

.article_aside {
  width: 35%;
  max-width: 410px;
  position: sticky;
  top: 2rem;
  z-index: 2;
}

.side_panel {
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  overflow: hidden;
}

.side_panel_header {
  width: 100%;
  font-weight: 600;
  font-size: var(--font-size-24);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #333;
}

.side_toc_panel {
  background: radial-gradient(
    162.06% 109.03% at 94% -10.67%,
    rgba(255, 241, 224, 0.5) 0%,
    rgba(255, 255, 255, 0) 52.88%,
    #f0f6ff 100%
  );
}

.aside_title {
  display: block;
  margin-top: 2rem;
  font-size: var(--font-size-16);
}

.aside_title:nth-of-type(1) {
  margin-top: 0;
}

.side_toc_panel .side_panel_header {
  background: #eef4ff;
}

.side_toc_panel .side_panel_body {
  border-top: 1px solid #e6e6e6;
}

.side_toc {
  max-height: 284px;
  margin: 2rem 12px 0 12px;
  overflow-y: auto;
  color: #333;
}

.side_toc li {
  padding-left: 11px;
  margin: 10px 0 10px 16px;
  position: relative;
  font-size: var(--font-size-16);
}

.side_toc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #999;
}

.side_toc a {
  color: inherit;
  display: flex;
}

.side_toc .aside_title::before {
  content: '\e939';
  font-family: 'iconfont';
  font-size: 10px;
  color: #999;
  margin: 4px 6px 0 0;
}

.side_toc li:hover,
.side_toc a:hover,
.side_toc a:hover::before,
.side_toc .is_active,
.side_toc .is_active::before,
.hot_list li a:hover {
  color: var(--color-link);
  text-decoration: none;
}

.side_toc li:hover::before,
.side_toc li.is_active::before {
  background: var(--color-link);
}

.article_main .side_toc_panel {
  margin: 3rem auto;
  padding-bottom: 2.4rem;
  font-size: 15px;
  background: #fff;
  border: 1px solid #bdcfff;
}

.article_main .side_panel_header {
  padding: 10px 14px;
  background: none;
}

.article_main .side_toc {
  margin: 1.2rem;
}

.article_main .aside_title {
  color: var(--color-link);
  font-size: 15px;
  border-radius: 5px;
  background: #ebf6ff;
  padding: 10px;
}

.side_toc .aside_title::before {
  color: inherit;
}

.article_side_share {
  padding: 2rem 0 7px 0;
  margin-top: 2rem;
  border-top: 1px solid #e4e4e4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.article_side_share a {
  transition: all 0.3s ease-in-out;
}

.article_side_share a:hover {
  transform: translateY(-3px);
}

.side_hot_panel {
  margin-top: 3rem;

  background: radial-gradient(
    162.06% 109.03% at 94% -10.67%,
    rgba(255, 241, 224, 0.5) 0%,
    rgba(255, 255, 255, 0) 52.88%,
    #f0f6ff 100%
  );
}

.side_hot_panel .side_panel_body {
  padding: 0 2.5rem;
}

.hot_list {
  max-height: 310px;
  overflow-y: auto;
  margin-bottom: 2.5rem;
}

.hot_list li {
  margin-top: 1.6rem;
}

.hot_list li {
  padding-left: 30px;
  background: url(../resources/img/hot_article_icon.svg) top 5px left no-repeat;
  background-size: 20px 20px;
}

.hot_list li a {
  color: #333;
}

.hot_list li:nth-of-type(2n) {
  background: url(../resources/img/hot_article_icon2.svg) top 5px left no-repeat;
  background-size: 20px 20px;
}

.side_panel .side_panel_body {
  height: 0;
  overflow: hidden;
  border: none;
}

.side_panel_active .side_panel_body {
  height: auto;
}

.side_panel_active .icon_arrow {
  transform: rotate(180deg);
}

.side_product_card {
  margin-top: 3rem;
  border-radius: 32px;
  text-align: center;
  background: #fdf3eb;
  overflow: hidden;
  position: relative;
}

.side_product_main {
  padding: 3rem 2.4rem 0 2.4rem;
}

.side_product_card > img {
  position: relative;
  bottom: -10px;
}

.side_product_card p {
  font-size: var(--font-size-16);
  margin: 2rem auto;
}

.side_product_card .btn_fill {
  width: 240px;
  background:
    linear-gradient(169.01deg, #ffa220 26.47%, #ff2e13 91.87%),
    radial-gradient(50% 149.22% at 50% 136.72%, #ff1057 0%, rgba(255, 16, 87, 0) 100%);
  padding: 12px 0;
  font-size: var(--font-size-18);
  font-weight: 500;
}

.side_product_card .btn_icon,
.side_product_card .icon_download2 {
  font-weight: bold;
}

.article_main {
  width: min(812px, 100%);
  margin: 0 8rem 0 5rem;
}

.breadcrumb {
  color: #666;
  font-size: var(--font-size-16);
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--color-link);
  /* text-decoration: none; */
}

.breadcrumb b {
  font-weight: normal;
  color: #333;
}

.author_box {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.author_avatar {
  display: block;
  width: 6rem;
  height: 6rem;
  border-radius: 100%;
}

.author_box .author_name {
  font-weight: 600;
  color: #333;
}

.author_box a {
  color: var(--color-link);
}

.article_main h1 {
  margin: 3rem 0 4rem 0;
  font-size: var(--font-size-52);
  line-height: 1.2;
  font-weight: 600;
}

.article_main h2 {
  background: rgba(246, 246, 246, 1);
  color: #000;
  padding: 1.3rem 2rem;
  margin: 3rem auto;
  position: relative;
  font-weight: 600;
  font-size: var(--font-size-30);
}

.article_main h2::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(322.62deg, #326ff0 42.26%, #41b6fa 92.86%);
}

.article_main h3 {
  background: rgba(246, 246, 246, 1);
  color: #000;
  padding: 1rem 2rem;
  margin: 3rem auto;
  position: relative;
  font-weight: 600;
  font-size: var(--font-size-26);
}

.article_main h3::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(169.01deg, #ffa220 26.47%, #ff2e13 91.87%);
}

.article_main h4 {
  font-size: var(--font-size-18);
  margin-top: 3rem;
  color: #333;
  font-weight: bold;
}

.article_main p {
  font-size: var(--font-size-18);
  margin-top: 3rem;
  color: #333;
}

.article_main ul li:first-child {
  margin-top: 2rem;
}

.article_main li {
  margin: 5px 0 1rem;
  font-size: var(--font-size-16);
  font-weight: 400;
  list-style: disc;
  list-style-position: inside;
}

.wp-caption {
  max-width: 100%;
  text-align: center;
  margin: 3rem auto;
}

.wp-caption p {
  margin: 10px auto;
  font-size: var(--font-size-14);
  color: #666;
  font-style: italic;
}

.alignright {
  margin: 3rem 0 3rem auto;
}

.alignleft {
  margin: 3rem 0;
}

.author_card {
  padding: 3rem;
  margin-top: 3rem;
  border-radius: 10px;
  background:
    url(../resources/img/author_bg@2x.png) right 2.7rem top 0 no-repeat,
    #fff7ee;
  background-size: contain, auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
}

.author_card .author_avatar {
  width: 100px;
  height: 100px;
}

.author_card .author_name {
  min-width: 110px;
  color: #592e0d;
  font-weight: 600;
  font-size: var(--font-size-16);
  margin-top: 0;
}

.author_card .author_desc {
  max-width: 477px;
  font-size: var(--font-size-16);
  margin-top: 0;
}

.download_actions {
  margin: 3rem 0;
  border-radius: 10px;
}

.download_actions p {
  margin-top: 1.5rem;
  font-size: var(--font-size-16);
  color: #333;
}

.download_actions .btn_fill {
  background: linear-gradient(169.01deg, #ffa220 26.47%, #ff2e13 91.87%);
}

.download_actions .download_title {
  font-weight: 600;
  font-size: var(--font-size-22);
  margin-top: 0;
}

.download_style1 {
  padding: 3rem;
  background: url(../resources/img/download_style1_bg.png) center no-repeat;
  background-size: cover;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
}

.download_style1_text,
.download_style2_text {
  max-width: 501px;
}

.download_style1_text .download_title {
  color: #ff6a00;
  background: linear-gradient(to bottom, #ffa220 26.47%, #ff2e13 91.87%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download_style1 .btn_fill {
  min-width: 234px;
  padding: 1.6rem 0;
  font-weight: 600;
  font-size: var(--font-size-20);
  flex: 0 0 auto;
}

.download_style2 {
  padding: 3rem 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  background: url(../resources/img/download_style2_bg.png) center no-repeat;
  background-size: cover;
}

.download_style2 li {
  margin: 8px 0;
  font-size: var(--font-size-16);
  color: #333;
  list-style-type: none;
}

.download_style2_btns {
  display: flex;
  margin-top: 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.download_style2_btns .btn {
  min-width: 213px;
  padding: 1.2rem;
  font-weight: 600;
  font-size: var(--font-size-18);
  color: #fff;
}

.btn_item p {
  font-size: var(--font-size-14);
  color: #666;
  margin-top: 1rem;
  text-align: center;
}

.discord_cta {
  border-radius: 2rem;
  background:
    url(../resources/img/discord_cta_bg.png) right 3% top 10% no-repeat,
    linear-gradient(98.81deg, #96cce7 21.79%, #434ee0 90.02%),
    radial-gradient(
      90.86% 81% at 96.41% 0%,
      rgba(156, 255, 205, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  background-size:
    51px auto,
    auto,
    auto;

  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 0 4rem 0 0;
  margin-top: 3rem;
}

.discord_cta_text {
  max-width: 472px;
  padding: 0 4rem 0 0;
  margin-left: 10px;
}

.discord_cta p {
  font-size: 12px;
  color: inherit;
  margin-top: 10px;
}

.discord_cta .discord_cta_title {
  font-weight: 700;
  font-size: var(--font-size-28);
  color: inherit;
}

.discord_cta .btn_fill {
  min-width: 140px;
  margin-top: 2.5rem;
  background: linear-gradient(322.62deg, #326ff0 42.26%, #41b6fa 92.86%);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
}

.article_toc {
  margin: 3rem auto;
  padding: 3rem;
  background-color: #f8f8f8;
  border-radius: 5px;
  overflow: hidden;
}

.article_toc li {
  list-style: none;
}

.article_toc li a {
  font: inherit;
}

.article_toc li::before {
  content: '\e939';
  font-family: 'iconfont';
  color: var(--color-link);
  font-size: 12px;
  margin: 0 10px;
}

.toc_header {
  font-size: var(--font-size-16);
}

.toc_toggle {
  color: var(--color-link);
}

.article_toc.is_collapsed .toc_list {
  display: none;
}

table {
  max-width: 100%;
  margin: 3rem auto;
  border-radius: 1.2rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e4e4e4;
  margin: 3rem auto;
}

table thead {
  background: #d8eeff;
}

td,
th {
  border-right: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  font-size: var(--font-size-16);
  padding: 2.4rem 2rem;
  color: #000;
}

tr:last-child td {
  border-bottom: none;
}

td:last-child {
  border-right: none;
}

.tip_style {
  overflow: hidden;
  margin: 3rem auto;
  padding: 0 3rem 0 80px;
  border-radius: 5px;
  background: url(../resources/img/tip.svg) no-repeat;
}

.note_style {
  overflow: hidden;
  margin: 3rem auto;
  padding: 0 3rem 0 80px;
  border-radius: 5px;
  background: url(../resources/img/note.svg) no-repeat;
}

.tip_style p,
.note_style p {
  margin: 10px 0;
}

@media (max-width: 1400px) {
  .article_container {
    gap: 2rem;
  }

  .article_main {
    width: 65%;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .article_left_share {
    display: none;
  }
}

@media (max-width: 768px) {
  .article_container {
    flex-wrap: wrap;
  }

  .article_main,
  .article_aside {
    max-width: none;
    width: 100%;
  }

  .breadcrumb b {
    display: none;
  }

  /* .side_toc_panel {
    display: none;
  } */
  .side_product_card > img {
    width: 100%;
  }

  .side_panel .side_panel_body {
    height: auto;
  }

  .side_panel_header .icon_arrow {
    display: none;
  }

  .discord_cta {
    padding: 0;
  }

  .discord_cta > img {
    width: 35%;
  }

  .discord_cta_text {
    max-width: none;
    padding: 2rem 2rem 2rem 1rem;
  }

  .download_style1 {
    background: url(../resources/img/download_style1_bg_mobile.png) no-repeat;
    background-size: cover;
  }

  .download_style2 {
    background: url(../resources/img/download_style2_bg_mobile.png) no-repeat;
    background-size: cover;
    padding: 2rem;
    gap: 2rem;
  }

  .download_style2 > img {
    width: 30%;
    height: auto;
  }

  .download_actions .download_title {
    font-size: 24px;
    text-align: center;
  }

  .download_style2_btns {
    justify-content: center;
  }

  .download_style2_btns .btn_item p {
    display: none;
  }

  .author_card .author_avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .discord_cta {
    flex-wrap: wrap;
    text-align: center;

    background: linear-gradient(98.81deg, #96cce7 21.79%, #434ee0 90.02%);
    padding-top: 2rem;
  }

  .discord_cta_text {
    padding-top: 0;
  }

  .author_card {
    flex-wrap: wrap;
    text-align: center;
  }

  .discord_cta > img {
    width: 70%;
  }

  .author_card {
    flex-wrap: wrap;
    justify-content: center;
  }
}
