/* 本站外观增强：品牌图标 + 会话类型筛选标签。
   平台的 CSP 只允许外链样式，所以单独成文件。 */

/* ---------------- 品牌图标 ---------------- */
.brand-mark {
  position: relative;
  border-radius: 11px;
  background: linear-gradient(135deg, #5aa4ff 0%, #0867e8 52%, #064fb8 100%);
  box-shadow: 0 2px 6px rgba(8, 103, 232, .35),
              inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

/* 左上角高光，让纯色方块有质感 */
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 22% 10%,
              rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.brand-mark > svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 103, 232, .45),
              inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* 登录页的品牌块更大，图标同步放大 */
.auth-story .brand-mark > svg { width: 26px; height: 26px; }

/* ---------------- 会话类型筛选（私聊 / 群聊） ---------------- */
.filter-tabs [data-chattype] {
  position: relative;
}

.filter-tabs [data-chattype] .chattype-count {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  color: #fff;
  background: var(--qq-blue, #0867e8);
  vertical-align: 1px;
}

.filter-tabs [data-chattype]:not(.active) .chattype-count {
  color: var(--qq-blue, #0867e8);
  background: var(--qq-blue-soft, #eaf2ff);
}

.filter-tabs [data-chattype].active .chattype-count {
  color: var(--qq-blue, #0867e8);
  background: #fff;
}

/* 列表为空时的提示 */
.empty-list { white-space: pre-line; }

/* ---------------- 会话头像上传 ---------------- */
.site-extra-avatar-body {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-extra-avatar-preview {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--qq-blue-soft, #eaf2ff);
}

.site-extra-avatar-preview img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

/* 会话列表里的「待开启」群标记 */
.site-pending-group {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  color: #fff;
  background: var(--warning, #986615);
  vertical-align: 1px;
}

/* 群聊里发言成员的头像 */
.site-member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
