/* ============== 微信App内部样式 (iOS微信精修版) ============== */

/* wxPages容器 */
.wx-pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.wx-page {
  position: absolute;
  inset: 0;
  background: #ededed;
  display: none;
  flex-direction: column;
}
.wx-page.active {
  display: flex;
}

/* ===== 顶部导航栏 (iOS微信 44pt) ===== */
.wx-nav-bar {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(237,237,237,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.nav-back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #000;
}
.nav-back svg { display: block; }
.nav-title {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px; font-weight: 600;
  color: #000;
  letter-spacing: -0.2px;
}
.nav-right { display: flex; gap: 4px; }
.nav-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #000;
}
.nav-icon-btn svg { display: block; }

/* ===== 微信主列表 (iOS微信 64pt行高) ===== */
.chat-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}
.chat-row {
  display: flex; align-items: center;
  padding: 10px 12px;
  gap: 11px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
.chat-row:active { background: #d9d9d9; }
.chat-row.active { background: #d9d9d9; }
.chat-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}
.chat-avatar.muted::after {
  content: "";
  position: absolute;
  bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"/></svg>') no-repeat center / 12px;
  border-radius: 50%;
}
.chat-info { flex: 1; min-width: 0; }
.chat-name-line {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 3px;
}
.chat-name {
  font-size: 17px; color: #000; font-weight: 500;
  letter-spacing: -0.2px;
  flex-shrink: 0; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-refresh { font-size: 13px; color: #b2b2b2; }
.chat-time { font-size: 13px; color: #b2b2b2; margin-left: auto; flex-shrink: 0; }
.chat-preview {
  font-size: 14px; color: #b2b2b2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.chat-preview.from-service { color: #576b95; }
.chat-preview.from-group { color: #576b95; }

.folded-section {
  padding: 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #888;
  background: #ededed;
}
.folded-section .chevron { margin-left: auto; }

/* ===== 底部Tab Bar (iOS微信 56pt) ===== */
.wx-tab-bar {
  height: 56px;
  background: rgba(247,247,247,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.15);
  display: flex;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: #999;
  cursor: pointer;
  font-size: 10px;
  position: relative;
}
.tab-item.active { color: #07c160; }
.tab-icon-svg { display: block; }
.tab-dot {
  position: absolute;
  top: 4px;
  margin-left: 14px;
  width: 8px; height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1.5px solid #f7f7f7;
}

/* ===== 通讯录页 ===== */
.search-bar {
  padding: 7px 12px;
  background: #ededed;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  height: 36px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.search-icon { color: #888; font-size: 14px; }
.search-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #000;
}
.search-input input::placeholder { color: #888; }
.search-clear {
  width: 18px; height: 18px;
  background: #b2b2b2;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.search-cancel {
  font-size: 15px;
  color: #576b95;
  cursor: pointer;
  flex-shrink: 0;
}

.contacts-list-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.contacts-fixed { background: #fff; }
.fixed-item {
  display: flex; align-items: center;
  padding: 10px 12px;
  gap: 10px;
  font-size: 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  cursor: pointer;
  color: #000;
}
.fixed-item:active { background: #d9d9d9; }
.fi-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  background: #07c160;
}
.fi-icon.fi-icon-blue { background: #576b95; }
.fi-icon.fi-icon-orange { background: #fa9d3b; }

.contacts-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  margin-top: 8px;
}
.contact-row {
  display: flex; align-items: center;
  padding: 6px 12px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.contact-row:active { background: #d9d9d9; }
.contact-row .ca {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}
.contact-row .ci { flex: 1; min-width: 0; }
.contact-row .cn { font-size: 16px; color: #000; }
.contact-row .cw { font-size: 12px; color: #888; margin-top: 1px; }
.contact-row .added { font-size: 13px; color: #888; }
.alpha-group-title {
  padding: 4px 12px;
  background: #ededed;
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* 右侧字母侧栏 */
.alphabet-sidebar {
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  z-index: 5;
  pointer-events: none;
}
.alphabet-sidebar span {
  font-size: 9.5px;
  color: #888;
  padding: 0.5px 3px;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* ===== "我"页面 ===== */
.me-page {
  flex: 1;
  overflow-y: auto;
  background: #ededed;
}
.me-header {
  background: #fff;
  padding: 14px 12px;
  display: flex; align-items: center;
  gap: 14px;
  cursor: pointer;
}
.me-header:active { background: #d9d9d9; }
.me-avatar {
  width: 64px; height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}
.me-info { flex: 1; min-width: 0; }
.me-name {
  font-size: 20px; color: #000; font-weight: 500;
  letter-spacing: -0.2px;
}
.me-wechat-id { font-size: 13px; color: #888; margin-top: 4px; }
.me-qr {
  width: 18px; height: 18px;
  background: #888;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11h2v2H3v-2zm4 0h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-4-4h2v2h-2V7zM7 7h2v2H7V7zm12 0v2h-2V7h2zM3 7h2v2H3V7zm18 8v2h-2v-2h2zM3 15h2v2H3v-2zm2 4h2v2H5v-2zm4 0h2v2H9v-2zm4-4h2v2h-2v-2zm0 4h2v2h-2v-2zm4 0h2v2h-2v-2z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11h2v2H3v-2zm4 0h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-4-4h2v2h-2V7zM7 7h2v2H7V7zm12 0v2h-2V7h2zM3 7h2v2H3V7zm18 8v2h-2v-2h2zM3 15h2v2H3v-2zm2 4h2v2H5v-2zm4 0h2v2H9v-2zm4-4h2v2h-2v-2zm0 4h2v2h-2v-2zm4 0h2v2h-2v-2z"/></svg>') no-repeat center / contain;
}

.me-status-row {
  background: #fff;
  margin-top: 8px;
  padding: 10px 12px;
  display: flex; gap: 8px;
}
.me-status-btn {
  flex: 1;
  height: 38px;
  border-radius: 6px;
  border: 0.5px solid #e6e6e6;
  display: flex; align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 13px;
  color: #000;
  background: #fff;
  cursor: pointer;
}
.me-status-btn .mini-avatars {
  display: flex; flex-shrink: 0;
}
.me-status-btn .mini-avatars span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background-size: cover;
  background-color: #ccc;
  border: 1.5px solid #fff;
  margin-left: -6px;
}
.me-status-btn .mini-avatars span:first-child { margin-left: 0; }
.me-status-btn .red-dot {
  width: 8px; height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  margin-left: 4px;
}

.me-list {
  background: #fff;
  margin-top: 8px;
}
.me-row {
  display: flex; align-items: center;
  padding: 12px;
  gap: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  cursor: pointer;
  position: relative;
}
.me-row:active { background: #d9d9d9; }
.me-row .mr-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.me-row .mr-title { flex: 1; font-size: 16px; color: #000; }
.me-row .mr-extra { font-size: 12px; color: #888; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row .mr-arrow { color: #c8c8c8; font-size: 18px; }

/* ===== 添加朋友页 (iOS微信规范) ===== */
.add-friend-list {
  background: #fff;
  margin-top: 8px;
}
.af-item {
  display: flex; align-items: center;
  padding: 10px 12px;
  gap: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  cursor: pointer;
}
.af-item:active { background: #d9d9d9; }
.af-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.af-icon.af-icon-myqr { background: linear-gradient(135deg, #fa9d3b 0%, #f56300 100%); }
.af-icon.af-icon-scan { background: linear-gradient(135deg, #1aad19 0%, #07c160 100%); }
.af-icon.af-icon-radar { background: linear-gradient(135deg, #fa9d3b 0%, #f56300 100%); }
.af-icon.af-icon-face { background: linear-gradient(135deg, #1aad19 0%, #07c160 100%); }
.af-icon.af-icon-phone { background: linear-gradient(135deg, #1aad19 0%, #07c160 100%); }
.af-icon.af-icon-official { background: linear-gradient(135deg, #10aeff 0%, #0d90ff 100%); }
.af-icon.af-icon-enterprise { background: linear-gradient(135deg, #576b95 0%, #45527a 100%); }
.af-icon svg { display: block; }
.af-info { flex: 1; min-width: 0; }
.af-title { font-size: 16px; color: #000; }
.af-sub { font-size: 13px; color: #888; margin-top: 2px; }
.af-arrow { color: #c8c8c8; font-size: 20px; }

/* 我的二维码页 */
.my-qr-page {
  flex: 1;
  background: #ededed;
  padding: 20px 16px;
  display: flex; flex-direction: column;
  align-items: center;
  overflow-y: auto;
}
.qr-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px 16px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qr-header {
  display: flex; align-items: center;
  gap: 12px;
  align-self: stretch;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.qr-avatar {
  width: 48px; height: 48px;
  border-radius: 6px;
  background: #ccc;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.qr-user-info { flex: 1; }
.qr-name { font-size: 17px; color: #000; font-weight: 500; }
.qr-region { font-size: 12px; color: #888; margin-top: 2px; }
.qr-box {
  width: 220px; height: 220px;
  padding: 10px;
  background: #fff;
}
.qr-pattern {
  width: 100%; height: 100%;
  background-color: #fff;
  background-image:
    radial-gradient(circle, #000 1px, transparent 1.5px),
    radial-gradient(circle, #000 1px, transparent 1.5px);
  background-size: 6px 6px, 6px 6px;
  background-position: 0 0, 3px 3px;
  position: relative;
}
.qr-pattern::before, .qr-pattern::after,
.qr-pattern .qr-corner3 {
  content: "";
  position: absolute;
  width: 38px; height: 38px;
  background: #fff;
  border: 6px solid #000;
  box-sizing: border-box;
}
.qr-pattern::before { top: 0; left: 0; }
.qr-pattern::after { top: 0; right: 0; }
.qr-pattern .qr-corner3 { bottom: 0; left: 0; }
.qr-pattern::after, .qr-pattern .qr-corner3 { display: none; }
.qr-pattern::after { display: block; }
.qr-pattern .qr-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: #07c160;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  z-index: 2;
  border: 2px solid #fff;
}
.qr-tip { font-size: 13px; color: #888; }

/* ===== 加载中遮罩 ===== */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(237,237,237,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.loading-box {
  background: rgba(0,0,0,0.75);
  border-radius: 6px;
  padding: 16px 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  min-width: 120px;
}
.loading-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text { color: #fff; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 联系人详情 (iOS微信真实布局) ===== */
.contact-detail {
  flex: 1;
  overflow-y: auto;
  background: #ededed;
}
.cd-header {
  background: #fff;
  padding: 18px 16px;
  display: flex; align-items: center;
  gap: 14px;
}
.cd-avatar {
  width: 64px; height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.cd-name-line {
  display: flex; align-items: center;
  gap: 6px;
  font-size: 20px; font-weight: 500; color: #000;
  letter-spacing: -0.2px;
}
.cd-id-line {
  display: flex; align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: #888;
}
.cd-id-line .cd-region {
  display: inline-block;
  padding: 1px 5px;
  background: #ededed;
  border-radius: 3px;
  font-size: 12px;
}
.cd-id-line .cd-gender {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  height: 16px;
  background: #ededed;
  color: #576b95;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.cd-verify {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: #fa9d3b;
  border-radius: 50%;
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.cd-source-line {
  margin-top: 6px;
  font-size: 13px;
  color: #576b95;
}

.cd-info-block {
  background: #fff;
  padding: 0 16px;
  margin-top: 8px;
}
.cd-info-row {
  display: flex; align-items: center;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  min-height: 22px;
}
.cd-info-row:last-child { border-bottom: none; }
.cd-info-row .label {
  color: #888;
  width: 64px;
  flex-shrink: 0;
}
.cd-info-row .value { color: #000; flex: 1; }
.cd-info-row .arrow { color: #c8c8c8; font-size: 16px; }

.cd-tags-row {
  padding: 12px 0;
  display: flex; align-items: center;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  font-size: 15px;
}
.cd-tags-row:last-child { border-bottom: none; }
.cd-tags-row .label { color: #888; width: 64px; flex-shrink: 0; }
.cd-tags-list {
  flex: 1; display: flex; flex-wrap: wrap;
  gap: 6px;
}
.cd-tag {
  padding: 2px 8px;
  background: #ededed;
  border-radius: 3px;
  font-size: 12px;
  color: #576b95;
}

.cd-section-header {
  display: flex; align-items: center;
  padding: 12px 16px;
  font-size: 14px; color: #000;
  background: #fff;
}
.cd-section-header .arrow { margin-left: auto; color: #c8c8c8; }
.cd-section-extra { color: #888; font-size: 13px; margin-left: auto; }

.cd-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 16px 12px;
  background: #fff;
}
.cd-video-item {
  aspect-ratio: 9/16;
  background: #ddd;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cd-video-item::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.cd-signature {
  background: #fff;
  padding: 0 16px;
  margin-top: 8px;
}
.cd-signature-content {
  padding: 10px 0;
  font-size: 14px;
  color: #000;
  line-height: 1.4;
}

.bottom-actions {
  background: #f7f7f7;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 8px 12px 10px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.ba-btn {
  flex: 1;
  height: 42px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.ba-btn.primary { background: #07c160; color: #fff; }
.ba-btn.secondary { background: #fff; border: 0.5px solid rgba(0,0,0,0.15); color: #000; }

/* ===== 搜索结果行 ===== */
.search-result-row {
  background: #fff;
  padding: 12px 16px;
  display: flex; align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.add-contact-btn {
  width: 38px; height: 38px;
  background: #07c160;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
}
.add-icon { line-height: 1; }
.search-result-text {
  font-size: 16px;
  color: #000;
}
.search-result-text .phone-num {
  color: #576b95;
  font-weight: 500;
}

/* ===== 聊天页 ===== */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #ededed;
  display: flex; flex-direction: column;
  gap: 6px;
}
.chat-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 75%;
}
.chat-msg-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #ccc;
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.chat-msg-bubble {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  color: #000;
  word-break: break-word;
  white-space: pre-wrap;
  position: relative;
  max-width: 240px;
}
.chat-msg-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 0; height: 0;
  border: 5px solid transparent;
}
.chat-msg-row.them .chat-msg-bubble::before {
  left: -8px;
  border-right-color: #fff;
}
.chat-msg-row.me .chat-msg-bubble::before {
  right: -8px;
  border-left-color: #95ec69;
}
.chat-msg-row.me .chat-msg-bubble {
  background: #95ec69;
}
.chat-msg-image {
  max-width: 220px;
  max-height: 220px;
  border-radius: 4px;
  display: block;
}
.chat-time-divider {
  align-self: center;
  font-size: 12px;
  color: #888;
  background: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 3px;
  margin: 4px 0;
}

.chat-input-bar {
  background: #f7f7f7;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 6px 8px;
  display: flex; align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-bar input {
  flex: 1;
  height: 36px;
  background: #fff;
  border-radius: 4px;
  border: 0.5px solid rgba(0,0,0,0.1);
  padding: 0 10px;
  font-size: 15px;
  outline: none;
}
.ci-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ci-icon svg { display: block; }

/* ===== 右上+下拉菜单 ===== */
.dropdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
}
.dropdown-mask {
  position: absolute; inset: 0;
  background: transparent;
}
.dropdown-menu {
  position: absolute;
  top: 44px; right: 8px;
  background: rgba(50,50,50,0.92);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: dropIn 0.15s ease-out;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dd-item {
  padding: 10px 16px;
  color: #fff;
  font-size: 15px;
  display: flex; align-items: center;
  gap: 10px;
  cursor: pointer;
}
.dd-item:active { background: rgba(255,255,255,0.15); }
.dd-icon {
  width: 22px; text-align: center;
  font-size: 18px;
}

/* ===== 通讯录fixed items 配色 ===== */
.fixed-item-qr .fi-icon { background: linear-gradient(135deg, #fa9d3b 0%, #f56300 100%); }
.fixed-item[data-go="add-friend"] .fi-icon { background: linear-gradient(135deg, #1aad19 0%, #07c160 100%); }
