/* ============================================================
   Ava — v0 UI 移植样式（在 dark-theme.css 之后引入，覆盖配色 + 新增组件）
   只做用户端视觉，不动后台 admin-shell；不改 chat.js 聊天业务逻辑。
   配色映射自 v0：background #171618 / primary #f43f8e / gold #d7b17e。
   ============================================================ */

/* ── 配色覆盖：现有组件（btn/card/bottom-nav/toast）自动获得 v0 配色 ── */
:root {
  /* ── 统一主题粉：鲜明玫红粉（全站单一来源，禁止各页重复写不同粉） ── */
  --ava-pink: #f43f8e;
  --ava-pink-hover: #ff5b9f;
  --ava-pink-active: #d92f78;
  --ava-pink-soft: rgba(244, 63, 142, 0.14);
  --ava-pink-border: rgba(244, 63, 142, 0.34);
  --ava-pink-glow: rgba(244, 63, 142, 0.22);

  --bg-deep: #171618;
  --bg-surface: #211f21;
  --bg-card: #211f21;
  --bg-hover: #292629;
  --accent: var(--ava-pink);            /* 主粉：按钮 / 高亮 */
  --accent-soft: var(--ava-pink-hover); /* 浅粉：文字 / 描边 / 导航高亮 */
  --accent-glow: var(--ava-pink-glow);  /* 光晕 */
  --text-primary: #f8f4f2;
  --text-secondary: #9a9192;
  --text-muted: #9a9192;
  --border-subtle: #383438;
  --gold: #d7b17e;              /* 金：价格 / 警告（保持不变） */
  --input-bg: #292629;
  --online: #8ed2a2;            /* 在线状态绿（保持不变） */
}

/* 背景过渡到 v0 深色 */
body { background: #0d0c0e; }

/* ── 顶部栏（v0 topbar） ── */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.topbar .brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
}
.topbar .brand .brand-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
}
.topbar .top-actions {
  display: flex;
  gap: 12px;
}
.topbar .top-actions button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 首页 Hero ── */
.profile-hero {
  height: 520px;
  margin: 0 14px;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: linear-gradient(160deg, #31272a, #211f21);
}
.profile-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.profile-hero > img.fallback {
  display: none;
}
.hero-gradient {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, #171618 85%);
}
.online-pill {
  position: absolute;
  top: 17px;
  left: 17px;
  background: rgba(23, 22, 24, 0.73);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50px;
  padding: 7px 11px;
  font-size: 12px;
  color: #f8f4f2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
}
.online-pill span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--online);
  border-radius: 50%;
}
.profile-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
}
.profile-overlay .avatar {
  width: 54px;
  height: 54px;
  border: 3px solid var(--bg-deep);
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 9px;
  background: var(--ava-pink);
}
.profile-overlay .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-overlay h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
  color: #f8f4f2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #24191b;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.handle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 5px 0 12px;
}
.bio {
  line-height: 1.6;
  color: #eee8e8;
  margin: 0 0 18px;
  font-size: 14px;
}

/* ── v0 主按钮（圆角方形，粉色实底） ── */
.primary-btn {
  border: 0;
  border-radius: 11px;
  background: var(--ava-pink);
  color: #fff;
  padding: 13px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px var(--ava-pink-glow);
  -webkit-tap-highlight-color: transparent;
}
.primary-btn:hover { background: var(--ava-pink-hover); }
.primary-btn:active { background: var(--ava-pink-active); opacity: 0.85; transform: scale(0.98); }
.primary-btn.wide { width: 100%; }

/* ── 首页内容区 ── */
.content-pad { padding: 22px 24px; }
.section-label,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-label span:last-child {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.message-preview {
  padding: 2px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
}
.preview-row img {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  object-fit: cover;
}
.preview-row .preview-main { flex: 1; min-width: 0; }
.preview-row p {
  margin: 0 0 5px;
  font-size: 14px;
  color: var(--text-primary);
}
.preview-row span {
  color: var(--text-muted);
  font-size: 12px;
}
.preview-row .chev { color: var(--text-muted); flex-shrink: 0; }
.section-heading { margin: 25px 0 14px; }
.section-heading h2 { font-size: 19px; margin: 0; color: var(--text-primary); }
.section-heading span { color: var(--text-muted); font-size: 12px; }
.daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.daily-card {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(160deg, #211f21, #292629);
}
.daily-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.daily-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  font-size: 12px;
  color: #f8f4f2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.73));
}
.private-teaser {
  width: 100%;
  border: 1px solid #5a4248;
  background: #271f23;
  color: var(--text-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-top: 20px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.private-teaser:active { background: #2c2328; }
.private-teaser .teaser-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.private-teaser strong { font-size: 13px; }
.private-teaser span { color: var(--text-muted); font-size: 12px; }
.private-teaser .chev { color: var(--text-muted); flex-shrink: 0; }
.lock-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--ava-pink-soft);
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Private 页 ── */
.private-intro { text-align: center; padding: 28px 24px 25px; }
.private-symbol {
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--ava-pink-soft);
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.private-intro h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  letter-spacing: -0.05em;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.private-intro p:last-child {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 13px;
}
.private-grid {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.media-card {
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-card);
  border-radius: 17px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.media-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #211f21, #292629);
}
.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(13px);
  transform: scale(1.08);
}
.blur-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: rgba(23, 22, 24, 0.27);
}
.blur-cover span { font-size: 11px; }
.media-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(23, 22, 24, 0.79);
  color: #eee;
  font-size: 10px;
}
.media-info {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.media-info .media-title { display: flex; flex-direction: column; gap: 4px; }
.media-info strong { font-size: 14px; }
.media-info span { color: var(--text-muted); font-size: 11px; }
.media-info b { color: var(--gold); font-size: 15px; font-weight: 700; }
.private-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 25px 0;
}

/* ── Account / 资料页 ── */
.account-profile {
  margin: 22px 24px 35px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-profile img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}
.account-profile .account-main { flex: 1; min-width: 0; }
.account-profile h1 { font-size: 21px; margin: 0 0 5px; color: var(--text-primary); }
.account-profile p { color: var(--text-muted); font-size: 12px; margin: 0; }
.account-profile button {
  border: 0;
  background: #292629;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-list { border-top: 1px solid var(--border-subtle); }
.account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.account-item .account-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.account-item strong { font-size: 13px; color: var(--text-primary); }
.account-item span { color: var(--text-muted); font-size: 11px; }
.account-item .chev { color: var(--text-muted); }
.list-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.list-icon.pink { color: var(--accent); background: var(--ava-pink-soft); }
.list-icon.gold { color: var(--gold); background: rgba(215, 177, 126, 0.09); }
.list-icon.blue { color: #a7b9dc; background: rgba(167, 185, 220, 0.09); }
.list-icon.muted { color: var(--text-muted); background: rgba(154, 145, 146, 0.09); }
.check { color: var(--online); }
.account-version {
  text-align: center;
  color: #625d5e;
  letter-spacing: 0.12em;
  font-size: 9px;
  margin-top: 32px;
}

/* ── Ava 资料页：居中头像卡片（首页头像/名字入口 + /ava 头部） ── */
.profile-entry {
  display: block;
  text-decoration: none;
  color: inherit;
}
.profile-card {
  text-align: center;
  padding: 6px 24px 0;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--border-subtle);
  background: var(--ava-pink);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-primary);
}
.profile-lead {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.profile-bio {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 13px;
  margin: 0 auto 20px;
  max-width: 320px;
}

/* ── 客户账户头像（通用用户占位，非 Ava） ── */
.customer-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #292629;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.customer-avatar svg {
  stroke: var(--text-muted);
}

/* ── 底部导航 v0 视觉（覆盖 shared.js 生成的 .bottom-nav） ── */
.bottom-nav {
  background: rgba(27, 25, 27, 0.87);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bottom-nav a { color: var(--text-muted); gap: 5px; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a svg { stroke: currentColor; }
.bottom-nav a.active svg { stroke: var(--accent); }

/* ── 手机端安全区 & 桌面居中手机框 ── */
.phone-frame { min-height: 100vh; }

@media (min-width: 560px) {
  .profile-hero { height: 540px; }
}

/* ── 聊天页配色统一（覆盖 chat.css 硬编码深色，不改布局/不改 chat.js） ── */
:root {
  --bubble-her: #282528;              /* v0 对方气泡底（深灰，不变） */
  --bubble-him-start: var(--ava-pink);        /* 我方气泡 / 发送 */
  --bubble-him-end: var(--ava-pink-hover);    /* hover 稍亮 */
}
/* chat 页 header / 输入区背景统一到 v0 深色（原为 rgba(10,10,18,.92)） */
.header,
.input-area {
  background: rgba(23, 22, 24, 0.92);
}
/* 年龄验证门背景统一 */
.age-gate { background: #171618; }
/* 输入框底色统一到 v0 input */
.input-wrapper { background: var(--input-bg); border: 1px solid var(--border-subtle); }
