/* ==========================================================================
   HONEY 通用页面组件
   - 顶部导航 (top-bar)
   - 状态栏 (status-bar 占位)
   - 头部 (header)
   - 列表 (list)
   ========================================================================== */

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(236, 231, 221, 0.4);
}
.topbar-back {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2);
  cursor: pointer;
}
.topbar-back svg { width: 18px; height: 18px; }
.topbar-title { font-size: 16px; font-weight: 600; color: var(--ink-1); letter-spacing: 0.01em; }
.topbar-action { color: var(--ink-2); font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: var(--r-pill); }
.topbar-action:hover { background: var(--surface-2); }

/* ---------- 沉浸式头部 (透明 + 大图) ---------- */
.topbar-transparent {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0; color: #fff;
}
.topbar-transparent .topbar-back { background: rgba(0,0,0,.35); color: #fff; }
.topbar-transparent .topbar-title { color: #fff; }
.topbar-transparent .topbar-action { color: #fff; }

/* ---------- 搜索框 ---------- */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--surface-2); border-radius: var(--r-pill);
  color: var(--ink-3); font-size: 13px;
}
.search-bar svg { width: 16px; height: 16px; opacity: .6; flex-shrink: 0; }
.search-bar input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink-1); font: inherit; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: var(--ink-3);
}
.empty .ico { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty .title { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.empty .desc { font-size: 12px; color: var(--ink-3); }

/* ---------- 加载 / 错误 ---------- */
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--c-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用 toast ---------- */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 12px 18px; background: rgba(0,0,0,.8); color: #fff;
  border-radius: var(--r); font-size: 13px; z-index: 100;
  max-width: 80%;
  backdrop-filter: blur(10px);
  animation: toastIn 0.3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- 列表 / 行 ---------- */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  transition: background .15s;
}
.list-row:active { background: var(--surface-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .arrow { color: var(--ink-4); flex-shrink: 0; }

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text-gold {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 玻璃面板 (iOS 风格毛玻璃) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--sh-1);
}
.glass-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Tab 切换 (页面内) ---------- */
.tabs-pill {
  display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill);
}
.tabs-pill .tab {
  flex: 1; padding: 8px 12px; text-align: center;
  font-size: 13px; color: var(--ink-2); border-radius: var(--r-pill); cursor: pointer;
  transition: all .2s;
}
.tabs-pill .tab.active { background: var(--surface); color: var(--ink-1); font-weight: 600; box-shadow: var(--sh-1); }

/* 顶部 tab 标题(资料/视频 那种) */
.tabs-underline {
  display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--line);
}
.tabs-underline .tab {
  padding: 12px 0; font-size: 16px; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; font-weight: 500;
  transition: all .2s;
}
.tabs-underline .tab.active { color: var(--ink-1); border-color: var(--ink-1); font-weight: 700; }

/* ---------- 通用 hero / banner ---------- */
.hero-gradient {
  background: var(--grad-hero);
  border-radius: var(--r-2xl);
  padding: 28px 20px;
  position: relative; overflow: hidden;
}
.hero-gradient::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4) 0%, transparent 70%);
}
.hero-dark {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 28px 20px;
  position: relative; overflow: hidden;
}
.hero-dark::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 144, 228, .3) 0%, transparent 60%);
}

/* ---------- 通用 section 标题 ---------- */
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px;
}
.sec-title h2 {
  margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-1);
  display: flex; align-items: center; gap: 8px;
}
.sec-title .more { color: var(--ink-3); font-size: 12px; }
.sec-title .more::after { content: '›'; margin-left: 2px; font-size: 14px; }

/* ---------- 卡片网格 (girl-card) - 3 页共享 ---------- */
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px 12px;
}
.girl-card {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.girl-card:active { transform: scale(0.97); }
.girl-card .bg-svg { position: absolute; inset: 0; overflow: hidden; }
.girl-card .bg-svg svg { width: 100%; height: 100%; display: block; }
.girl-card .bg-svg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.girl-card .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.0) 50%, rgba(0,0,0,.7) 100%);
}
.girl-card .top-info {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.girl-card .anchor-badge {
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  color: var(--c-gold-d); font-size: 10px; font-weight: 600;
}
.girl-card .online-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  color: #fff; font-size: 10px;
}
.girl-card .online-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-online); box-shadow: 0 0 0 2px rgba(79,182,138,.3); }
.girl-card .bottom-info {
  position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; z-index: 2;
}
.girl-card .name-row { display: flex; align-items: center; gap: 6px; }
.girl-card .name { font-size: 15px; font-weight: 600; }
.girl-card .stars { color: #FFD56B; font-size: 11px; letter-spacing: 1px; }
.girl-card .city { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 2px; }
.girl-card .price-row {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end; z-index: 2;
}
.girl-card .price-tag {
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  color: var(--ink-1); font-size: 10px; font-weight: 500;
}
.girl-card .price-tag b { color: var(--c-pink-d); font-family: var(--f-num); }
