/* 返回页的链接列表：社交链接（下拉）与友情链接（列表） */
.dream-link-block .ui.medium.header {
  margin: 0 0 0.75rem;
}

.dream-link-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* summary 不是 .ui.inverted.segment 的直接子元素，Semantic 的
   `.ui.inverted.segment > .ui.header` 白色规则不会生效，这里手动继承 */
.dream-link-dropdown > summary.ui.header {
  color: inherit !important;
}

.dream-link-dropdown > summary::-webkit-details-marker {
  display: none;
}

.dream-link-dropdown > summary::marker {
  content: "";
}

.dream-link-dropdown .chevron.icon {
  margin: 0 !important;
  transition: transform 0.25s ease;
}

.dream-link-dropdown[open] .chevron.icon {
  transform: rotate(180deg);
}

.dream-link-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.dream-link-list > li {
  margin: 0;
  padding: 0;
}

.dream-link-list > li + li {
  border-top: 1px solid rgba(34, 36, 38, 0.08);
}

.dream-link-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.35rem;
  border-radius: 6px;
  color: inherit !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.dream-link-list > li > a:hover {
  background-color: rgba(0, 0, 0, 0.045);
  padding-left: 0.55rem;
}

.inverted .dream-link-list > li + li,
body.dark .dream-link-list > li + li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.inverted .dream-link-list > li > a:hover,
body.dark .dream-link-list > li > a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.dream-link-icon {
  display: inline-flex;
  flex: 0 0 1.5rem;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.1rem;
}

.dream-link-icon > svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.dream-link-icon > i.icon {
  margin: 0 !important;
}

.dream-friend-list > li > a {
  align-items: flex-start;
}

.dream-friend-avatar {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  object-fit: cover;
}

.dream-friend-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.dream-friend-name {
  font-weight: 600;
}

.dream-friend-desc {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  opacity: 0.62;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
