#article-container:has(.friends-page) {
  padding: 0 !important;
  line-height: 1.6;
}

.friends-page {
  display: grid;
  gap: 1.15rem;
}

.friends-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  color: var(--tools-text, rgba(255, 255, 255, 0.92));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.friends-hero::before {
  content: '';
  position: absolute;
  inset: auto -6rem -7rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 182, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.friends-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.friends-hero h2 {
  margin: 0;
  color: #fff;
  font-family:
    'Iowan Old Style', 'Palatino Linotype', 'Songti SC', 'STSong',
    'Noto Serif CJK SC', serif;
  font-size: clamp(1.42rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.friends-hero p {
  margin: 0.55rem 0 0;
  color: var(--tools-subtle, rgba(255, 255, 255, 0.58));
}

#article-container .friend-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 190px;
}

.friend-card-head,
.friend-card-name,
.friend-card-description,
.friend-card-owner {
  position: relative;
  z-index: 1;
}

.friend-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: 3rem;
}

.friend-card .friend-card-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 4.2rem;
  min-width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0;
  line-height: 0;
}

.friend-card-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
}

.friend-card-name {
  min-width: 0;
}

.friend-card .tools-card-title {
  display: block;
  grid-column: auto;
  grid-row: auto;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.16rem, 2.2vw, 1.48rem);
}

.friend-card-owner {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  font-weight: 700;
}

.friend-card-description {
  display: block;
  margin-top: auto;
  padding-right: 2.7rem;
  color: var(--tools-subtle, rgba(255, 255, 255, 0.58));
  font-size: 0.96rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .friends-page {
    gap: 0.9rem;
  }

  .friends-hero {
    padding: 1.15rem;
    border-radius: 22px;
  }

  #article-container .friend-card {
    min-height: 168px;
  }

  .friend-card-head {
    gap: 0.75rem;
    padding-right: 2.65rem;
  }

  .friend-card .friend-card-avatar {
    width: 3.55rem;
    min-width: 3.55rem;
    height: 3.55rem;
    border-radius: 18px;
  }
}
