/* ==========================================
   心悦同行 统一设计系统
   Design System: Premium Rose-Pink Theme
   ========================================== */

:root {
  --primary: #ff4d8d;
  --primary-light: #ff80b5;
  --primary-dark: #cc2970;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;

  --bg-base: #fff5f8;
  --bg-card: #ffffff;
  --bg-dark: #1a0a0f;
  --bg-nav: #ffffff;

  --text-primary: #1a0a0f;
  --text-secondary: #6b4a56;
  --text-muted: #b08898;
  --text-white: #ffffff;

  --border: #ffd6e7;
  --border-light: #fff0f5;

  --shadow-sm: 0 2px 8px rgba(255,77,141,0.08);
  --shadow-md: 0 4px 20px rgba(255,77,141,0.15);
  --shadow-lg: 0 8px 40px rgba(255,77,141,0.2);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-height: 56px;
  --bottom-nav-height: 64px;

  --gradient-primary: linear-gradient(135deg, #ff4d8d 0%, #ff80b5 50%, #c084fc 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 100%);
  --gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* ====== Reset & Base ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100%;
  overflow-x: hidden;
}

/* ====== Top Nav ====== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-left { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-text em { font-style: normal; color: var(--secondary); }
.nav-center { 
  flex: 1; 
  text-align: center; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav-tagline { 
  font-size: 12px; 
  color: var(--text-muted); 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-icon {
  position: relative;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.btn-icon:hover { background: var(--bg-base); }
.badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}
.user-avatar-mini {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
}
.user-avatar-mini img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f4a0b5, #c084fc, #a78bfa) border-box;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(219, 112, 147, 0.25), 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.user-avatar-mini:hover img {
  box-shadow: 0 4px 18px rgba(219, 112, 147, 0.4), 0 2px 6px rgba(0,0,0,0.1);
  transform: scale(1.05);
}
.online-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid white;
}

/* ====== Bottom Nav ====== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(255,77,141,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  padding: 6px 0;
}
.tab-btn:hover, .tab-btn.active {
  color: var(--primary);
}
.tab-btn.active .tab-icon {
  transform: scale(1.1);
}
.tab-icon { font-size: 20px; transition: transform 0.2s; }
.tab-label { font-size: 10px; font-weight: 500; }

/* ====== Main Content ====== */
.main-content {
  padding-top: calc(var(--nav-height) + 8px);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: 100vh;
}

/* ====== Page Sections ====== */
.page-section {
  display: none;
  padding: 0 0 20px;
  animation: fadeSlideIn 0.3s ease;
}
.page-section.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Section Cards ====== */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title-row h3 { font-size: 15px; font-weight: 700; }
.online-count { font-size: 12px; color: var(--success); font-weight: 500; }
.see-all { font-size: 13px; color: var(--primary); cursor: pointer; position: relative; z-index: 5; font-weight: 600; padding: 2px 6px; border-radius: 4px; transition: all 0.2s; }
.see-all:hover { background: rgba(255,77,141,0.08); }

/* ====== Hero Carousel ====== */
.hero-carousel {
  position: relative;
  height: 200px;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.slide-1 { background: var(--gradient-primary); }
.slide-2 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-3 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}
.slide-content {
  position: relative;
  z-index: 1;
  color: white;
}
.slide-content h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.slide-content p { font-size: 13px; opacity: 0.9; margin-bottom: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px; right: 16px;
  display: flex; gap: 6px;
  z-index: 2;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  width: 18px;
  background: white;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.carousel-prev:hover, .carousel-next:hover { background: rgba(255,255,255,0.4); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* ====== Buttons ====== */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255,77,141,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,77,141,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary-sm {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm {
  background: var(--bg-base);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm.active { background: var(--primary); color: white; border-color: var(--primary); }
.vip-btn {
  background: var(--gradient-gold);
  color: #333;
  border-color: transparent;
}

/* ====== Online Members Scroll ====== */
.member-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.member-scroll::-webkit-scrollbar { display: none; }
.member-avatar-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.member-avatar-item:hover { transform: scale(1.05); }
.member-avatar-wrap {
  position: relative;
  width: 54px; height: 54px;
}
.member-avatar-wrap img {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f9c9d4, #e0b8ff, #c4b5fd) border-box;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(219, 112, 147, 0.22), 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.member-avatar-item:hover .member-avatar-wrap img {
  box-shadow: 0 4px 20px rgba(219, 112, 147, 0.4), 0 2px 6px rgba(0,0,0,0.1);
  transform: scale(1.08);
}
.member-avatar-wrap .online-dot {
  width: 12px; height: 12px;
}
.member-name { font-size: 11px; color: var(--text-secondary); max-width: 52px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ====== Quick Entry Grid ====== */
.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-card:active { transform: scale(0.96); }
.qe-icon { font-size: 22px; }
.quick-card span:last-child { font-size: 10px; color: var(--text-secondary); text-align: center; line-height: 1.2; }

/* ====== Member Photo Grid ====== */
.member-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photo-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-card:hover { transform: scale(1.02); }
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}
.photo-card img.recommend-avatar {
  min-height: 100%;
}
.photo-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 8px 8px 6px;
  color: white;
}
.photo-card-name { font-size: 12px; font-weight: 600; }
.photo-card-age { font-size: 11px; opacity: 0.8; }
.photo-card-match {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(255,77,141,0.85);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}

/* ====== AI Dashboard ====== */
.ai-dashboard { background: var(--gradient-primary); color: white; }
.ai-dashboard h3 { color: white; margin-bottom: 12px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 18px; font-weight: 800; }
.stat-label { font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* ====== Dating Section ====== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.page-header h2 { font-size: 20px; font-weight: 800; }
.btn-filter {
  background: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
}
.filter-panel {
  display: none;
  background: var(--bg-card);
  margin: 0 12px;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.filter-panel.open { display: block; }
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.filter-row label { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.filter-row input[type=range] { flex: 1; accent-color: var(--primary); }
.filter-tag {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Dating Carousel */
.dating-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.dating-carousel::-webkit-scrollbar { display: none; }
.dating-photo-card {
  flex-shrink: 0;
  width: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.dating-photo-card:hover { transform: scale(1.02); }
.dating-photo-card img {
  width: 130px; height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  display: block;
}
.dating-photo-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 10px 8px 8px;
  color: white;
}
.d-name { font-size: 13px; font-weight: 700; }
.d-detail { font-size: 11px; opacity: 0.8; }
.d-match { font-size: 11px; color: #ffb3cc; font-weight: 600; }

/* Match Grid */
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
  margin-top: 8px;
}
.match-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.match-card-img { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: var(--radius-md); }
.match-card-body { padding: 10px; }
.match-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.match-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag {
  background: var(--bg-base);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 10px;
  padding: 2px 7px;
}
.match-card-footer { display: flex; align-items: center; justify-content: space-between; }
.match-pct { font-size: 12px; font-weight: 700; color: var(--primary); }
.btn-like {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-like:hover, .btn-like.liked { background: var(--primary); color: white; }

/* ====== Market ====== */
.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
}
.search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg-card);
  outline: none;
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 16px;
}
.market-tabs {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto;
}
.market-tabs::-webkit-scrollbar { display: none; }
.market-tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.market-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}
.market-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.market-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.market-item-img {
  width: 100%; height: 130px;
  object-fit: cover;
  background: linear-gradient(135deg,#e0c3fc,#8ec5fc);
  display: block;
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
}
.market-item-body { padding: 10px; }
.market-item-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.market-item-price { font-size: 16px; font-weight: 800; color: var(--danger); }
.market-item-price.free { color: var(--success); }
.market-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; justify-content: space-between; }

/* ====== Square ====== */
.square-tabs, .msg-tabs {
  display: flex;
  padding: 0 12px 10px;
  gap: 8px;
}
.sq-tab, .msg-tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sq-tab.active, .msg-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.chat-room { margin: 0 12px; }
.chat-messages, .ai-chat-msgs {
  background: var(--bg-base);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-input-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
  background: var(--bg-base);
}
.chat-input-bar input:focus { border-color: var(--primary); }
.voice-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.voice-btn:hover {
  background: rgba(255,77,141,0.1);
  border-color: var(--primary);
}

.send-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.share-btn-sm {
  background: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* Chat message bubbles */
.chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.chat-msg.self { flex-direction: row-reverse; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 2px solid transparent; background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #f9c9d4, #e0b8ff) border-box; box-shadow: 0 2px 8px rgba(219,112,147,0.2); }
.msg-bubble {
  max-width: 68%;
  background: white;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.chat-msg.self .msg-bubble {
  background: var(--gradient-primary);
  color: white;
  border-radius: 14px 14px 4px 14px;
  border: none;
}
.msg-meta { font-size: 10px; color: var(--text-muted); }

/* AI Chat */
.ai-msg { display: flex; gap: 8px; align-items: flex-start; }
.ai-msg.user { flex-direction: row-reverse; }
.bot-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #fce7f3, #f3e8ff); border: 2px solid transparent; box-shadow: 0 2px 8px rgba(219,112,147,0.15); }
.ai-msg .msg-bubble {
  max-width: 75%;
  background: white;
  border-radius: 4px 14px 14px 14px;
}
.ai-msg.user .msg-bubble {
  background: var(--gradient-primary);
  color: white;
  border-radius: 14px 4px 14px 14px;
  border: none;
}

/* ====== Activities ====== */
.activity-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 12px 10px;
  gap: 8px;
}
.activity-tabs::-webkit-scrollbar { display: none; }
.act-tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.act-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.activity-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.activity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.act-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.act-icon-bg {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.act-title { font-size: 15px; font-weight: 700; }
.act-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.act-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.act-footer { display: flex; align-items: center; justify-content: space-between; }
.act-members { font-size: 12px; color: var(--text-muted); }
.act-join-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.act-share-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* ====== Map Section ====== */
.map-controls { display: flex; gap: 8px; }
.map-container {
  height: 300px;
  margin: 0 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.nearby-list { padding: 0 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.nearby-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.nearby-card:hover { box-shadow: var(--shadow-md); }
.nearby-avatar { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid transparent; object-fit: cover; background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #f4a0b5, #c084fc) border-box; box-shadow: 0 3px 12px rgba(219,112,147,0.22); transition: all 0.3s ease; }
.nearby-card:hover .nearby-avatar { box-shadow: 0 4px 18px rgba(219,112,147,0.35); transform: scale(1.05); }
.nearby-info { flex: 1; }
.nearby-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.nearby-dist { font-size: 12px; color: var(--primary); }
.nearby-tags { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.btn-say-hi {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}

/* ====== Messages ====== */
.msg-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.msg-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.msg-item:hover { box-shadow: var(--shadow-md); }
.msg-item-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #ffd6e7; flex-shrink: 0; }
.msg-item-content { flex: 1; min-width: 0; }
.msg-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.msg-item-preview { font-size: 12px; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msg-item-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.msg-unread {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.system-msg-item {
  background: var(--bg-base);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
}
.sys-msg-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sys-msg-body { font-size: 12px; color: var(--text-secondary); }
.sys-msg-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.online-notify {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
}
.online-notify img { width: 36px; height: 36px; border-radius: 50%; }
.online-notify-text { font-size: 12px; color: var(--text-secondary); }
.online-notify-text strong { color: var(--primary); }
.online-notify-time { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* ====== Profile ====== */
.profile-hero {
  background: var(--gradient-primary);
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}
.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f4a0b5, #dd9ef5, #a78bfa) border-box;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(219, 112, 147, 0.3), 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}
.profile-avatar-wrap:hover .profile-avatar {
  box-shadow: 0 6px 28px rgba(219, 112, 147, 0.45), 0 3px 10px rgba(0,0,0,0.12);
  transform: scale(1.03);
}
.online-dot-lg {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #4ade80;
  border-radius: 50%;
  border: 3px solid white;
}
.profile-info h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.vip-badge { font-size: 12px; background: var(--gradient-gold); color: #7a5500; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.level-badge { font-size: 12px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.profile-info p { font-size: 13px; opacity: 0.9; }
.match-score { color: #ffe080; font-weight: 700; }
.profile-menu { margin: 0; }
.menu-item {
  background: var(--bg-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
  font-size: 14px;
}
.menu-item:hover { background: var(--bg-base); }
.menu-item span:first-child { font-size: 20px; }
.menu-item span:nth-child(2) { flex: 1; }
.menu-item span:last-child { color: var(--text-muted); font-size: 16px; }
.points-bar {
  height: 8px;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.points-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s ease;
}
.points-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.points-history { display: flex; flex-direction: column; gap: 6px; }
.points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.points-row:last-child { border-bottom: none; }
.points-desc { color: var(--text-secondary); }
.points-gain { color: var(--success); font-weight: 600; }
.points-spend { color: var(--danger); font-weight: 600; }

/* ====== Notify Panel ====== */
.notify-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 12px;
  width: 300px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 999;
  max-height: 400px;
  overflow: hidden;
  flex-direction: column;
}
.notify-panel.open { display: flex; }
.notify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
}
.notify-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
}
.notify-list { overflow-y: auto; flex: 1; }
.notify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}
.notify-item:hover { background: var(--bg-base); }
.notify-item-icon { font-size: 22px; width: 36px; text-align: center; }
.notify-item-text { flex: 1; font-size: 12px; color: var(--text-secondary); }
.notify-item-text strong { color: var(--text-primary); }
.notify-item-time { font-size: 11px; color: var(--text-muted); }

/* ====== Modals ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal.open {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 700;
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.modal-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-header button:hover { background: var(--bg-base); }
.chat-modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.chat-modal .ai-chat-msgs { height: 360px; border-radius: 0; }
.chat-modal .chat-input-bar { border-radius: 0; border: none; border-top: 1px solid var(--border-light); }

/* Form elements */
.form-group { padding: 12px 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: var(--bg-base);
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: var(--bg-base);
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--primary); }
.form-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: var(--bg-base);
  appearance: none;
}
.full-width { width: calc(100% - 32px); margin: 0 16px 16px; display: block; text-align: center; }
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.upload-area:hover { border-color: var(--primary); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 12px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Bot settings */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ktag {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Feedback */
.points-reward-banner {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* Share Modal */
.share-modal .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.share-preview { padding: 16px; }
.share-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  color: white;
  text-align: center;
}
.share-card-logo { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.share-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.share-card-desc { font-size: 12px; opacity: 0.85; margin-bottom: 12px; }
.share-card-qr { font-size: 28px; }
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}
.share-plt {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.share-plt:hover { transform: translateY(-2px); }
.wechat { background: #07c160; color: white; }
.weibo { background: #e6162d; color: white; }
.qq { background: #12b7f5; color: white; }
.douyin { background: #161823; color: white; }
.link { background: var(--bg-base); color: var(--text-primary); border: 1px solid var(--border); }
.poster { background: var(--gradient-warm); color: white; }

/* ====== QR Code Share Modal ====== */
.share-qr-modal { max-width: 340px; text-align: center; }
.share-qr-content { padding: 16px 0; }
.share-qr-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.qr-code-container { display: flex; justify-content: center; margin: 16px 0; padding: 16px; background: #f8f9fa; border-radius: var(--radius-lg); }
.qr-code-container canvas { border-radius: 8px; }
.share-qr-actions { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.share-qr-btn { padding: 8px 16px; font-size: 13px; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.share-qr-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.share-qr-tip { font-size: 12px; color: var(--text-muted); margin-top: 12px; padding: 8px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.wechat-group-info { margin-top: 16px; padding: 12px; background: #f0f7f0; border-radius: var(--radius-sm); border-left: 3px solid #52c41a; }
.group-stat { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
.group-stat:first-child { font-weight: 600; color: var(--text-primary); }

/* VIP Modal */
.vip-content { padding: 16px; }
.vip-perks { background: var(--bg-base); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.perk-item { font-size: 13px; padding: 5px 0; color: var(--text-secondary); }
.vip-plans { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.vip-plan {
  flex: 1 1 80px;
  min-width: 90px;
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.vip-plan.popular, .vip-plan.selected { border-color: var(--accent); background: rgba(245,158,11,0.05); }
.plan-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.plan-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.plan-price span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.btn-vip-buy {
  width: 100%;
  background: var(--gradient-gold);
  color: #7a5500;
  border: none;
  border-radius: 20px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.vip-pay-method-btn {
  flex:1;padding:8px 16px;border:2px solid #e0e0e0;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;background:#fff;color:#666;transition:all .2s
}
.vip-pay-method-btn.active{border-color:var(--primary);color:var(--primary);background:rgba(99,102,241,.06)}
.vip-pay-method-btn:hover:not(.active){border-color:#bbb}

/* VIP Payment Modal - 微信支付弹窗专用样式 */
.vip-modal { max-width: 420px; }
.vip-modal .vip-content { padding: 12px 16px 24px; }
.vip-modal .vip-content > div[style*="text-align:center"] { padding: 12px 0 8px !important; }

#vipQrLoading {
  padding: 32px 16px !important;
  text-align: center !important;
  color: #999 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#vipQrCode {
  padding: 8px 12px 16px !important;
  text-align: center !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}

#vipQrCode #vipQrImage {
  display: inline-block !important;
  padding: 12px !important;
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e9ecef !important;
  box-sizing: border-box !important;
  max-width: 100%;
}

#vipQrCode #vipQrImage canvas {
  display: block !important;
  border-radius: 8px !important;
  max-width: 100% !important;
  height: auto !important;
}

#vipQrFallback {
  padding: 16px !important;
  text-align: center !important;
}

#vipPayTitle {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

#vipPayPrice {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #7c3aed !important;
}

#vipPayMethodHint {
  font-size: 12px !important;
  color: #999 !important;
  margin-bottom: 16px !important;
}

/* VIP QR Prompt & Long-press Interaction */
.vip-qr-prompt {
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: background 0.2s;
  border-radius: 12px;
}
.vip-qr-prompt:active {
  background: rgba(124, 58, 237, 0.04);
}

.vip-qr-prompt-icon {
  display: block;
  font-size: 44px;
  margin-bottom: 6px;
  animation: vip-qr-pulse 2.2s ease-in-out infinite;
}
@keyframes vip-qr-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

.vip-qr-prompt-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.vip-qr-prompt-price {
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 10px;
}

.vip-qr-longpress-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1.5px dashed #a78bfa;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  line-height: 1.35;
  animation: vip-hint-glow 2.2s ease-in-out infinite;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
@keyframes vip-hint-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

.vip-qr-revealed {
  animation: vip-qr-fadeIn 0.35s ease-out;
  text-align: center;
  width: 100%;
}
@keyframes vip-qr-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vip-qr-img-wrapper {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-sizing: border-box;
  max-width: 100%;
}

.vip-qr-img-wrapper img {
  display: block;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  -webkit-touch-callout: default;
}

.vip-qr-pay-text {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vip-qr-recognize-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 8px 16px;
  background: #fffbf0;
  border: 1px solid #fbbf24;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #d97706;
  animation: vip-hint-glow-amber 2s ease-in-out infinite;
}
@keyframes vip-hint-glow-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.vip-qr-expire-text {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}

/* QR 加载中渐变提示 */
.vip-qr-loading-dots::after {
  content: '';
  animation: vip-dots 1.4s steps(1, end) infinite;
}
@keyframes vip-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* 移动端适配 */
@media (max-width: 420px) {
  .vip-modal .vip-content { padding: 10px 12px 20px; }
  #vipQrLoading { padding: 24px 12px !important; min-height: 60px; }
  #vipQrCode { padding: 4px 8px 12px !important; }
  #vipQrCode #vipQrImage { padding: 8px !important; }
  #vipQrCode #vipQrImage canvas { max-width: 180px !important; }
  #vipPayPrice { font-size: 26px !important; }

  .vip-qr-prompt { padding: 16px 12px; }
  .vip-qr-prompt-icon { font-size: 38px; }
  .vip-qr-prompt-title { font-size: 16px; }
  .vip-qr-longpress-hint { font-size: 13px; padding: 8px 16px; }
  .vip-qr-pay-text { font-size: 14px; }
  .vip-qr-recognize-hint { font-size: 12px; padding: 7px 14px; }
  .vip-qr-img-wrapper { padding: 8px; }
  .vip-qr-img-wrapper img { max-width: 180px; }
}

@media (max-width: 360px) {
  .vip-qr-prompt { padding: 12px 8px; }
  .vip-qr-prompt-icon { font-size: 32px; }
  .vip-qr-prompt-title { font-size: 15px; }
  .vip-qr-longpress-hint { font-size: 12px; padding: 7px 12px; white-space: normal; }
  .vip-qr-pay-text { font-size: 13px; }
  .vip-qr-recognize-hint { font-size: 11px; white-space: normal; }
  .vip-qr-img-wrapper img { max-width: 160px; }
}

/* Chat private header */
.chat-header-user { display: flex; align-items: center; gap: 8px; }
.chat-target-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #f4a0b5, #c084fc) border-box; box-shadow: 0 2px 10px rgba(219,112,147,0.22); }
.online-status { font-size: 11px; color: var(--success); display: block; }

/* ====== Toast ====== */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ====== FAB AI Button ====== */
.fab-ai {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  right: 20px;
  width: 52px; height: 52px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.fab-ai:hover { transform: scale(1.1) rotate(-10deg); }

/* ====== Leaflet map customization ====== */
.leaflet-container { font-family: inherit; }
.map-popup { font-size: 12px; }
.custom-marker {
  width: 40px; height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.custom-marker img { width: 100%; height: 100%; transform: rotate(45deg); object-fit: cover; }

/* ====== Emotion Chart Canvas ====== */
canvas { width: 100% !important; height: auto !important; display: block; }

/* ====== Responsive ====== */
@media (max-width: 380px) {
  .quick-entry-grid { grid-template-columns: repeat(4,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 480px) {
  .modal-box { border-radius: var(--radius-lg); max-height: 80vh; }
  .modal { align-items: center; }
}

/* ====== Auth Page (Register/Login) ====== */
.auth-page {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto 0;
}
.auth-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 4px;
}
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.auth-title em {
  font-style: normal;
  color: var(--secondary);
}
.auth-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-base);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.login-sub-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-base);
  border-radius: 10px;
  padding: 2px;
}
.login-sub-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.login-sub-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.auth-input-group {
  margin-bottom: 14px;
  text-align: left;
}
.auth-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: var(--bg-base);
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-primary);
}
.auth-input:focus {
  border-color: var(--primary);
  background: white;
}
.auth-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}
.input-with-icon {
  position: relative;
}
.input-with-icon .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.5;
}
.input-with-icon .input-icon.clickable {
  cursor: pointer;
  opacity: 0.6;
}
.input-with-icon .input-icon.clickable:hover {
  opacity: 1;
}
.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-with-btn .auth-input {
  flex: 1;
  padding-right: 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
}
.auth-code-btn {
  flex-shrink: 0;
  padding: 11px 14px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.auth-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.code-hint {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--success);
  text-align: center;
}
.code-hint strong {
  font-size: 18px;
  letter-spacing: 6px;
}
.gender-select {
  display: flex;
  gap: 10px;
}
.gender-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-base);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.gender-btn.active {
  border-color: var(--primary);
  background: rgba(255,77,141,0.08);
  color: var(--primary);
  font-weight: 600;
}
.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--danger);
  text-align: center;
}
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,77,141,0.35);
  margin-top: 4px;
}
.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,77,141,0.45);
}
.auth-submit-btn:active {
  transform: translateY(0);
}
.auth-agreement {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.auth-agreement a {
  color: var(--primary);
  text-decoration: none;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}
.auth-links a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

/* ====== Scan Login ====== */
.scan-login-section {
  text-align: center;
  margin-bottom: 16px;
}
.qr-code-box {
  display: inline-block;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.qr-code-box:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.qr-code {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.qr-code svg {
  width: 140px;
  height: 140px;
}
.qr-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 600;
}
.qr-sub-tip {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.qr-timer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ====== Upload Photos ====== */
.upload-content {
  padding: 4px 0 8px;
}

/* 头像模式选项卡 */
.avatar-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(236,180,209,0.3);
}
.avatar-mode-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: linear-gradient(135deg, rgba(255,245,248,0.95), rgba(248,240,255,0.95));
  font-size: 13px;
  font-weight: 500;
  color: #8e6a8a;
  cursor: pointer;
  transition: all 0.3s ease;
}
.avatar-mode-tab.active {
  background: linear-gradient(135deg, #f4a0b5, #c084fc, #a78bfa);
  color: white;
  box-shadow: 0 2px 10px rgba(219,112,147,0.3);
  font-weight: 600;
}

/* 风格筛选 */
.avatar-style-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.style-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(236, 180, 209, 0.3);
  background: linear-gradient(135deg, rgba(255,240,245,0.9), rgba(248,240,255,0.9));
  font-size: 12px;
  color: #8e6a8a;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.style-chip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(219,112,147,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.style-chip:hover::before { opacity: 1; }
.style-chip.active {
  background: linear-gradient(135deg, #f4a0b5, #c084fc, #a78bfa);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(219, 112, 147, 0.35), 0 1px 3px rgba(0,0,0,0.08);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.style-chip:hover:not(.active) {
  border-color: rgba(219, 112, 147, 0.5);
  color: #be6a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(219, 112, 147, 0.15);
}

/* 卡通头像风格标签 */
.cartoon-style-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px 4px;
  grid-column: 1 / -1;
}

/* 卡通头像网格 */
.cartoon-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
  max-height: 42vh;
  overflow-y: auto;
}
.avatar-save-bar {
  padding: 10px 12px 16px;
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
  z-index: 2;
}
.cartoon-avatar-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: var(--bg-base);
}
.cartoon-avatar-item:hover {
  transform: scale(1.05);
  border-color: rgba(244,160,181,0.5);
}
.cartoon-avatar-item.selected {
  border-color: #f4a0b5;
  box-shadow: 0 0 0 2px rgba(244,160,181,0.25), 0 4px 12px rgba(219,112,147,0.2);
}
.cartoon-avatar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cartoon-avatar-item.avatar-load-fail {
  display: none;
}
.cartoon-check {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4a0b5, #c084fc);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
  animation: popIn 0.2s ease;
  box-shadow: 0 2px 6px rgba(219,112,147,0.3);
}
@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.avatar-upload-area {
  text-align: center;
  cursor: pointer;
}
.avatar-preview-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.avatar-preview-box:hover {
  border-color: var(--primary);
}
.avatar-edit-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid white;
  cursor: pointer;
}
.photo-grid-upload {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.photo-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-grid-item:hover {
  transform: scale(1.03);
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid-time {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  font-size: 9px;
  padding: 12px 6px 4px;
}
.photo-grid-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-grid-item:hover .photo-grid-delete {
  opacity: 1;
}
.add-photo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin: 8px 16px;
  color: var(--text-muted);
}
.add-photo-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.upload-tip {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 16px 0;
}

/* ====== Member Detail Modal ====== */
.member-detail-modal {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 !important;
}
.md-hero {
  position: relative;
  padding: 0 0 60px;
  overflow: hidden;
}
.md-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fdfcfb 100%);
  z-index: 0;
}
.md-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}
.md-avatar-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}
.md-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(255,77,141,0.3);
  overflow: hidden;
  position: relative;
  background: white;
}
.md-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.md-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
}
.md-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
}
.md-match-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: 0 2px 10px rgba(255,77,141,0.3);
}
.md-match-badge strong {
  font-size: 16px;
}
.md-basic-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  justify-content: center;
}
.md-basic-tag {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.md-section {
  padding: 0 16px 12px;
}
.md-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}
.md-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.md-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.md-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.md-info-label {
  font-size: 11px;
  color: var(--text-muted);
}
.md-info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
/* Ta的动态（会员详情中） */
.md-moments-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-base);
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 8px;
  border-left: none;
}
.md-moments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.md-moment-card {
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}
.md-moment-card:hover {
  box-shadow: 0 2px 8px rgba(255,77,141,0.08);
}
.md-moment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  word-break: break-word;
  margin-bottom: 8px;
}
.md-moment-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.md-moment-topic {
  background: linear-gradient(135deg, rgba(255,77,141,0.06), rgba(139,92,246,0.06));
  color: var(--primary);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.md-moment-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.md-moment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}
.md-moment-time {
  font-size: 11px;
  color: var(--text-muted);
}
.md-moment-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.md-moment-stats span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.md-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.md-tag {
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(192,132,252,0.08));
  border: 1px solid rgba(255,77,141,0.2);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}
.md-tag:hover {
  background: linear-gradient(135deg, rgba(255,77,141,0.15), rgba(192,132,252,0.15));
  transform: scale(1.05);
}
.md-actions {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}
.md-btn {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.md-btn:active { transform: scale(0.96); }
.md-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.md-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 关注按钮 */
.md-btn-follow {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 3px 12px rgba(255,77,141,0.3);
}
.md-btn-follow:hover { box-shadow: 0 5px 16px rgba(255,77,141,0.4); transform: translateY(-1px); }
.md-btn-following {
  background: var(--bg-base);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.md-btn-following:hover { border-color: var(--danger); color: var(--danger); }

/* 加好友按钮 */
.md-btn-add-friend {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  box-shadow: 0 3px 12px rgba(139,92,246,0.3);
}
.md-btn-add-friend:hover { box-shadow: 0 5px 16px rgba(139,92,246,0.4); transform: translateY(-1px); }
.md-btn-add-friend.disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.md-btn-friend-added {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 3px 12px rgba(16,185,129,0.3);
}

/* 聊天按钮 */
.md-btn-chat {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.md-btn-chat:hover { border-color: var(--primary); color: var(--primary); }
.md-btn-chat.disabled { opacity: 0.45; cursor: not-allowed; }
.md-btn-chat.disabled:hover { transform: none; border-color: var(--border); color: var(--text-primary); }

/* 分享按钮 */
.md-btn-share {
  background: var(--bg-base);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  flex: 0.5;
}

/* ====== 关注/好友列表 ====== */
.social-list-container {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 0 12px;
}
.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}
.social-item:hover { background: var(--bg-base); }
.social-item:last-child { border-bottom: none; }
.social-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f9c9d4, #e0b8ff) border-box;
  box-shadow: 0 2px 8px rgba(219,112,147,0.18);
  transition: all 0.3s ease;
}
.social-item:hover .social-item-avatar { box-shadow: 0 3px 14px rgba(219,112,147,0.3); transform: scale(1.05); }
.social-item-info {
  flex: 1;
  min-width: 0;
}
.social-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-item-bio {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-badge-friend {
  font-size: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.1));
  color: #059669;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.social-badge-mutual {
  font-size: 10px;
  background: linear-gradient(135deg, rgba(255,77,141,0.1), rgba(139,92,246,0.1));
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.social-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ====== 好友申请 ====== */
.friend-req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.friend-req-item:last-child { border-bottom: none; }
.fr-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f9c9d4, #e0b8ff) border-box;
  box-shadow: 0 2px 8px rgba(219,112,147,0.18);
}
.fr-info {
  flex: 1;
  min-width: 0;
}
.fr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.fr-match {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  margin-left: 4px;
}
.fr-bio {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.fr-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.fr-accept {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  font-size: 12px;
  padding: 6px 14px;
}
.fr-reject {
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
  font-size: 12px;
  padding: 6px 14px;
}

/* ====== Edit Profile Modal ====== */
.edit-profile-content {
  padding: 4px 0 12px;
  max-height: 65vh;
  overflow-y: auto;
}
.edit-avatar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 4px;
  gap: 4px;
}
.edit-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--border);
}
.edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edit-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,77,141,0.4);
}
.edit-avatar-badge:hover {
  transform: scale(1.1);
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row .form-group {
  padding: 8px 16px;
}
.char-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ====== Create Activity Modal ====== */
.create-activity-content {
  padding: 4px 0 12px;
  max-height: 70vh;
  overflow-y: auto;
}
.act-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.act-type-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--bg-base);
}
.act-type-item:hover { border-color: var(--primary); color: var(--primary); }
.act-type-item.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(192,132,252,0.08));
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(255,77,141,0.15);
}
.quick-time-btn {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.quick-time-btn:hover { border-color: var(--primary); color: var(--primary); }
.quick-time-btn:active { transform: scale(0.95); }
.act-cover-upload {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
  margin: 0 16px;
  background: var(--bg-base);
}
.act-cover-upload:hover { border-color: var(--primary); }
.act-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}
.act-cover-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.act-cover-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}
.act-contact-row {
  display: flex;
  gap: 8px;
}
.act-contact-row .form-select { border-radius: var(--radius-sm); }
.act-create-tips {
  margin: 8px 16px 0;
  padding: 10px 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.act-create-tips ul { padding-left: 16px; margin: 4px 0 0; }
.act-create-tips li { margin-bottom: 2px; }

/* Activity card enhancements */
.act-card-cover {
  width: calc(100% + 28px);
  margin: -14px -14px 10px;
  height: 100px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.act-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.act-fee-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.act-location-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-base);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ====== Activity Detail Modal ====== */
.activity-detail-modal {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 !important;
}
.ad-hero {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.ad-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.ad-hero-icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.ad-title {
  color: white;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ad-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}
.ad-meta-item {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ad-fee-tag { border-color: #f59e0b33; color: #f59e0b; }
.ad-free-tag { border-color: #10b98133; color: #10b981; }
.ad-info-section {
  padding: 0 16px 12px;
}
.ad-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}
.ad-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ad-contact-info {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.ad-organizer {
  padding: 0 16px 12px;
}
.ad-organizer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.ad-organizer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.ad-organizer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.ad-organizer-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ad-actions {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border-light);
}

/* ====== Voice Room List ====== */
.voice-room-list, .video-room-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vr-list-card, .vc-room-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vr-list-card:hover, .vc-room-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vr-list-left, .vc-room-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.vr-list-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vr-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vr-list-info { min-width: 0; }
.vr-list-title, .vc-room-title { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-list-host { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.vr-list-right, .vc-room-action { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vr-hot-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: 10px; padding: 2px 6px; border-radius: 8px; font-weight: 600;
}
.vr-list-members, .vc-room-online { font-size: 11px; color: var(--text-muted); }
.vr-join-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white; border: none; border-radius: 14px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
}
.vr-join-btn:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(139,92,246,0.4); }
.vc-room-icon { font-size: 28px; flex-shrink: 0; }
.vc-room-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ====== Input Bar Mini Buttons ====== */
.voice-mini-btn, .video-mini-btn {
  width: 34px; height: 34px;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s; flex-shrink: 0;
  background: var(--bg-base);
}
.voice-mini-btn:hover { background: rgba(139,92,246,0.1); }
.video-mini-btn:hover { background: rgba(16,185,129,0.1); }

/* ====== Voice Room Modal ====== */
.voice-room-modal {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 !important;
  background: linear-gradient(180deg, #1e1040 0%, #0f0a1f 100%);
  color: white;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.vr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; flex-shrink: 0;
}
.vr-room-info { text-align: center; }
.vr-room-title { font-size: 15px; font-weight: 700; display: block; }
.vr-room-status { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; display: block; }

.vr-stage {
  padding: 10px 16px; text-align: center; flex-shrink: 0;
}
.vr-host { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.vr-seat { display: inline-flex; flex-direction: column; align-items: center; margin: 0 6px 12px; vertical-align: top; }
.vr-avatar-ring {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2.5px solid transparent;
  overflow: hidden; position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f4a0b5, #c084fc, #a78bfa) border-box;
  box-shadow: 0 3px 14px rgba(219,112,147,0.25);
  transition: all 0.3s ease;
}
.vr-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.vr-avatar-speaking {
  border-color: #f4a0b5;
  box-shadow: 0 0 14px rgba(244,160,181,0.55), 0 0 28px rgba(192,132,252,0.3);
  animation: vrPulse 1.5s ease-in-out infinite;
}
@keyframes vrPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(244,160,181,0.45), 0 0 20px rgba(192,132,252,0.25); }
  50% { box-shadow: 0 0 20px rgba(139,92,246,0.7); }
}
.vr-role-badge {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: 9px; padding: 1px 6px; border-radius: 8px;
  white-space: nowrap; font-weight: 600; z-index: 1;
}
.vr-sound-waves {
  display: flex; align-items: flex-end; gap: 2px;
  height: 14px; margin-top: 4px;
}
.vr-sound-waves span {
  width: 3px; background: #8b5cf6; border-radius: 2px;
  animation: vrWave 0.6s ease-in-out infinite alternate;
}
.vr-sound-waves span:nth-child(1) { height: 4px; animation-delay: 0s; }
.vr-sound-waves span:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.vr-sound-waves span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.vr-sound-waves span:nth-child(4) { height: 8px; animation-delay: 0.3s; }
.vr-sound-waves span:nth-child(5) { height: 4px; animation-delay: 0.4s; }
.vr-waves-off span { animation: none; height: 3px !important; background: rgba(255,255,255,0.2); }
@keyframes vrWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
.vr-user-name { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.vr-seat-empty .vr-avatar-ring { border-style: dashed; border-color: rgba(255,255,255,0.15); }

/* 语音房观众 */
.vr-audience-section { padding: 0 16px; flex: 1; overflow-y: auto; min-height: 0; }
.vr-audience-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; color: rgba(255,255,255,0.5); }
.vr-audience-count { background: rgba(139,92,246,0.3); padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.vr-audience-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vr-audience-item {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05); border-radius: 16px;
  padding: 4px 10px 4px 4px; font-size: 12px; color: rgba(255,255,255,0.7);
}
.vr-audience-item img { width: 22px; height: 22px; border-radius: 50%; }

/* 语音房消息 */
.vr-messages {
  padding: 8px 16px; max-height: 100px; overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.vr-msg-item { font-size: 12px; margin-bottom: 4px; line-height: 1.4; }
.vr-msg-name { color: #a78bfa; font-weight: 600; margin-right: 6px; }
.vr-msg-text { color: rgba(255,255,255,0.8); }

/* 语音房输入 */
.vr-input-bar {
  display: flex; gap: 8px; padding: 8px 16px;
  border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.vr-input-bar input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 8px 14px; color: white; font-size: 13px; outline: none;
}
.vr-input-bar input::placeholder { color: rgba(255,255,255,0.3); }
.vr-input-bar input:focus { border-color: rgba(139,92,246,0.5); }
.vr-send-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1); color: white;
  border: none; border-radius: 18px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}

/* 语音房控制栏 */
.vr-controls {
  display: flex; justify-content: space-around; padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
  background: rgba(0,0,0,0.2); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.vr-ctrl-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 20px; transition: all 0.2s; padding: 4px 8px;
}
.vr-ctrl-btn span:last-child { font-size: 10px; }
.vr-ctrl-btn:hover { color: white; }
.vr-ctrl-btn.active { color: #8b5cf6; }
.vr-ctrl-btn.vr-mic-btn.active { color: #10b981; }
.vr-leave-btn { color: #ef4444 !important; }
.vr-leave-btn:hover { color: #dc2626 !important; }

/* ====== Video Call Modal ====== */
.video-call-modal {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 !important;
  background: #0a0a0a;
  color: white;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vc-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; position: relative; z-index: 2;
}
.vc-timer { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vc-quality { font-size: 11px; color: rgba(255,255,255,0.5); }

.vc-video-container {
  position: relative; flex: 1; min-height: 280px;
  background: #111; overflow: hidden;
}
.vc-remote-view {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.vc-remote-view video { width: 100%; height: 100%; object-fit: cover; }
.vc-remote-avatar {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.vc-remote-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }
.vc-remote-name { font-size: 16px; font-weight: 600; }
.vc-remote-info { position: absolute; bottom: 20%; }
.vc-calling-text { font-size: 14px; color: rgba(255,255,255,0.7); animation: vcCalling 1.5s ease-in-out infinite; }
@keyframes vcCalling {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.vc-local-view {
  position: absolute; top: 60px; right: 12px;
  width: 100px; height: 140px; border-radius: 14px;
  overflow: hidden; background: #222; border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 3;
}
.vc-local-view video { width: 100%; height: 100%; object-fit: cover; }
.vc-local-avatar {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
}
.vc-local-avatar img { width: 60px; height: 60px; border-radius: 50%; }

/* 呼叫按钮 */
.vc-call-actions {
  display: flex; justify-content: center; gap: 40px;
  padding: 30px 16px; flex-shrink: 0; z-index: 2;
}
.vc-action-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.vc-action-btn:active { transform: scale(0.9); }
.vc-accept-btn { background: #10b981; box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.vc-accept-btn:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.5); transform: scale(1.05); }
.vc-decline-btn { background: #ef4444; box-shadow: 0 4px 15px rgba(239,68,68,0.4); }

/* 视频通话控制栏 */
.vc-controls {
  display: flex; justify-content: space-around; padding: 16px;
  background: rgba(0,0,0,0.3); flex-shrink: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.vc-ctrl-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 50px; height: 50px; color: white;
  cursor: pointer; font-size: 20px; transition: all 0.2s;
}
.vc-ctrl-btn span:last-child { display: none; }
.vc-ctrl-btn.active { background: rgba(255,255,255,0.2); }
.vc-ctrl-btn:hover { background: rgba(255,255,255,0.2); }
.vc-ctrl-btn.vc-end-btn {
  background: #ef4444; width: 56px; height: 56px;
}
.vc-ctrl-btn.vc-end-btn:hover { background: #dc2626; }

/* 通话结束 */
.vc-ended-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.vc-ended-content {
  text-align: center; color: white;
  display: flex; flex-direction: column; align-items: center;
}
.vc-ended-title { font-size: 20px; font-weight: 700; margin-top: 12px; }
.vc-ended-time { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* 视频联系人列表 */
.vc-contact-list { padding: 8px 0; max-height: 60vh; overflow-y: auto; }
.vc-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background 0.2s;
}
.vc-contact-item:hover { background: var(--bg-base); }
.vc-contact-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vc-contact-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.vc-contact-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.vc-contact-online { font-size: 10px; }

/* ====== 小红书分享按钮 ====== */
.xiaohongshu { background: linear-gradient(135deg, #ff2442, #fe2c55); color: white; }

/* ====== 个人动态/朋友圈样式 ====== */

/* 动态筛选标签 */
.moments-tabs {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
}
.moments-tabs::-webkit-scrollbar { display: none; }
.moment-tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}
.moment-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255,77,141,0.3);
}
.moment-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* 动态列表 */
.moments-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 动态卡片 */
.moment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.moment-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* 动态头部：头像+用户信息 */
.moment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.moment-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.moment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  background: #ffd6e7;
}
.moment-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.moment-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.moment-share-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.moment-share-btn:hover { color: var(--primary); }

/* 动态文字内容 */
.moment-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 8px;
  word-break: break-word;
}

/* 话题标签 */
.moment-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.moment-topic {
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(139,92,246,0.08));
  color: var(--primary);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* 动态图片 */
.moment-images, .detail-images {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.moment-images { grid-template-columns: repeat(3, 1fr); }
.moment-images .moment-img-item { aspect-ratio: 1; overflow: hidden; }
.moment-images .moment-img-item img { width: 100%; height: 100%; object-fit: cover; }
.moment-images:has(.moment-img-item:nth-child(1)):has(.moment-img-item:nth-child(4)) .moment-img-item:first-child {
  grid-column: span 2; grid-row: span 2;
}
.detail-images { grid-template-columns: repeat(3, 1fr); }
.detail-images .detail-img-item { aspect-ratio: 1; overflow: hidden; }
.detail-images .detail-img-item img { width: 100%; height: 100%; object-fit: cover; }

/* 动态位置 */
.moment-location, .detail-moment-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 评论预览 */
.moment-comments-preview {
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
}
.moment-comment-row {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}
.moment-comment-row:last-child { margin-bottom: 0; }
.moment-comment-row strong { color: var(--primary); font-weight: 600; }
.moment-more-comments {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  padding-top: 4px;
}

/* 动态操作栏 */
.moment-actions {
  display: flex;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.moment-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.moment-action-btn:hover { background: var(--bg-base); color: var(--primary); }
.moment-action-btn.liked { color: var(--primary); font-weight: 600; }
.moment-action-btn span { font-size: 12px; }

/* 发布动态弹窗 */
.publish-moment-content {
  padding: 4px 0 12px;
  max-height: 72vh;
  overflow-y: auto;
}
.moment-location-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.moment-topic-tag {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.moment-topic-tag:hover { border-color: var(--primary); color: var(--primary); }
.moment-topic-tag.active {
  background: linear-gradient(135deg, rgba(255,77,141,0.1), rgba(139,92,246,0.1));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.moment-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.moment-upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.moment-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moment-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}
.moment-thumb-remove:hover { background: var(--danger); }
.moment-add-image-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 3;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.moment-add-image-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 动态详情弹窗 */
.moment-detail-modal {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 !important;
}
.detail-moment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.detail-moment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  background: #ffd6e7;
}
.detail-moment-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.detail-moment-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.detail-moment-text {
  padding: 0 16px 10px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
  word-break: break-word;
}
.detail-moment-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.detail-moment-location {
  padding: 0 16px 10px;
}
.detail-moment-stats {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 评论区 */
.moment-comments-section {
  flex: 1;
  overflow-y: auto;
  max-height: 40vh;
}
.moment-comments-title {
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px 8px;
  color: var(--text-primary);
}
.moment-comments-list {
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.moment-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffd6e7;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}
.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
  word-break: break-word;
}
.moment-comment-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  position: sticky;
  bottom: 0;
}
.moment-comment-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  background: var(--bg-base);
}
.moment-comment-input-bar input:focus { border-color: var(--primary); }

/* ====== 首页动态朋友圈轮播 ====== */
.moments-carousel-section {
  background: linear-gradient(135deg, rgba(255,77,141,0.04), rgba(139,92,246,0.04));
  border: 1px solid rgba(255,77,141,0.1);
}
.moments-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
}
.moments-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.moments-carousel-track::-webkit-scrollbar { display: none; }
.moments-carousel-prev, .moments-carousel-next {
  position: absolute;
  bottom: 8px;
  transform: translateY(0);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.moments-carousel-prev:hover, .moments-carousel-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.moments-carousel-prev { left: 6px; }
.moments-carousel-next { right: 6px; }

.mc-card {
  flex-shrink: 0;
  width: 240px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s;
}
.mc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #fadde2, #e9d5ff) border-box;
  box-shadow: 0 2px 8px rgba(219,112,147,0.15);
}
.mc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.mc-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.mc-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.mc-topic {
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(139,92,246,0.08));
  color: var(--primary);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.mc-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
}
.mc-stat {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mc-location {
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ====== 打赏系统 ====== */

/* 打赏弹窗内容 */
.tip-content {
  padding: 4px 0 12px;
}
.tip-target-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  margin: 0 16px 16px;
}
.tip-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 12px rgba(255,77,141,0.2);
}
.tip-target-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.tip-target-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 打赏金额网格 */
.tip-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.tip-amount-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: white;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.tip-amount-item:hover {
  border-color: rgba(255,77,141,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tip-amount-item.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255,77,141,0.06), rgba(192,132,252,0.06));
  box-shadow: 0 2px 12px rgba(255,77,141,0.15);
}
.tip-amount-item.selected::after {
  content: '\2713';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  color: white;
  background: var(--primary);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.tip-emoji {
  font-size: 24px;
  margin-bottom: 2px;
}
.tip-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.tip-amount-item.selected .tip-value {
  color: var(--primary);
}
.tip-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* 自定义金额 */
.tip-custom-amount {
  padding: 0 16px 12px;
}
.tip-custom-amount label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tip-input-row {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.tip-input-row:focus-within {
  border-color: var(--primary);
}
.tip-input-prefix {
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-base);
}
.tip-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: white !important;
  padding: 10px 12px 10px 0 !important;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

/* 留言 */
.tip-message-section {
  padding: 0 16px 12px;
}
.tip-message-section label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* 确认打赏按钮 */
.tip-submit-btn {
  background: linear-gradient(135deg, #ff4d8d, #ff80b5, #c084fc) !important;
  font-size: 16px !important;
  padding: 14px !important;
  box-shadow: 0 4px 20px rgba(255,77,141,0.35);
  transition: all 0.25s;
}
.tip-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,77,141,0.45);
}
.tip-submit-btn:active {
  transform: scale(0.98);
}
.tip-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 16px 0;
}

/* 打赏动画 */
.tip-animation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tip-animation-overlay.show {
  opacity: 1;
}
.tip-anim-content {
  text-align: center;
  color: white;
  transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tip-animation-overlay.show .tip-anim-content {
  transform: scale(1);
}
.tip-anim-emoji {
  font-size: 64px;
  animation: tipBounce 0.6s ease infinite alternate;
}
@keyframes tipBounce {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}
.tip-anim-amount {
  font-size: 36px;
  font-weight: 900;
  margin-top: 8px;
  text-shadow: 0 2px 20px rgba(255,77,141,0.5);
}
.tip-anim-text {
  font-size: 14px;
  margin-top: 4px;
  opacity: 0.9;
}
.tip-anim-particles {
  margin-top: 16px;
  font-size: 20px;
}
.tip-anim-particles span {
  display: inline-block;
  animation: tipFloat 1.5s ease-in-out infinite;
  margin: 0 6px;
}
.tip-anim-particles span:nth-child(1) { animation-delay: 0s; }
.tip-anim-particles span:nth-child(2) { animation-delay: 0.2s; }
.tip-anim-particles span:nth-child(3) { animation-delay: 0.4s; }
.tip-anim-particles span:nth-child(4) { animation-delay: 0.6s; }
.tip-anim-particles span:nth-child(5) { animation-delay: 0.8s; }
@keyframes tipFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-12px) scale(1.2); opacity: 0.6; }
}

/* 打赏记录 */
.tip-summary {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,77,141,0.06), rgba(245,158,11,0.06));
  border-radius: var(--radius-md);
  margin: 0 16px 12px;
}
.tip-summary-item {
  text-align: center;
}
.tip-summary-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.tip-received-num { color: var(--success) !important; }
.tip-sent-num { color: var(--danger) !important; }
.tip-summary-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.tip-summary-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.tip-history-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px 8px;
  background: var(--bg-base);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.tip-history-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.tip-history-tab.active {
  background: var(--gradient-primary);
  color: white;
}
.tip-history-list {
  padding: 0 16px 12px;
  max-height: 50vh;
  overflow-y: auto;
}
.tip-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.tip-history-item:last-child { border-bottom: none; }
.th-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.th-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.th-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.th-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.th-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 180px;
}
.th-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.th-amount {
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 12px;
}
.th-received { color: var(--success); }
.th-sent { color: var(--danger); }

/* 打赏排行榜 */
.tip-rank-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px 8px;
  background: var(--bg-base);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.tip-rank-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.tip-rank-tab.active {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}
.tip-rank-content {
  padding: 0 16px 12px;
  max-height: 50vh;
  overflow-y: auto;
}
.tip-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.tip-rank-item:last-child { border-bottom: none; }
.rank-pos {
  width: 28px;
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
}
.rank-top-1 .rank-pos { font-size: 22px; }
.rank-top-2 .rank-pos { font-size: 20px; }
.rank-top-3 .rank-pos { font-size: 18px; }
.rank-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f9c9d4, #e0b8ff, #c4b5fd) border-box;
  box-shadow: 0 2px 10px rgba(219,112,147,0.2);
}
.rank-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.rank-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.rank-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* 动态卡片中的打赏按钮 */
.tip-mini-btn {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(249,115,22,0.1));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tip-mini-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
