.resource-container {
  padding-top: 3.75rem;
  color: #ffffff;
  min-height: 100vh;
}
.resource-container .resource-content .resource-top {
  height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(76, 43, 162, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(108, 64, 222, 0.1),
      transparent 40%
    ),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, #0a0a0a 100%),
    url("/pointcosm/assets/images/bg3.png");
  background-size: cover;
  background-position: center;
  padding-bottom: 5rem;
}
.resource-container .resource-content .resource-top .resource-title {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03rem;
  background: linear-gradient(
    135deg,
    #ffffff 30%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(10, 10, 10, 0.5);
}
.resource-container .resource-content .resource-top .resource-subtitle {
  color: #999999;
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 43.75rem;
  margin: 0 auto 4rem;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.resource-container .resource-content .resource-top .menu-box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.resource-container .resource-content .resource-top .menu-box .list-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.4);
}
.resource-container
  .resource-content
  .resource-top
  .menu-box
  .list-box
  .list-item {
  padding: 0.625rem 1.75rem;
  color: #999999;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}
.resource-container
  .resource-content
  .resource-top
  .menu-box
  .list-box
  .list-item:hover:not(.list-item-active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.resource-container
  .resource-content
  .resource-top
  .menu-box
  .list-box
  .list-item-active {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(76, 43, 162, 0.9),
    rgba(108, 64, 222, 0.8)
  );
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(76, 43, 162, 0.4);
}
.resource-container .resource-content .resource-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6.25rem;
  background: linear-gradient(to bottom, transparent, #171519);
}
.resource-container .resource-content .article-box {
  min-height: 70vh;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: flex-start;
  background-color: #171519;
}
.resource-container .resource-content .article-box .grid-box {
  max-width: 87.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 2.5rem;
  gap: 1.5rem;
}
@media (max-width: 1200px) {
  .resource-container .resource-content .article-box .grid-box {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .resource-container .resource-content .article-box .grid-box {
    grid-template-columns: 1fr;
  }
}
.resource-container .resource-content .article-box .resource-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.resource-container .resource-content .article-box .resource-item .item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .item-describe {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  letter-spacing: 0.2px;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .item-describe
  span {
  color: #1a1a1a;
}
.resource-container .resource-content .article-box .resource-item .sub-list {
  margin-top: 8px;
}
.resource-container .resource-content .article-box .resource-item .sub-item {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .sub-item
  .circle {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .sub-item
  .sub-title {
  flex: 1;
  line-height: 1.5;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .sub-item
  .sub-title
  span {
  font-weight: 500;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .sub-item:hover {
  color: #ffffff;
}
.resource-container
  .resource-content
  .article-box
  .resource-item
  .sub-item:hover
  .circle {
  background-color: #ffffff;
  transform: scale(1.3);
}
.resource-container .resource-content .article-box .resource-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.3);
}

.custom-modal .ant-modal-content {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  color: #1a1a1a;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.custom-modal .ant-modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 32px;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.custom-modal .ant-modal-header .ant-modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.custom-modal .ant-modal-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.custom-modal .ant-modal-close {
  transition: all 0.2s ease;
  z-index: 10;
}
.custom-modal .ant-modal-close:hover {
  color: #1a1a1a;
}
.custom-modal .content {
  min-height: 100px;
  max-height: calc(75vh - 100px);
  padding: 24px 32px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  line-height: 1.8;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}
.custom-modal .content::-webkit-scrollbar {
  width: 6px;
}
.custom-modal .content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}
.custom-modal .content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: background 0.3s ease;
}

/* Help center: search-led layout using the Pointcosm visual system. */
.resource-container {
  min-height: 100vh;
  padding-top: 3.75rem;
  color: #171519;
  background:
    radial-gradient(circle at 87% 4%, rgba(149, 125, 173, 0.14), transparent 24rem),
    #f8f7f5;
}

.resource-container .resource-content .resource-top {
  height: auto;
  min-height: 33rem;
  justify-content: center;
  padding: 5.25rem 1.5rem 3.75rem;
  background: transparent;
}

.resource-container .resource-content .resource-top::after {
  display: none;
}

.resource-container .resource-content .resource-top .resource-title {
  order: 1;
  margin: 0 0 1rem;
  color: #171519;
  background: none;
  -webkit-text-fill-color: #171519;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 550;
  letter-spacing: -0.075em;
  line-height: 1.08;
  text-shadow: none;
}

.resource-container .resource-content .resource-top .resource-subtitle {
  order: 2;
  max-width: 39rem;
  margin: 0 0 2rem;
  color: #706b74;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
}

.resource-container .resource-content .resource-top .help-search {
  order: 3;
  display: flex;
  align-items: center;
  width: min(100%, 44rem);
  height: 3.65rem;
  margin: 0 0 2.25rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(23, 21, 25, 0.18);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1rem 2.5rem rgba(38, 28, 44, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.resource-container .resource-content .resource-top .help-search:focus-within {
  border-color: #957dad;
  box-shadow: 0 1rem 2.5rem rgba(149, 125, 173, 0.18);
}

.resource-container .resource-content .resource-top .help-search .search-icon {
  margin-right: 0.75rem;
  color: #957dad;
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(-18deg);
}

.resource-container .resource-content .resource-top .help-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171519;
  font: inherit;
  font-size: 0.98rem;
}

.resource-container .resource-content .resource-top .help-search input::placeholder {
  color: #97929b;
}

.resource-container .resource-content .resource-top .menu-box {
  order: 4;
  position: static;
  transform: none;
  width: min(100%, 48rem);
}

.resource-container .resource-content .resource-top .menu-box .list-box {
  width: 100%;
  justify-content: center;
  gap: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item {
  padding: 0.5rem 0.85rem;
  color: #77717a;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item:hover:not(.list-item-active),
.resource-container .resource-content .resource-top .menu-box .list-box .list-item-active {
  color: #171519;
  background: transparent;
  border-color: #957dad;
  box-shadow: none;
}

.resource-container .resource-content .article-box {
  min-height: 45rem;
  padding: 4.5rem 0 7rem;
  background: #f1f0ed;
}

.resource-container .resource-content .article-box .grid-box {
  max-width: 80rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: rgba(23, 21, 25, 0.16);
  border: 1px solid rgba(23, 21, 25, 0.16);
}

.resource-container .resource-content .article-box .resource-item {
  min-height: 13rem;
  padding: 2rem 1.8rem;
  border: 0;
  border-radius: 0;
  background: #f8f7f5;
  box-shadow: none;
}

.resource-container .resource-content .article-box .resource-item:hover {
  border: 0;
  background: #f8f7f5;
  box-shadow: none;
}

.resource-container .resource-content .article-box .resource-item .item-title {
  margin-bottom: 1.1rem;
  color: #171519;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.resource-container .resource-content .article-box .resource-item .item-describe,
.resource-container .resource-content .article-box .resource-item .sub-item {
  color: #716b74;
  font-size: 0.92rem;
  line-height: 1.7;
}

.resource-container .resource-content .article-box .resource-item .sub-item:hover {
  color: #171519;
}

.resource-container .resource-content .article-box .resource-item .sub-item .circle {
  background: #957dad;
}

.resource-container .resource-content .article-box .resource-item .sub-item:hover .circle {
  background: #957dad;
}

.custom-modal .ant-modal-content {
  color: #171519;
  background: #f8f7f5;
  border: 1px solid rgba(23, 21, 25, 0.14);
}

.custom-modal .ant-modal-header {
  border-color: rgba(23, 21, 25, 0.12);
}

.custom-modal .content {
  color: #4f4a53;
}

/* Use the exact Dianying portal footer on the help page. */
body:has(.resource-container) > .app-layout > .footer-container,
body:has(.resource-container) .app-layout > .footer-container {
  display: none;
}

.resource-portal-footer {
  display: block;
  padding: 58px clamp(28px, 8vw, 130px) 20px;
  background: #111;
  color: #fff;
}

.resource-portal-footer .portal-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(145px, 0.75fr));
  gap: clamp(32px, 6vw, 100px);
  max-width: 1280px;
  margin: 0 auto;
}

.resource-portal-footer .portal-footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.resource-portal-footer .portal-footer-grid .portal-footer-brand { gap: 20px; }

.resource-portal-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.resource-portal-footer .brand-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #f52b5d;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 100%, 0 100%);
}

.resource-portal-footer .portal-footer-grid b { margin-bottom: 4px; font-size: 12px; }

.resource-portal-footer .portal-footer-grid a,
.resource-portal-footer .portal-footer-grid p {
  color: #a9a6ad;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
}

.resource-portal-footer .portal-footer-grid a:hover { color: #fff; }
.resource-portal-footer .portal-footer-grid p { max-width: 300px; margin: 0; }

.resource-portal-footer .portal-footer-legal {
  display: flex;
  justify-content: space-between;
  max-width: 1280px;
  margin: 44px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #77747b;
  font-size: 11px;
}

@media (max-width: 56.25rem) {
  .resource-container .resource-content .article-box .grid-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-portal-footer .portal-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .resource-portal-footer .portal-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 42rem) {
  .resource-container .resource-content .resource-top { min-height: 29rem; padding: 4rem 1.25rem 3rem; }
  .resource-container .resource-content .resource-top .resource-title { font-size: 2.35rem; }
  .resource-container .resource-content .resource-top .menu-box .list-box { flex-wrap: wrap; }
  .resource-container .resource-content .article-box { padding: 3rem 1.25rem 4rem; }
  .resource-container .resource-content .article-box .grid-box { grid-template-columns: 1fr; }
  .resource-portal-footer { padding: 46px 24px 20px; }
  .resource-portal-footer .portal-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .resource-portal-footer .portal-footer-brand { grid-column: 1 / -1; }
  .resource-portal-footer .portal-footer-legal { flex-direction: column; gap: 10px; line-height: 1.7; }
}
.custom-modal .content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
.custom-modal .content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.03);
}
.custom-modal .content .sub-describe div {
  text-indent: 2em;
  margin-bottom: 16px;
  line-height: 1.8;
}
.custom-modal .content .sub-describe div:last-child {
  margin-bottom: 0;
}
.custom-modal .content .sub-describe p:last-child {
  margin-bottom: 0;
}
.custom-modal .content .sub-describe span {
  color: #1a1a1a;
  font-weight: 500;
}
.custom-modal .content .sub-describe strong {
  font-weight: 600;
}
.custom-modal .content .sub-describe a {
  color: #835aeb;
  text-decoration: none;
  transition: all 0.2s ease;
}
.custom-modal .content .sub-describe a:hover {
  color: rgb(64.777954425%, 53.1319554849%, 94.3190249073%);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .custom-modal .content {
    max-height: calc(85vh - 80px);
    padding: 20px 24px;
  }
.custom-modal .content::-webkit-scrollbar {
    width: 4px;
  }
}

/* Dark help-search hero with a restrained Pointcosm-purple transition. */
.resource-container {
  background: #f1f0ed;
}

.resource-container .resource-content .resource-top {
  min-height: 31rem;
  background:
    radial-gradient(circle at 50% 105%, rgba(149, 125, 173, 0.58), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(92, 68, 111, 0.28), transparent 30%),
    linear-gradient(180deg, #111113 0%, #171319 100%);
}

.resource-container .resource-content .resource-top .resource-title {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.resource-container .resource-content .resource-top .resource-subtitle {
  color: rgba(255, 255, 255, 0.64);
}

.resource-container .resource-content .resource-top .help-search {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
}

.resource-container .resource-content .resource-top .help-search:focus-within {
  border-color: rgba(181, 155, 204, 0.92);
  box-shadow: 0 1rem 2.5rem rgba(149, 125, 173, 0.26);
}

.resource-container .resource-content .resource-top .help-search input {
  color: #ffffff;
}

.resource-container .resource-content .resource-top .help-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.resource-container .resource-content .resource-top .help-search .search-icon {
  color: #c0a6d1;
}

.resource-container .resource-content .resource-top .menu-box .list-box {
  gap: 1.6rem;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.5);
  border: 0;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 0.6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 160ms ease, background-color 160ms ease;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item:hover:not(.list-item-active),
.resource-container .resource-content .resource-top .menu-box .list-box .list-item-active {
  color: #d0b7df;
  border: 0;
}

.resource-container .resource-content .resource-top .menu-box .list-box .list-item-active::before {
  background: currentColor;
}

.resource-container .resource-content .article-box {
  padding-top: 8rem;
  background:
    radial-gradient(circle at 50% -8rem, rgba(149, 125, 173, 0.48), transparent 34rem),
    linear-gradient(180deg, #171319 0%, #4b3e54 11%, #a48bb6 26%, #e7e1e9 42%, #f1f0ed 54%, #f1f0ed 100%);
}

@media (max-width: 42rem) {
  .resource-container .resource-content .resource-top {
    min-height: 29rem;
  }

  .resource-container .resource-content .resource-top .menu-box .list-box {
    gap: 1.05rem;
  }
}

/* Soften article boundaries after the dark-to-light transition. */
.resource-container .resource-content .article-box .grid-box {
  gap: 0.8rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.resource-container .resource-content .article-box .resource-item {
  border: 1px solid rgba(23, 21, 25, 0.08);
  border-radius: 0.85rem;
  background: #f8f7f5;
  box-shadow: 0 1rem 2.75rem rgba(40, 28, 48, 0.08);
}

.resource-container .resource-content .article-box .resource-item:hover {
  border-color: rgba(149, 125, 173, 0.25);
  background: #f8f7f5;
  box-shadow: 0 1.15rem 3rem rgba(40, 28, 48, 0.11);
}
