:root {
  --primary: #f04455;
  --primary-hover: #d93648;
  --primary-soft: #fff0f2;
  --green: #1d9b66;
  --blue: #3568d4;
  --ink: #202124;
  --muted: #6d7178;
  --subtle: #9da1a8;
  --line: #e5e7eb;
  --surface: #ffffff;
  --canvas: #f6f7f8;
  --canvas-strong: #eceff2;
  --shadow: 0 10px 35px rgba(20, 24, 32, 0.12);
  --max: 1320px;
  --nav-h: 60px;
  font-size: 14px;
}

/* ===== 响应式根字体 + 断点系统 ===== */
/* 移动优先：基础 14px */
/* 平板 */  @media (min-width: 768px) { :root { font-size: 15px; --nav-h: 64px; } }
/* 桌面 */  @media (min-width: 1024px) { :root { font-size: 16px; --nav-h: 68px; } }
/* 大屏 */  @media (min-width: 1440px) { :root { font-size: 16.5px; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ===== 触控友好：所有可点击元素最小44px ===== */
input, textarea, select, a, label { min-height: 44px; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { color: inherit; min-height: 44px; cursor: pointer; }
.icon-btn { min-height: 38px; min-width: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: #f0f2f4; }
.icon-btn svg { width: 20px; }
.icon-btn.small { width: 32px; height: 32px; }
[hidden] { display: none !important; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(53, 104, 212, 0.22);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}

.brand-name { font-size: 22px; font-weight: 800; }

.search-wrap { position: relative; }
.search-wrap > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f0f2f4;
  color: var(--ink);
  transition: background 160ms ease, border 160ms ease;
}

.search-wrap input:focus { background: #fff; border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(240,68,85,.08); }
.search-wrap .search-clear { position: absolute; top: 5px; right: 5px; }

.search-results {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-person,
.notif-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.search-person:hover, .notif-item:hover { background: var(--canvas); }
.search-person img, .notif-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.search-person strong, .notif-item strong { display: block; font-size: 14px; }
.search-person span, .notif-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-command,
.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 160ms ease;
}
.nav-command:active, .primary-btn:active, .secondary-btn:active { transform: translateY(1px); }
.nav-command, .primary-btn { border: 1px solid var(--primary); background: var(--primary); color: #fff; box-shadow: 0 1px 4px rgba(240,68,85,.18); }
.nav-command:hover, .primary-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 2px 8px rgba(240,68,85,.24); }
.secondary-btn { border: 1px solid var(--line); background: #fff; }
.secondary-btn:hover { background: var(--canvas); border-color: #ccd0d6; }
.danger-btn { border: 1px solid #f4c9cf; background: #fff6f7; color: #b52335; }
.danger-btn:hover { background: #ffe8ea; border-color: #e8a4af; }
.nav-command svg, .primary-btn svg, .secondary-btn svg { width: 17px; }

.danger-btn:hover { background: #ffe8ea; border-color: #e8a4af; }

.notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary);
}

.avatar-trigger {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.avatar-trigger:hover { border-color: #d9dde3; }
.avatar-trigger img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.popover {
  position: fixed;
  z-index: 70;
  top: 60px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.notifications-popover { width: min(390px, calc(100vw - 24px)); padding: 8px; }
.user-menu { width: 220px; padding: 8px; }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 12px; }
.popover-head h3 { margin: 0; font-size: 16px; }
.menu-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
}
.menu-button:hover { background: var(--canvas); }
.menu-button svg { width: 18px; color: var(--muted); }
.menu-divider { border: 0; border-top: 1px solid var(--line); margin: 7px 0; }

#app { min-height: calc(100vh - var(--nav-h)); }
.page { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 34px 0 70px; }
.page-narrow { max-width: 960px; }

/* ===== 首页头部 ===== */
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.feed-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.feed-title h1 {
  margin: 0;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feed-title p { margin: 6px 0 0; color: var(--subtle); font-size: 14px; }

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--canvas-strong);
}
.segmented button {
  min-width: 68px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* ===== 瀑布流 Masonry Layout ===== */
.feed-masonry {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 768px) { .feed-masonry { columns: 3; column-gap: 14px; } }
@media (min-width: 1024px) { .feed-masonry { columns: 4; column-gap: 16px; } }

/* ===== 人物卡片网格（40人展示） ===== */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
@media (min-width: 600px) { .user-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .user-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .user-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.user-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.33,1,.68,1), box-shadow 200ms ease;
}
.user-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(25,30,38,0.10); }

.user-card-top {
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
  min-height: 80px;
  display: flex;
  justify-content: center;
  padding-top: 28px;
}
.user-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.user-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.user-card .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: #ccc;
}
.user-card .online-dot.online { background: var(--green); }

.user-card-diamond {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 650;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.user-card-body {
  padding: 12px 12px 14px;
  text-align: center;
}
.user-card-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.user-card-name strong { font-size: 14px; }
.gender-m { color: #3568d4; font-size: 13px; }
.gender-f { color: var(--primary); font-size: 13px; }
.user-card-city {
  font-size: 11px;
  color: var(--subtle);
  background: var(--canvas);
  padding: 1px 6px;
  border-radius: 4px;
}

.user-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}
.user-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
}

.user-card-bio {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.user-card-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--subtle);
}

.user-card-action {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--primary);
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
}

.load-more-wrap {
  text-align: center;
  padding: 24px 0 12px;
}
.load-more-wrap .secondary-btn {
  min-width: 200px;
}

/* ===== 照片卡片（Hernes规范版） ===== */
.photo-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(22, 28, 36, 0.04);
  transition: transform 200ms cubic-bezier(.33,1,.68,1), box-shadow 200ms ease;
  cursor: pointer;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(25, 30, 38, 0.10);
}

/* ── 照片区域：3:4竖版 ── */
.photo-open {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #edeff2;
  overflow: hidden;
}
.photo-open img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 300ms ease;
}
.photo-card:hover .photo-open img { transform: scale(1.02); }

/* ── 城市标签 ── */
.location-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 140ms ease;
}
.location-badge:hover { transform: scale(1.04); }

/* ── 信息栏（用户名 + 钻石） ── */
.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 4px;
  gap: 8px;
}
.card-user {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.card-user .gender-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.card-user .gender-icon.m { color: #3568d4; }
.card-user .gender-icon.f { color: #f04455; }
.card-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

/* ── 钻石勋章胶囊 ── */
.diamond-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.15);
  font-size: 14px;
  font-weight: 700;
  color: #b8860b;
  white-space: nowrap;
  flex-shrink: 0;
}
.diamond-badge .diamond-icon {
  font-size: 13px;
}
.diamond-badge .diamond-amount {
  color: #FFD700;
  font-weight: 800;
  font-size: 15px;
}

.unlock-price-label {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  margin-left: 4px;
  line-height: 1.4;
}

/* ── 互动按钮栏 ── */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 10px;
  gap: 12px;
}
.action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #999;
  transition: color 180ms ease;
  min-height: auto;
}
.action-btn svg, .action-btn .action-icon {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease;
}

/* ── 点赞按钮 ── */
.like-btn { color: #999; }
.like-btn.liked { color: #FF4757; }
.like-btn.liked svg { fill: #FF4757; }

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.like-btn.pop .action-icon {
  animation: heartPop 300ms ease;
}

/* ── 收藏按钮 ── */
.fav-btn { color: #999; }
.fav-btn.faved { color: #FFD700; }
.fav-btn.faved svg { fill: #FFD700; }

@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); filter: brightness(1.5); }
  100% { transform: rotate(360deg) scale(1); }
}
.fav-btn.spin .action-icon {
  animation: starSpin 400ms ease;
}

/* ===== 照片卡旧区域（保留兼容） ===== */
.photo-meta, .photo-caption, .photo-overlay {
  display: none;
}

/* ===== 50选1抢号宫格 ===== */
.account-grid  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; max-height: 340px; overflow-y: auto; }
.account-cell  { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; font-family: "Courier New", monospace; color: var(--ink); transition: all 120ms ease; position: relative; min-height: 44px; }
.account-cell:hover { border-color: #bbb; background: var(--canvas); }
.account-cell.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 2px rgba(240,68,85,.15); }
.account-cell.premium { border-color: #fbbf24; background: linear-gradient(135deg, #fefce8, #fef3c7); color: #92400e; }
.account-cell.premium:hover { border-color: #f59e0b; }
.account-cell.premium.selected { border-color: #f59e0b; background: linear-gradient(135deg, #fde68a, #fbbf24); color: #78350f; }
.premium-badge { position: absolute; top: -3px; right: -3px; padding: 1px 4px; border-radius: 3px; background: #f59e0b; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.3; }

.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.empty-state svg { width: 44px; height: 44px; margin-bottom: 12px; color: var(--subtle); }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); }
.empty-state p { margin: 0 0 18px; }

.profile-page { padding-top: 22px; }
.profile-cover {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: #27313d;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,23,30,.48), transparent 65%); }
.profile-summary { position: relative; display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: end; margin: -72px 34px 0; }
.profile-avatar { position: relative; z-index: 2; width: 144px; height: 144px; border: 6px solid var(--surface); border-radius: 50%; object-fit: cover; background: #fff; }
.profile-identity { padding-top: 84px; }
.profile-identity h1 { margin: 0; font-size: 29px; }
.username { color: var(--muted); font-size: 14px; }
.profile-actions { padding-bottom: 8px; display: flex; gap: 10px; }
.profile-info { margin: 24px 34px 0 184px; max-width: 720px; }
.profile-info p { line-height: 1.7; margin: 12px 0; }
.profile-facts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.profile-facts span { display: inline-flex; align-items: center; gap: 6px; }
.profile-facts svg { width: 16px; }
.stats-row { display: flex; gap: 28px; margin: 18px 0; }
.stat strong { font-size: 18px; display: block; }
.stat span { color: var(--muted); font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 5px; background: var(--canvas-strong); color: #4f555d; font-size: 13px; }
.section-line { margin: 34px 0 18px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; margin: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.profile-grid button { padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: #e8eaed; cursor: pointer; aspect-ratio: 1; }
.profile-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.profile-grid button:hover img { transform: scale(1.025); }

/* 照片审核状态标签 */
.review-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
  line-height: 1.6;
}
.review-badge.pending {
  background: #fef3c7;
  color: #92400e;
}
.review-badge.rejected {
  background: #fce4ec;
  color: #c62828;
}

.card-view { max-width: 780px; margin: 0 auto; }
.card-cover { height: 180px; border-radius: 8px 8px 0 0; overflow: hidden; background: #222b36; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.card-body { margin-top: -1px; border: 1px solid var(--line); border-top: 0; background: #fff; padding: 0 38px 36px; }
.card-person { display: flex; align-items: end; gap: 18px; transform: translateY(-46px); margin-bottom: -20px; }
.card-person img { width: 100px; height: 100px; border: 5px solid white; border-radius: 50%; object-fit: cover; }
.card-person h1 { margin: 0 0 5px; font-size: 25px; }
.info-section { padding: 22px 0; border-top: 1px solid var(--line); }
.info-section:first-of-type { border-top: 0; }
.info-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; font-size: 16px; }
.info-section h3 svg { width: 18px; color: var(--primary); }
.member-label { margin-left: 2px; padding: 4px 7px; border-radius: 4px; background: #fff1d5; color: #9b6415; font-size: 11px; font-weight: 700; }
.contact-section { background: #fffaf1; border: 1px solid #f3e3bd; border-radius: 7px; padding: 20px; }
.contact-section h3 { margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-item { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 12px; border: 1px solid #f0dfbb; border-radius: 6px; background: #fff; }
.contact-item > svg { grid-row: span 2; width: 19px; color: #a76a16; }
.contact-item span { color: var(--muted); font-size: 12px; }
.contact-item strong { font-size: 14px; margin-top: 3px; }
.contact-locked { display: flex; align-items: center; gap: 13px; }
.lock-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff0d0; color: #a76a16; }
.lock-icon svg { width: 19px; }
.contact-locked strong { display: block; font-size: 14px; }
.contact-locked p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-locked .primary-btn { margin-left: auto; white-space: nowrap; }
.membership-modal { width: min(560px, 100%); }
.membership-hero { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 7px; background: linear-gradient(135deg, #fff4dd, #fffaf2); }
.membership-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f1b84b; color: #fff; }
.membership-icon svg { width: 22px; }
.membership-hero strong { display: block; font-size: 16px; }
.membership-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.membership-benefits { display: grid; gap: 10px; margin: 20px 0; }
.membership-benefits > div { display: flex; align-items: center; gap: 11px; padding: 10px; border-bottom: 1px solid var(--line); }
.membership-benefits > div:last-child { border-bottom: 0; }
.membership-benefits svg { width: 19px; color: var(--primary); }
.membership-benefits strong, .membership-benefits small { display: block; }
.membership-benefits strong { font-size: 13px; }
.membership-benefits small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.membership-price { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.membership-price span { color: var(--muted); font-size: 13px; }
.membership-price strong { font-size: 22px; color: var(--primary); }
.membership-price small { margin-left: auto; color: var(--subtle); font-size: 11px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.info-pair { display: flex; gap: 10px; font-size: 14px; }
.info-pair span:first-child { min-width: 58px; color: var(--muted); }
.back-row { margin-bottom: 16px; }

.auth-shell { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1.15fr .85fr; background: #fff; }
.auth-visual { position: relative; min-height: 650px; overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,20,28,.68), rgba(13,20,28,.04) 62%); }
.auth-message { position: absolute; z-index: 2; left: 54px; bottom: 50px; max-width: 530px; color: #fff; }
.auth-message h1 { margin: 0 0 12px; font-size: 44px; }
.auth-message p { margin: 0; font-size: 17px; line-height: 1.65; }
.auth-panel { display: grid; place-items: center; padding: 42px; }
.auth-box { width: min(100%, 410px); }
.auth-box .brand { margin-bottom: 34px; }
.auth-box h2 { font-size: 27px; margin: 0 0 7px; }
.auth-box > p { margin: 0 0 25px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button { height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { border-color: var(--primary); color: var(--ink); font-weight: 700; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #8ea6d8; outline: none; box-shadow: 0 0 0 3px rgba(53,104,212,.1); }
.field-help { color: var(--muted); font-size: 12px; }
.field-hint { display: block; font-size: 11px; color: var(--subtle); margin-top: 4px; }
.full-btn { width: 100%; margin-top: 8px; }
.demo-note { margin-top: 18px; padding: 12px; border-radius: 6px; background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 1.6; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(18, 22, 28, 0.64);
  backdrop-filter: blur(8px);
  animation: fadeIn 160ms ease;
}
.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  animation: scaleIn 180ms ease;
}
.modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.photo-modal { width: min(1180px, 100%); height: min(780px, calc(100vh - 56px)); overflow: hidden; }
.photo-modal-layout { height: 100%; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); }
.photo-stage { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; background: #111418; }
.photo-stage > img { width: 100%; height: 100%; max-height: calc(100vh - 56px); object-fit: contain; }
.modal-float-close { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); }
.photo-side { min-height: 0; display: grid; grid-template-rows: auto auto auto 1fr auto; background: #fff; }
.photo-user { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid var(--line); }
.photo-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.photo-user button { margin-left: auto; }
.photo-description { padding: 16px 18px; line-height: 1.65; font-size: 14px; }
.photo-stats { display: flex; gap: 18px; padding: 0 18px 14px; color: var(--muted); font-size: 13px; }
.comment-list { overflow: auto; border-top: 1px solid var(--line); padding: 14px 18px; }
.comment { display: flex; gap: 9px; padding: 8px 0; }
.comment img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.comment-body { min-width: 0; }
.comment-body strong { font-size: 13px; }
.comment-body p { margin: 3px 0 2px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.comment-body time { color: var(--subtle); font-size: 11px; }
.comment-form { display: grid; grid-template-columns: 1fr 40px; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.comment-form input { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 9px 13px; }
.comment-form button { color: var(--primary); }

.upload-zone {
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #bcc3cc;
  border-radius: 7px;
  background: var(--canvas);
  text-align: center;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone svg { width: 34px; height: 34px; margin-bottom: 10px; color: var(--muted); }
.upload-zone p { margin: 0 0 5px; font-weight: 650; }
.upload-zone span { color: var(--muted); font-size: 12px; }
.upload-preview { position: relative; overflow: hidden; border-radius: 7px; background: #101318; }
.upload-preview img { width: 100%; max-height: 340px; object-fit: contain; margin: auto; }

.toast-stack { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { min-width: 250px; max-width: 360px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 13px 15px; box-shadow: var(--shadow); animation: slideUp 180ms ease; }
.toast svg { width: 18px; color: var(--green); }
.mobile-nav { display: none; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.975); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1050px) {
  .topbar-inner { grid-template-columns: 150px minmax(220px, 1fr) auto; gap: 18px; }
  .feed-masonry { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-summary { grid-template-columns: 130px 1fr; }
  .profile-avatar { width: 126px; height: 126px; }
  .profile-actions { grid-column: 2; }
  .profile-info { margin-left: 164px; }
}

/* ===== 移动端 760px 及以下（单列瀑布流） ===== */
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { padding-bottom: 66px; }
  .topbar-inner { width: calc(100% - 24px); grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand-name, .nav-command span { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-command { width: 40px; padding: 0; }
  .notif-trigger, .avatar-trigger { display: none; }
  .search-wrap input { height: 38px; font-size: 13px; }
  .page { width: calc(100% - 24px); padding-top: 20px; }
  .feed-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; padding-bottom: 14px; }
  .feed-head::after { width: 48px; }
  .feed-title h1 { font-size: 24px; }
  .feed-title p { font-size: 13px; }
  .feed-masonry { column-gap: 8px; }
  .user-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .user-card { border-radius: 10px; }
  .photo-card { margin-bottom: 8px; border-radius: 10px; }
  .card-info { padding: 8px 10px 2px; }
  .card-user-name { font-size: 13px; max-width: 70px; }
  .diamond-badge { padding: 2px 7px; border-radius: 10px; }
  .diamond-icon { font-size: 11px; }
  .diamond-amount { font-size: 13px; }
  .card-actions { padding: 2px 10px 8px; }
  .action-btn { font-size: 12px; }
  .action-btn .action-icon { width: 18px; height: 18px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; }
  .board-nav { gap: 6px; margin-bottom: 16px; padding-bottom: 0; overflow-x: auto; }
  .board-pill { min-height: 30px; padding: 0 10px; font-size: 12px; gap: 4px; }
  .board-pill small { display: none; }
  .board-more { width: 30px; height: 30px; }
  .board-picker-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 14px; }
  .board-card { padding: 10px 6px; }
  .mobile-nav { position: fixed; z-index: 60; inset: auto 0 0; height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
  .mobile-nav svg { width: 20px; }
  .profile-cover { height: 180px; }
  .profile-summary { grid-template-columns: 88px 1fr; gap: 14px; margin: -48px 14px 0; align-items: start; }
  .profile-avatar { width: 88px; height: 88px; border-width: 4px; }
  .profile-identity { padding-top: 51px; }
  .profile-identity h1 { font-size: 22px; }
  .profile-actions { grid-column: 1 / -1; padding: 0; }
  .profile-info { margin: 20px 14px 0; }
  .stats-row { gap: 20px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-modal { height: calc(100vh - 20px); max-height: none; }
  .photo-modal-layout { overflow: auto; display: block; }
  .photo-stage { height: 52vh; min-height: 320px; }
  .photo-side { position: relative; z-index: 2; display: block; }
  .comment-list { max-height: 280px; }
  .auth-shell { display: block; min-height: calc(100vh - var(--nav-h)); }
  .auth-visual { height: 220px; min-height: 0; }
  .auth-message { left: 24px; bottom: 22px; right: 24px; }
  .auth-message h1 { font-size: 29px; }
  .auth-message p { font-size: 14px; }
  .auth-panel { padding: 30px 20px; }
  .auth-box .brand { display: none; }
  .modal-backdrop { padding: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card-body { padding: 0 22px 26px; }
  .info-grid { grid-template-columns: 1fr; }
  .popover { right: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-locked { align-items: flex-start; flex-wrap: wrap; }
  .contact-locked .primary-btn { width: 100%; margin-left: 55px; }
  .membership-price { flex-wrap: wrap; }
  .membership-price small { width: 100%; margin-left: 0; }
}

/* ===== 城市板块导航 ===== */
.board-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.board-nav::-webkit-scrollbar { display: none; }
.board-nav:not(:hover) { scroll-behavior: smooth; }

.board-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.board-pill:hover {
  border-color: #d0d4dc;
  background: var(--canvas);
  color: var(--ink);
}
.board-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.board-pill .board-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.board-pill small {
  font-size: 10px;
  opacity: .65;
  margin-left: 1px;
}
.board-pill.active small { opacity: .8; }

.board-more {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 150ms ease;
}
.board-more:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.board-more svg { width: 16px; }

/* ===== 城市标签（照片卡/个人主页/搜索页） ===== */
.location-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 140ms ease;
}
.location-badge:hover { transform: scale(1.04); }
.location-dot { flex-shrink: 0; }

.city-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== 板块选择器弹窗 ===== */
.board-picker-modal { max-width: 680px; }
.board-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 18px 20px;
}
.board-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 160ms ease;
}
.board-card:hover {
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.board-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.board-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.board-card-badge.all {
  background: var(--ink);
  font-size: 12px;
}
.board-card-count {
  font-size: 11px;
  color: var(--subtle);
}

/* ── 旧版分类标签（保留向后兼容） ── */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0f4ff;
  color: #3568d4;
  font-size: 11px;
  font-weight: 650;
}
.photo-open { position: relative; }

@media (max-width: 390px) {
  .topbar-inner { width: calc(100% - 16px); }
  .page { width: calc(100% - 16px); }
  .feed-masonry { column-gap: 6px; }
  .user-grid { grid-template-columns: 1fr; gap: 8px; }
  .photo-card { margin-bottom: 6px; border-radius: 8px; }
  .author-link span { max-width: 74px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
}

/* ── Diamond Economy ── */
.diamond-balance-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef7e6 0%, #fff8ec 100%);
  border: 1px solid #f5e6c6;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.diamond-balance-bar i { color: #f5a623; width: 20px; height: 20px; }
.diamond-balance-bar strong { color: #c97d0e; }

.menu-diamond-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef7e6 0%, #fff8ec 100%);
  border-radius: 8px;
  margin: 4px 8px;
  font-size: 13px;
  color: #7a6000;
}
.menu-diamond-header i { color: #f5a623; width: 16px; height: 16px; }
.menu-diamond-header strong { color: #c97d0e; font-size: 15px; }

.recharge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recharge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
}
.recharge-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(240, 68, 85, 0.12);
  transform: translateY(-2px);
}
.recharge-card .recharge-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.recharge-card .recharge-diamonds {
  font-size: 16px;
  font-weight: 600;
  color: #c97d0e;
}
.recharge-card .recharge-rate {
  font-size: 11px;
  color: var(--subtle);
}

.cashout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.cashout-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.cashout-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cashout-stat strong { font-size: 18px; color: var(--ink); }

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 150ms ease;
}
.rank-item:hover { border-color: #d0d4dc; }
.rank-item.rank-self {
  background: linear-gradient(135deg, #fff8ec 0%, #fef7e6 100%);
  border-color: #f5e6c6;
}
.rank-medal { font-size: 18px; width: 28px; text-align: center; }
.rank-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rank-name { flex: 1; font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-diamonds { font-weight: 600; font-size: 14px; color: #c97d0e; white-space: nowrap; }
.rank-cash { font-size: 12px; color: var(--subtle); white-space: nowrap; }

.back-row { margin-bottom: 16px; }
.back-row .secondary-btn { padding: 6px 14px; font-size: 13px; }

.page-narrow { max-width: 480px; margin: 0 auto; }

.contact-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #faf8f5;
  border: 1px dashed var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.contact-locked .lock-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fef2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-locked .lock-icon i { color: #c56e0a; width: 18px; height: 18px; }
.contact-locked strong { display: block; font-size: 14px; }
.contact-locked p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.contact-locked .primary-btn,
.contact-locked .secondary-btn {
  padding: 6px 14px;
  font-size: 12px;
  white-space: nowrap;
}

.field-help { display: block; font-size: 11px; color: var(--subtle); margin-top: 4px; }

/* ===== 联系方式价格标签 ===== */
.contact-price-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ===== 解锁按钮 ===== */
.unlock-btn {
  width: 100%;
  margin-top: 12px;
}

/* ===== 锁定态联系方式框 ===== */
.locked-contact {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.locked-contact .lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-alt);
  margin: 0 auto 12px;
}

.locked-contact .lock-icon i {
  width: 24px;
  height: 24px;
  color: var(--subtle);
}

.locked-contact strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.locked-contact p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

/* ===== 充值凭证输入 ===== */
.voucher-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.voucher-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ===== 提现银行信息表单 ===== */
.bank-fields {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

/* ===== 交易流水页面 ===== */
.tx-header-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-other {
  font-weight: 600;
  font-size: 14px;
}

.tx-time {
  font-size: 12px;
  color: var(--subtle);
}

.tx-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-cost {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

.tx-fee {
  font-size: 11px;
  color: var(--subtle);
}

.tx-earn {
  font-size: 14px;
  font-weight: 700;
}

/* ===== 用户菜单钻石头 ===== */
.menu-diamond-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--warning);
}

.menu-diamond-header i {
  width: 18px;
  height: 18px;
  color: var(--warning);
}

.menu-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 10px;
}

/* ===== admin价格标签 ===== */
.pill-blue {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #3b82f6 !important;
}

/* ===== 推广中心 ===== */
.referral-code-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.referral-code-box label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.referral-code-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
  user-select: all;
}
.referral-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.referral-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.team-level h4 {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.team-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.team-person:last-child {
  border-bottom: none;
}
.team-person img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.team-person div strong {
  display: block;
  font-size: 14px;
}
.team-person div small {
  font-size: 12px;
  color: var(--muted);
}
.reward-table {
  display: flex;
  flex-direction: column;
}
.reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.reward-row:last-child {
  border-bottom: none;
}
.reward-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reward-from {
  font-size: 13px;
  color: var(--muted);
}
.reward-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.reward-meta time {
  color: var(--subtle);
  font-size: 12px;
}
.tip {
  font-size: 13px;
  color: var(--muted);
  background: rgba(var(--primary-rgb, 99,102,241), 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .referral-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .referral-team {
    grid-template-columns: 1fr;
  }
}

/* ===== 钻石顶部栏 ===== */
.diamond-topbar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.30), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 200ms ease;
  letter-spacing: 0.3px;
}
.diamond-topbar::before {
  content: "💎";
  font-size: 15px;
  line-height: 1;
}
.diamond-topbar:hover {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.40);
  transform: scale(1.04);
}
.diamond-topbar strong {
  font-size: 14px;
  color: #78350f;
}
.diamond-topbar:hover {
  background: linear-gradient(135deg, #feebc8, #fde68a);
  box-shadow: 0 4px 14px rgba(183, 121, 31, 0.25);
  transform: scale(1.05);
}
.diamond-topbar strong { font-size: 15px; }
.diamond-topbar svg { width: 18px; height: 18px; }

/* ===== 钻石余额（个人主页/名片） ===== */
.diamond-profile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef5e7, #fdebd0);
  color: #b7791f;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(183, 121, 31, 0.12);
}

.account-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #3568d4;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

/* ===== 照片卡钻石权重标识 ===== */
.photo-diamond {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef5e7, #fdebd0);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(183, 121, 31, 0.10);
}

/* ===== 热度排名小标签 ===== */
.rank-heat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--canvas-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}
.rank-heat.hot {
  background: #fef2f2;
  color: #dc2626;
}
.rank-heat.warm {
  background: #fffbeb;
  color: #d97706;
}

.contact-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.contact-row select {
  flex: 0 0 110px;
}
.contact-row input {
  flex: 1;
}

/* ===== 模糊联系方式 ===== */
.contact-masked {
  color: var(--subtle);
  letter-spacing: 2px;
  font-family: monospace;
}
.contact-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-grid {
  display: flex;
  flex-direction: column;
}

/* ===== 充值套餐卡片 ===== */
.recharge-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.package-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb, 99, 102, 241), 0.15);
  transform: translateY(-2px);
}
.package-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.package-diamonds {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.package-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.package-bonus {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===== 充值流程 ===== */
.recharge-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 24px;
  font-size: 13px;
}
.recharge-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}
.recharge-step.active {
  color: var(--ink);
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.recharge-step .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.recharge-step.active .step-num {
  background: var(--primary);
  color: #fff;
}
.recharge-step-connector {
  width: 24px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}

.recharge-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 16px;
}
.recharge-qr-area img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.recharge-qr-area .qr-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.recharge-qr-area .qr-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.recharge-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: all 200ms ease;
  margin: 16px 0;
}
.recharge-upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.recharge-upload-area.has-image {
  border-style: solid;
  border-color: var(--primary);
}
.recharge-upload-area .upload-icon {
  font-size: 40px;
  opacity: 0.5;
}
.recharge-upload-area .upload-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.recharge-upload-area .upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}
.recharge-upload-area input[type="file"] {
  display: none;
}

.recharge-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 16px 0;
}
.recharge-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.recharge-summary-row .label {
  color: var(--muted);
}
.recharge-summary-row .value {
  font-weight: 600;
  color: var(--ink);
}
.recharge-summary-row .value.primary {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}
.recharge-summary-row.total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.recharge-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}
.recharge-success .success-icon {
  font-size: 64px;
}
.recharge-success h2 {
  font-size: 24px;
  font-weight: 700;
}
.recharge-success p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.recharge-plans {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
@media (max-width: 500px) {
  .recharge-plans { grid-template-columns: 1fr 1fr; }
}
.recharge-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
}
.recharge-plan-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(240, 68, 85, 0.1);
  transform: translateY(-2px);
}
.recharge-plan-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(240, 68, 85, 0.15);
}
.recharge-plan-card .plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.recharge-plan-card .plan-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.recharge-plan-card .plan-diamonds {
  font-size: 14px;
  color: var(--muted);
}
.recharge-plan-card .plan-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}
.recharge-plan-card .plan-diamonds strong {
  color: #c97d0e;
}
.recharge-plan-card .plan-bonus {
  font-size: 11px;
  font-weight: 600;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.recharge-plan-card input[type="radio"] {
  display: none;
}

/* ===== 三围展示 ===== */
.body-measurements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  padding: 12px 0;
}
.body-measurements .label {
  color: var(--muted);
  font-size: 12px;
}
.body-measurements .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== unlock按钮 ===== */
.unlock-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.06);
  border-radius: 12px;
  padding: 12px 16px;
}

/* ===== 相册 ===== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.album-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ===== 搜索筛选页面 ===== */
.search-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-filter-select {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.search-filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 99,102,241), 0.15);
}
.search-filter-select option {
  color: var(--ink);
  background: var(--surface);
}
.search-user-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 150ms ease;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
}
.search-user-card:hover {
  border-color: #d0d4dc;
  background: #fafbff;
}
.search-user-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-user-info strong {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-user-info span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-user-info .category-badge {
  font-size: 11px;
  margin-top: 2px;
  align-self: flex-start;
}
.search-user-diamond {
  font-size: 13px;
  font-weight: 600;
  color: #c97d0e;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 聊天/私信 ===== */
.chat-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 12px;
}
.chat-list-head h2 {
  margin: 0;
  font-size: 22px;
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}
.chat-list-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.chat-list-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.chat-list-info {
  flex: 1;
  min-width: 0;
}
.chat-list-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.chat-list-msg {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-time {
  font-size: 11px;
  color: var(--subtle);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}
.chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.chat-unread {
  background: var(--primary-soft);
}

/* ===== 聊天界面 ===== */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h) - 80px);
  min-height: 300px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-head span {
  font-size: 16px;
  font-weight: 600;
}
.chat-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-radius: 6px;
}
.chat-back:hover {
  color: var(--ink);
  background: var(--canvas);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 85%;
}
.msg-other {
  align-self: flex-start;
}
.msg-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.msg-mine .msg-bubble-wrap {
  align-items: flex-end;
}
.msg-bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  max-width: 320px;
}
.msg-other .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.msg-mine .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 11px;
  color: var(--subtle);
  padding: 0 4px;
}
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 2px;
}
.msg-read {
  font-size: 11px;
  line-height: 1;
}
.msg-read.read-yes {
  color: var(--blue);
}
.msg-read.read-no {
  color: var(--subtle);
}
.chat-empty {
  text-align: center;
  color: var(--subtle);
  font-size: 14px;
  padding: 40px 0;
}
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  align-items: center;
}
.chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(240, 68, 85, 0.12);
}
.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

/* ===== 菜单未读标记 ===== */
.menu-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}

/* ===== 拉新排行榜 ===== */
.referral-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.referral-header h2 {
  margin: 0;
  font-size: 22px;
}
.referral-tabs {
  display: flex;
  gap: 8px;
}
.referral-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.referral-tab:hover {
  background: var(--canvas);
}
.referral-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* 里程碑卡片 */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.milestone-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  transition: box-shadow 0.2s;
}
.milestone-card:hover {
  box-shadow: var(--shadow);
}
.milestone-card .milestone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.milestone-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.milestone-card .milestone-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.milestone-card .milestone-reward {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.milestone-card .milestone-btn {
  padding: 8px 0;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.milestone-card .milestone-btn:disabled {
  background: var(--canvas-strong);
  color: var(--subtle);
  cursor: not-allowed;
}
.milestone-card .milestone-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}
.milestone-card .milestone-claimed {
  padding: 8px 0;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* 进度条（类似等级进度条） */
.referral-progress {
  margin: 20px 0 28px;
}
.referral-progress .progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.referral-progress .progress-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--canvas-strong);
  overflow: hidden;
  position: relative;
}
.referral-progress .progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary), #ff7a8a);
  transition: width 0.5s ease;
}
.referral-progress .progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.referral-progress .progress-step {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--canvas-strong);
  border: 2px solid var(--line);
  position: relative;
}
.referral-progress .progress-step.reached {
  background: var(--primary);
  border-color: var(--primary);
}

/* 排行榜 */
.referral-rank-list {
  display: grid;
  gap: 11px;
}
.referral-rank-item {
  display: grid;
  grid-template-columns: 30px 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.referral-rank-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.referral-rank-item .rank-no {
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}
.referral-rank-item .rank-no.gold { color: #f5b342; }
.referral-rank-item .rank-no.silver { color: #a8b0bc; }
.referral-rank-item .rank-no.bronze { color: #cd7f32; }
.referral-rank-item .rank-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.referral-rank-item .rank-copy {
  min-width: 0;
}
.referral-rank-item .rank-copy strong,
.referral-rank-item .rank-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.referral-rank-item .rank-copy strong {
  font-size: 14px;
}
.referral-rank-item .rank-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.referral-rank-item .referral-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.referral-rank-item .referral-count svg {
  width: 16px;
}

@media (max-width: 700px) {
  .milestone-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-rank-item { grid-template-columns: 24px 34px 1fr auto; padding: 6px 8px; }
  .referral-rank-item .rank-avatar { width: 30px; height: 30px; }
}

/* ── 推荐页 ── */
.recommend-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.recommend-card { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; transition:all 180ms ease; }
.recommend-card:hover { border-color:var(--primary); box-shadow:0 3px 16px rgba(240,68,85,.10); transform:translateY(-1px); }
.recommend-avatar { width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid #fff; box-shadow:0 0 0 1px var(--line); }
.recommend-info { flex:1; min-width:0; }
.recommend-info strong { display:block; font-size:15px; }
.recommend-info span { display:block; margin-top:2px; color:var(--muted); font-size:13px; }
.recommend-info small { display:block; margin-top:4px; color:var(--subtle); font-size:11px; }
.recommend-diamond { color:var(--primary); font-weight:650; font-size:14px; flex-shrink:0; }
.like-user-btn { border:0; background:transparent; font-size:20px; cursor:pointer; padding:4px 8px; border-radius:6px; color:var(--subtle); transition:all .2s; }
.like-user-btn:hover { background:var(--primary-soft); color:var(--primary); transform:scale(1.1); }
.like-user-btn.liked { color:var(--primary); }
.like-user-btn svg { width:22px; height:22px; }
.like-user-btn.liked svg { fill:currentColor; }
.match-high { color:#1d9b66; font-weight:650; }
.match-mid { color:#f59e0b; font-weight:650; }
.match-low { color:var(--subtle); }

/* ===== 人气王排行榜Banner ===== */
.rank-banner {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 30%, #1a0a2e 100%);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(120, 50, 200, 0.15);
}
.rank-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,140,0,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,50,50,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.rank-banner-loading {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
  padding: 6px 0;
}
.rank-banner-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.rank-banner-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  font-size: 12px;
}
.rank-banner-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,140,0,0.25);
}
.rank-banner-item img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,200,50,0.4);
  flex-shrink: 0;
}
.rank-banner-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  min-width: 0;
}
.rank-banner-name {
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}
.rank-banner-badge {
  font-size: 10px;
  line-height: 1;
}
.rank-banner-scroll {
  text-align: center;
  color: rgba(255,215,0,0.7);
  font-size: 10px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  animation: rankPulse 2s ease-in-out infinite;
}

@keyframes rankPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== 个人排名卡片 ===== */
.profile-rank-card {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 4px 20px rgba(120, 50, 200, 0.12);
}
.rank-card-loading {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
}
.rank-card-header {
  color: rgba(255,215,0,0.9);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.rank-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rank-card-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rank-card-number {
  font-size: 20px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}
.rank-card-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.rank-card-stats span {
  white-space: nowrap;
}
.rank-card-stats strong {
  color: #ffd700;
  font-weight: 700;
}

/* ===== 火焰徽章动画 ===== */
.rank-banner-badge,
.rank-card-rank {
  animation: flameFlicker 1.5s ease-in-out infinite;
}
@keyframes flameFlicker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== 人气排行榜全页 ===== */
.rank-heat-page .rank-list { margin-top: 10px; }
.rank-heat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 150ms ease;
}
.rank-heat-item:hover { border-color: #d0d4dc; }
.rank-heat-item.rank-self {
  background: linear-gradient(135deg, #fff8ec 0%, #fef7e6 100%);
  border-color: #f5e6c6;
}
.rank-heat-rank {
  font-size: 16px;
  font-weight: 800;
  width: 28px;
  text-align: center;
  color: var(--subtle);
}
.rank-heat-rank.gold { color: #ff6b35; }
.rank-heat-rank.silver { color: #a8b0bc; }
.rank-heat-rank.bronze { color: #cd7f32; }
.rank-heat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rank-heat-info { flex: 1; min-width: 0; }
.rank-heat-info strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-heat-info span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.rank-heat-score {
  font-weight: 700;
  font-size: 15px;
  color: #ff6b35;
  white-space: nowrap;
  text-align: right;
}
.rank-heat-badge {
  font-size: 14px;
  width: 36px;
  text-align: center;
  animation: flameFlicker 1.5s ease-in-out infinite;
}
.rank-card-stats span:first-child strong { color: #ff6b35; }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .rank-banner { padding: 10px 12px; }
  .rank-banner-item { padding: 3px 10px 3px 3px; font-size: 11px; }
  .rank-banner-item img { width: 22px; height: 22px; }
  .rank-banner-name { max-width: 40px; font-size: 10px; }
  .rank-banner-badge { font-size: 9px; }
  .profile-rank-card { padding: 12px; }
  .rank-card-stats { gap: 6px; font-size: 10px; }
  .rank-card-number { font-size: 16px; }
  .rank-heat-item { padding: 8px 10px; }
  .rank-heat-avatar { width: 30px; height: 30px; }
}

/* ── 骨架屏 ── */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton { background: #eee; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200px 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton-card { break-inside: avoid; margin-bottom: 1rem; border-radius: 0.75rem; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.skeleton-card .skeleton-img { width: 100%; height: 220px; }
.skeleton-card .skeleton-body { padding: 0.75rem; }
.skeleton-card .skeleton-row { height: 0.875rem; margin-bottom: 0.5rem; border-radius: 3px; }
.skeleton-card .skeleton-row:last-child { width: 60%; margin-bottom: 0; }
.skeleton-avatar { width: 3rem; height: 3rem; border-radius: 50%; flex-shrink: 0; }
.skeleton-text { height: 0.875rem; margin-bottom: 0.375rem; }
.skeleton-text-sm { height: 0.688rem; width: 70%; }
.skeleton-masonry {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 768px) { .skeleton-masonry { columns: 3; column-gap: 14px; } }
@media (min-width: 1024px) { .skeleton-masonry { columns: 4; column-gap: 16px; } }

/* ===== 响应式表格容器 ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap::-webkit-scrollbar { height: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: #d0d4dc; border-radius: 2px; }

/* ===== 响应式表单 ===== */
.form-responsive { display: grid; gap: 1rem; }
.form-responsive .field { display: grid; gap: 0.375rem; }
.form-responsive label { font-size: 0.813rem; font-weight: 650; min-height: auto; }
.form-responsive input,
.form-responsive textarea,
.form-responsive select { width: 100%; padding: 0.75rem; border: 1px solid #d9dde3; border-radius: 0.375rem; background: #fff; }
.form-responsive .field-row { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .form-responsive .field-row { grid-template-columns: 1fr 1fr; } }

/* ===== 千人千价：解锁价格标签 ===== */
.profile-unlock {
  margin: 16px 0;
  padding: 0;
}
.profile-unlock .unlock-header h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
}
.unlock-contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.unlock-contact-box .contact-masked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.unlock-contact-box .unlock-revealed {
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.unlock-contact-box .unlock-revealed p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.6;
}
.unlock-contact-box .unlock-btn {
  margin-top: 4px;
}

/* ===== 千人千价：编辑资料价格选择器 ===== */
.price-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.price-option {
  flex: 1;
  min-width: 60px;
  padding: 8px 6px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.price-option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.price-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ===== 个人主页：宽幅资料页与自然比例照片墙 ===== */
.profile-page-shell {
  width: min(calc(100% - 40px), 1180px);
  max-width: 1180px !important;
  margin: 0 auto;
}
.profile-page-shell .back-row { margin-bottom: 8px; }
.profile-page-shell .back-row .secondary-btn {
  min-height: 36px;
  color: var(--muted);
  background: rgba(255,255,255,.8);
}
.profile-page {
  padding-top: 0;
}
.profile-cover {
  height: clamp(165px, 18vw, 190px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20,24,32,.12);
}
.profile-page .profile-cover { display: none; }
.profile-cover::after {
  background: linear-gradient(90deg, rgba(15,20,28,.58), rgba(15,20,28,.08) 68%, transparent);
}
.profile-summary {
  grid-template-columns: 116px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  margin: 0 30px;
  padding: 24px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(20,24,32,.08);
}
.profile-avatar {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 112px;
  height: 112px;
  border-width: 4px;
  box-shadow: 0 5px 18px rgba(20,24,32,.16);
}
.profile-identity { grid-column: 2; grid-row: 1; padding-top: 0; min-width: 0; }
.profile-identity h1 { font-size: clamp(24px, 2.2vw, 32px); overflow-wrap: anywhere; }
.profile-bio { grid-column: 2; grid-row: 2; margin: 10px 0 0; max-width: 680px; color: #4f555d; line-height: 1.6; }
.profile-summary-tags { grid-column: 2; grid-row: 3; margin-top: 10px; }
.profile-actions { grid-column: 3; grid-row: 1 / span 3; align-self: center; padding-bottom: 0; flex-wrap: wrap; justify-content: flex-end; }
.profile-info {
  margin: 24px 30px 0;
  max-width: none;
}
.profile-info > p, .profile-info > .tag-row { display: none; }
.stats-row { gap: 38px; }
.stat strong { font-size: 21px; }
.profile-page .section-line { margin: 34px 30px 18px; }
.profile-page .section-heading { margin: 0 30px 18px; }
.profile-page .section-heading h2 { font-size: 21px; }
.profile-page .profile-grid {
  display: block;
  columns: 3;
  column-gap: 16px;
  margin: 0 30px;
}
.profile-page .profile-grid button {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0 0 16px;
  border-radius: 14px;
  break-inside: avoid;
  border: 1px solid rgba(229,231,235,.92);
  background: #edf0f2;
}
.profile-page .profile-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}
.profile-page .profile-grid button:hover img { transform: scale(1.018); }
.profile-page .profile-grid .profile-feature {
  column-span: all;
  margin-bottom: 20px;
  background: #14181d;
}
.profile-page .profile-grid .profile-feature img {
  max-height: 560px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .profile-page .profile-grid { columns: 2; }
  .profile-summary { margin-left: 20px; margin-right: 20px; }
  .profile-info, .profile-page .section-line, .profile-page .section-heading { margin-left: 20px; margin-right: 20px; }
  .profile-page .profile-grid { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 760px) {
  .profile-page-shell {
    width: calc(100% - 24px);
    max-width: none !important;
  }
  .profile-cover { height: 160px; border-radius: 14px; }
  .profile-summary {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    margin: 0 12px;
    padding: 18px 14px;
    border-radius: 14px;
  }
  .profile-avatar { grid-column: 1; grid-row: 1 / span 3; width: 84px; height: 84px; border-width: 3px; }
  .profile-identity { grid-column: 2; grid-row: 1; padding-top: 0; }
  .profile-identity h1 { font-size: 22px; }
  .profile-bio { grid-column: 2; grid-row: 2; margin-top: 8px; font-size: 13px; }
  .profile-summary-tags { grid-column: 2; grid-row: 3; margin-top: 8px; }
  .profile-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; padding-top: 12px; }
  .profile-info { margin: 18px 12px 0; }
  .profile-page .section-line, .profile-page .section-heading { margin-left: 12px; margin-right: 12px; }
  .profile-page .profile-grid { columns: 2; column-gap: 10px; margin: 0 12px; }
  .profile-page .profile-grid button { margin-bottom: 10px; border-radius: 10px; }
  .profile-page .profile-grid .profile-feature { margin-bottom: 12px; }
  .stats-row { gap: 24px; }
}

@media (max-width: 420px) {
  .profile-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  .profile-avatar { width: 74px; height: 74px; }
  .profile-identity { padding-top: 0; }
  .profile-identity h1 { font-size: 20px; }
  .profile-page .profile-grid { column-gap: 8px; }
}

/* Profile media collections */
.profile-public-head,
.profile-private-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 30px 16px; }
.profile-public-head h2,
.profile-private-head h2 { margin: 3px 0 4px; font-size: 22px; letter-spacing: 0; color: #1b2026; }
.profile-public-head p,
.profile-private-head p { margin: 0; color: #707780; font-size: 13px; }
.profile-kicker { color: #9a6a73; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.profile-private-zone { margin: 30px 20px 8px; padding: 4px 0 18px; border: 1px solid #eadfe1; border-radius: 14px; background: #fcf8f8; }
.profile-private-head { margin: 20px 20px 16px; align-items: center; }
.private-unlock-btn { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
.private-unlocked-label { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; color: #58715f; background: #edf6ef; font-size: 13px; font-weight: 600; }
.profile-private-grid { margin: 0 20px; }
.profile-private-empty { margin: 0 20px; padding: 28px 12px; border: 1px dashed #ddcdd0; border-radius: 10px; color: #8a767a; text-align: center; font-size: 13px; }
.profile-media-card { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; overflow: hidden; border-radius: 10px; background: #eceff1; cursor: pointer; break-inside: avoid; }
.profile-media-card img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform 220ms ease, filter 220ms ease; }
.profile-media-card:hover img { transform: scale(1.02); }
.profile-media-item { break-inside: avoid; margin: 0 0 16px; }
.profile-media-item > .profile-media-card { margin: 0; aspect-ratio: auto; }
.profile-media-item > .profile-feature-toggle { display: block; width: 100%; height: auto; margin: 6px 0 0; padding: 7px 10px; border: 1px solid #d9dee5; border-radius: 7px; background: #fff; color: #4b5563; font-size: 12px; cursor: pointer; }
.profile-media-item > .profile-feature-toggle:hover { border-color: #161b22; color: #161b22; }
.profile-media-card.is-locked img { filter: blur(14px) saturate(.65); transform: scale(1.06); }
.media-frame { position: relative; overflow: hidden; }
.media-play { position: absolute; left: 50%; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(20,24,28,.74); color: #fff; font-size: 15px; }
.media-lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(29, 33, 38, .18); color: #fff; font-size: 13px; font-weight: 650; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.media-lock-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(20,24,28,.55); font-size: 17px; }
.profile-page .profile-public-head + .profile-grid { margin-top: 0; }
@media (max-width: 700px) {
  .profile-public-head, .profile-private-head { display: block; margin-left: 12px; margin-right: 12px; }
  .profile-private-zone { margin-left: 12px; margin-right: 12px; }
  .profile-private-head .private-unlock-btn { margin-top: 14px; width: 100%; }
  .profile-private-grid { margin-left: 12px; margin-right: 12px; }
}

