.portal-body {
  --portal-green: #1cb278;
  --portal-green-dark: #0e9f6c;
  --portal-page: #f5f5f5;
  --portal-line: #e7e7e7;
  color: #555;
  background: var(--portal-page);
}

.portal-main {
  position: relative;
  min-height: 1738px;
  padding-top: 11px;
  background: var(--portal-page);
}

.portal-main--single {
  min-height: 0;
}

.portal-content {
  position: relative;
  min-height: 1729px;
}

.portal-search-content {
  min-height: 0;
  padding-bottom: 48px;
}

.portal-breadcrumb {
  display: flex;
  min-height: 25px;
  margin: 0;
  align-items: flex-start;
  gap: 7px;
  color: #777;
  font-size: 17.5px;
  line-height: 18px;
}

.portal-breadcrumb::before {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid currentcolor;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, currentcolor 0 2.5px, transparent 2.5px);
  content: "";
}

.portal-breadcrumb a {
  color: #555;
}

.portal-breadcrumb a:hover {
  color: var(--portal-green-dark);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 831px) 355px;
  gap: 26px;
  align-items: start;
}

.portal-panel,
.portal-rail>section {
  background: #fff;
}

.portal-section-heading {
  display: flex;
  height: 49px;
  margin: 0;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--portal-line);
}

.portal-section-heading h1,
.portal-section-heading h2,
.portal-section-heading h3 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #362f2e;
  font-size: 18px;
  font-weight: 400;
}

.portal-section-heading h1::before,
.portal-section-heading h2::before,
.portal-section-heading h3::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 19px;
  background: var(--portal-green);
  content: "";
  transform: translateY(-50%);
}

.portal-section-heading a {
  color: #999;
  font-size: 12px;
}

.portal-search-panel {
  min-width: 0;
  margin-top: 16px;
  overflow: hidden;
}

.portal-search-tabs {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 24px;
}

.portal-search-tabs a {
  position: relative;
  display: flex;
  min-width: 44px;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.portal-search-tabs a.is-active {
  color: var(--portal-green-dark);
  font-weight: 600;
}

.portal-search-tabs a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--portal-green);
  content: "";
}

.portal-search-summary {
  margin: 0;
  padding: 16px 20px 8px;
  color: #777;
  font-size: 14px;
}

.portal-search-panel .portal-empty {
  margin: 0;
  padding: 64px 20px 72px;
  color: #727c76;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

.portal-article-list,
.directory-list {
  margin: 0;
  padding: 0 20px;
}

.portal-article-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title date"
    "summary date";
  column-gap: 24px;
  row-gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-article-list li:last-child,
.directory-list li:last-child {
  border-bottom: 0;
}

.portal-article-list li>a {
  min-width: 0;
  overflow: hidden;
  color: #4c4c4c;
  font-size: 16px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-article-list li>a:hover,
.portal-article-list li>a:focus-visible,
.directory-list li>a:hover,
.directory-list li>a:focus-visible {
  color: var(--portal-green-dark);
}

.portal-article-list li>p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #8a928d;
  font-size: 13px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-article-list li>a {
  grid-area: title;
}

.portal-article-list li>p {
  grid-area: summary;
}

.portal-article-date {
  grid-area: date;
  align-self: start;
  padding-top: 3px;
  color: #a8aeab;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.directory-list li {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 16px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--portal-line);
}

.directory-list li>a {
  min-width: 0;
  overflow: hidden;
  color: #4c4c4c;
  font-size: 16px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-list li>span {
  flex: 0 0 auto;
  color: #a8aeab;
  font-size: 13px;
  white-space: nowrap;
}

.portal-search-panel .portal-pagination {
  margin-top: 0;
  padding: 24px 20px 32px;
}

.portal-rail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.portal-topic-ads {
  display: grid;
  gap: 12px;
}

.portal-topic-ads a,
.portal-topic-ads img {
  display: block;
  width: 355px;
  height: 149px;
}

.portal-topic-ads a {
  overflow: hidden;
  background: #ef6524;
}

.portal-topic-ads img {
  object-fit: cover;
}

.portal-main>.home-qr {
  top: 30vh;
}

.portal-main>.home-social {
  top: 32vh;
}

.portal-content>.home-friend-section,
.portal-friend-section {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 103px;
}

.portal-body .home-footer {
  margin-top: 24px;
}

@media (max-width: 1024px) {

  .portal-main,
  .portal-content {
    min-height: 0;
  }

  .portal-main {
    padding: 14px 0 0;
  }

  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-topic-ads {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-topic-ads a,
  .portal-topic-ads img {
    width: 100%;
    height: auto;
    aspect-ratio: 355 / 149;
  }

  .portal-content>.home-friend-section,
  .portal-friend-section {
    position: static;
    height: auto;
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  .portal-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .portal-search-content {
    padding-bottom: 32px;
  }

  .portal-search-panel {
    margin-top: 12px;
  }

  .portal-section-heading {
    padding-inline: 14px;
  }

  .portal-search-heading {
    min-height: 56px;
    height: auto;
  }

  .portal-search-tabs {
    gap: 16px;
  }

  .portal-search-tabs a {
    min-width: 52px;
    min-height: 56px;
  }

  .portal-search-summary {
    padding: 14px 14px 6px;
  }

  .portal-search-panel .portal-empty {
    padding: 48px 20px 56px;
  }

  .portal-article-list,
  .directory-list {
    padding-inline: 14px;
  }

  .portal-article-list li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "summary"
      "date";
    column-gap: 0;
    padding: 14px 0;
  }

  .portal-article-list li>a,
  .portal-article-list li>p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .portal-article-date {
    padding-top: 0;
  }

  .directory-list li {
    min-height: 64px;
    padding: 14px 0;
    gap: 14px;
  }

  .portal-search-panel .portal-pagination {
    padding-inline: 14px;
  }

  .portal-rail,
  .portal-topic-ads {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-body .home-footer {
    height: auto;
    min-height: 160px;
    margin-top: 20px;
  }
}