:root {
  --navy: #0f172a;
  --navy-l: #1e293b;
  --navy-card: #1e293b;
  --gold: #d4af37;
  --gold-l: #e8c76b;
  --gold-d: #b8922e;
  --cream: #f8f5ed;
  --bg: #172345;
  --card: #162032;
  --card-l: #1e293b;
  --text: #f1f5f9;
  --text-m: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(212,175,55,.18);
  --danger: #ef4444;
  --success: #22c55e;
  --tab-h: 60px;
  --header-h: 54px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* 顶部栏 */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: linear-gradient(180deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.92) 100%);
  color: var(--text); display: flex; align-items: center;
  padding: 0 14px; z-index: 30;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.app-header .title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; letter-spacing: .5px; color: var(--text); }
.app-header .left, .app-header .right { min-width: 44px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.app-header .right.action { color: var(--gold); font-size: 18px; }
.app-header .left { color: var(--text); font-size: 22px; }

/* 内容区 */
.app-main { padding-top: var(--header-h); padding-bottom: calc(var(--tab-h) + 12px); min-height: 100vh; background: var(--bg); }
.page { display: none; }
.page.active { display: block; }

/* 底部 Tab */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--tab-h);
  background: linear-gradient(180deg, rgba(22,32,50,.98) 0%, rgba(15,23,42,.98) 100%);
  display: flex; border-top: 1px solid var(--line); z-index: 30;
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; gap: 3px; position: relative; }
.tabbar .tab.active { color: var(--gold); }
.tabbar .tab.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px;
}
.tabbar .tab svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* 通用卡片 */
.card { background: var(--card); border-radius: 16px; margin: 12px; padding: 14px; border: 1px solid var(--line); }
.section-title { margin: 22px 14px 12px; font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; letter-spacing: .3px; }
.section-title .more { font-size: 12px; color: var(--gold); font-weight: 600; border: 1px solid var(--gold); padding: 4px 10px; border-radius: 12px; background: rgba(212,175,55,.08); }

/* 轮播图 - 卡片式 */
.banner { margin: 14px 0 6px; border-radius: 18px; overflow: hidden; background: transparent; }
.banner-viewport { overflow: hidden; }
#bannerTrack { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.banner-slide { flex: 0 0 93%; width: 93%; margin: 0 3.5%; }
.banner-card {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(212,175,55,.2);
  height: 185px; margin: 0;
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-card .label {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,0) 100%);
  padding: 28px 12px 12px; text-align: center;
}
.banner-card .label span {
  display: inline-block; background: rgba(248,245,237,.95); color: var(--navy);
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 14px;
}
.banner-card.active .label span { background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); color: #fff; box-shadow: 0 3px 10px rgba(212,175,55,.35); }
.banner-dots { text-align: center; padding: 12px 0 4px; }
.banner-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(212,175,55,.25); margin: 0 3px; transition: .25s; }
.banner-dots span.on { background: var(--gold); width: 18px; border-radius: 4px; }

/* 推荐播主 */
.host-strip { display: flex; gap: 16px; padding: 6px 14px 16px; overflow-x: auto; }
.host-strip::-webkit-scrollbar { display: none; }
.host-strip-item { flex-shrink: 0; text-align: center; width: 64px; }
.host-strip-item .avatar-wrap {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto; padding: 3px;
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
}
.host-strip-item .avatar-wrap img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--card); }
.host-strip-item .nm { font-size: 12px; margin-top: 6px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 精选置顶播贴 - 横向卡片（可手动滑动 + 自动滚屏） */
.pinned-strip { display: flex; gap: 12px; padding: 0 14px 14px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.pinned-strip::-webkit-scrollbar { display: none; }
.pinned-card {
  flex-shrink: 0; width: 140px; height: 170px; border-radius: 16px; overflow: hidden;
  position: relative; box-shadow: 0 6px 18px rgba(0,0,0,.3); border: 1px solid rgba(212,175,55,.15);
}
.pinned-card img { width: 100%; height: 100%; object-fit: cover; }
.pinned-card .badge {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
  color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
}
.pinned-card .label {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,0) 100%);
  padding: 38px 10px 10px; color: #fff;
}
.pinned-card .label .title { font-size: 15px; font-weight: 700; }
.pinned-card .label .sub { font-size: 11px; opacity: .85; margin-top: 2px; }

/* 贴子卡片 - 最新列表 */
.post-card { background: var(--card); border-radius: 16px; margin: 10px 14px; border: 1px solid var(--line); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.post-card:active { transform: translateY(1px); }
.post-card.compact { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.post-card.compact .pc-avatar { flex-shrink: 0; }
.post-card.compact .pc-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--card-l); }
.post-card.compact .pc-body { flex: 1; min-width: 0; }
.post-card.compact .pc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 6px; }
.pc-host { color: var(--gold); font-weight: 600; }
.pc-lv { color: var(--text-m); font-weight: 500; }
.post-card .pc-title { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--text); }
.post-card .pc-meta { color: var(--muted); font-size: 12px; display: flex; gap: 14px; margin-top: 8px; }
.post-card .pc-meta .meta-item { display: inline-flex; align-items: center; gap: 3px; }
.tag-pin { background: rgba(212,175,55,.16); color: var(--gold); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.tag-rec { background: rgba(56,189,248,.16); color: #38bdf8; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.tag-audio { background: rgba(34,197,94,.12); color: var(--success); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tag-video { background: rgba(239,68,68,.12); color: #f87171; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.pc-actions { margin-top: 10px; display: flex; gap: 8px; }
.act-btn { border: none; background: rgba(212,175,55,.12); color: var(--gold); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.act-btn.danger { background: rgba(239,68,68,.12); color: #f87171; }

/* 搜索框 */
.search-bar { margin: 12px 14px; display: flex; gap: 10px; }
.search-bar input { flex: 1; border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; outline: none; background: var(--card); color: var(--text); }
.search-bar input::placeholder { color: var(--muted); }
.search-bar button { border: none; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); color: var(--navy); border-radius: 22px; padding: 0 18px; font-weight: 700; }

/* 播主墙 */
.host-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 14px; }
.host-cell { background: var(--card); border-radius: 14px; padding: 10px 4px; text-align: center; border: 1px solid var(--line); }
.host-cell .avatar-wrap { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; padding: 2px; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.host-cell .avatar-wrap img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); }
.host-cell .nm { font-size: 12px; margin-top: 6px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.host-cell .lv { font-size: 10px; color: var(--gold); margin-top: 2px; }

/* 播主详情 - 个人空间新布局（参考 个人空间.png） */
.app-header.transparent { background: transparent; border-bottom: none; backdrop-filter: none; }
.app-header.transparent .title,
.app-header.transparent .left,
.app-header.transparent .right { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }

.host-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 18px) 18px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #b45309 100%);
  border-radius: 0 0 28px 28px;
  position: relative;
}
.host-hero-main { display: flex; gap: 18px; align-items: center; }
.host-hero-avatar { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: rgba(255,255,255,.28); }
.host-hero-avatar img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; }
.host-hero-info { flex: 1; min-width: 0; }
.host-hero-name { font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.host-hero-lv { font-size: 12px; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); padding: 4px 11px; border-radius: 14px; }
.host-post-btn { font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); padding: 5px 12px; border-radius: 14px; cursor: pointer; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.host-post-btn:active { background: rgba(255,255,255,.32); }
.host-hero-stats { display: flex; gap: 24px; }
.host-hero-stat { color: #fff; }
.host-hero-stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.host-hero-stat span { font-size: 12px; opacity: .88; }

.host-photos { display: flex; gap: 10px; overflow-x: auto; padding: 14px; margin: 0; }
.host-photos::-webkit-scrollbar { display: none; }
.host-photos img { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }

.host-bio-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 16px; margin: 0 14px 14px; padding: 14px; border: 1px solid var(--line); }
.host-bio-card .avatar-wrap { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; padding: 2px; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.host-bio-card .avatar-wrap img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); display: block; }
.host-bio-card .bio-text { flex: 1; color: var(--text-m); font-size: 13px; line-height: 1.7; }

/* 播主个人空间专用贴子卡片 */
.host-post-card { background: var(--card); border-radius: 16px; margin: 10px 14px; border: 1px solid var(--line); overflow: hidden; display: flex; gap: 14px; padding: 12px; align-items: stretch; cursor: pointer; transition: transform .12s; }
.host-post-card:active { transform: translateY(1px); }
.host-post-card .hpc-cover { width: 86px; height: 110px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--card-l); }
.host-post-card .hpc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.host-post-card .hpc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; position: relative; }
.host-post-card .hpc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.host-post-card .hpc-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.host-post-card .hpc-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; flex-shrink: 0; color: var(--navy); background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.host-post-card .hpc-tag.audio { background: linear-gradient(135deg, #86efac 0%, #22c55e 100%); }
.host-post-card .hpc-tag.video { background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%); color: #fff; }
.host-post-card .hpc-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.host-post-card .hpc-actions { margin-top: 10px; display: flex; gap: 8px; }

/* 贴子详情 */
.detail-cover { width: 100%; max-height: 240px; object-fit: cover; }
.detail-audio { width: 100%; margin-top: 10px; }
/* B站视频嵌入：强制 96% 宽并居中、按 16:9 铺满 */
.video-embed { margin: 12px 0; }
.video-embed iframe {
  width: 96% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
  border: 0;
  border-radius: 10px;
  background: #000;
}
.reply-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.reply-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--card-l); }
.reply-item .rb { flex: 1; }
.reply-item .rb .nm { font-size: 12px; color: var(--gold); font-weight: 600; }
.reply-item .rb .ct { margin-top: 4px; color: var(--text-m); }
.reply-item .rb .nm .reply-to { float: right; color: var(--gold); font-size: 12px; cursor: pointer; background: rgba(212,175,55,.12); padding: 1px 8px; border-radius: 10px; }
.detail-actions { position: fixed; bottom: var(--tab-h); left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 8px 12px; }
.detail-actions input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; outline: none; background: var(--card-l); color: var(--text); }
.detail-actions button { border: none; border-radius: 20px; padding: 0 14px; color: var(--navy); font-weight: 700; }
.btn-rec { background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.btn-send { background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.recording { background: var(--danger) !important; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* 夫子课堂 */
.topic-row { background: var(--card); border-radius: 16px; margin: 12px 14px; overflow: hidden; border: 1px solid var(--line); }
.topic-cover { position: relative; }
.topic-cover img { width: 100%; height: 140px; object-fit: cover; }
.topic-cover .nm { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.topic-intro { padding: 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* 夫子详情 / 课程 */
.master-head { background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2d3a52 100%); color: var(--text); padding: 24px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.master-head .avatar-wrap { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto; padding: 3px; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.master-head img { width: 82px; height: 82px; border-radius: 50%; border: 3px solid var(--card); object-fit: cover; }
.master-head .nm { font-size: 19px; font-weight: 700; margin-top: 12px; }
.master-head .mo { font-style: italic; margin-top: 6px; opacity: .85; color: var(--gold-l); }
.course-item { background: var(--card); border-radius: 14px; margin: 10px 14px; padding: 12px; display: flex; gap: 12px; border: 1px solid var(--line); }
.course-item img { width: 90px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.course-item .ci-body { flex: 1; }
.course-item .ci-title { font-weight: 700; color: var(--text); }
.course-item .ci-desc { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.sort-controls { display: flex; gap: 8px; padding: 0 14px 12px; }
.sort-controls button { border: 1px solid var(--line); background: var(--card); color: var(--text-m); border-radius: 16px; padding: 5px 13px; font-size: 12px; }
.sort-controls button.on { background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); color: var(--navy); border-color: var(--gold); font-weight: 700; }

/* 伪直播间 */
.live-video { width: 100%; height: 220px; background: #000; object-fit: cover; display: block; }
.live-poster { width: 100%; height: 220px; background: linear-gradient(135deg, #0f172a, #1e293b); position: relative; display: flex; align-items: center; justify-content: center; color: var(--text); }
.live-poster .ring { width: 60px; height: 60px; border: 3px solid rgba(212,175,55,.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flowers-count { text-align: center; color: var(--gold); font-size: 12px; padding: 6px; background: rgba(212,175,55,.1); border-bottom: 1px solid var(--line); }
.live-chat { height: calc(100vh - 220px - var(--header-h) - 56px); overflow-y: auto; padding: 12px 14px; background: var(--bg); }
.live-msg { margin-bottom: 10px; font-size: 13px; color: var(--text-m); }
.live-msg .who { color: var(--gold); font-weight: 600; margin-right: 6px; }
.live-msg.system { color: var(--muted); font-size: 12px; text-align: center; }
.live-msg.flower { text-align: center; color: #f472b6; }
.live-bar { position: fixed; bottom: var(--tab-h); left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 8px 12px; align-items: center; }
.live-bar input { flex: 1; border: 1px solid var(--line); border-radius: 22px; padding: 9px 14px; outline: none; background: var(--card-l); color: var(--text); }
.live-bar .ic { font-size: 20px; padding: 4px 8px; color: var(--gold); }

/* 我的 / 表单 */
.center { max-width: 420px; margin: 0 auto; }
.field { margin: 12px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; font-size: 14px; background: var(--card-l); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 70px; }
.btn { display: block; width: 100%; border: none; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); color: var(--navy); border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 700; margin-top: 12px; box-shadow: 0 4px 14px rgba(212,175,55,.25); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.25); }
.profile-head { background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2d3a52 100%); color: var(--text); padding: 32px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 74px; height: 74px; border-radius: 50%; background: var(--card); margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 30px; border: 2px solid var(--gold); }
.profile-head .nm { font-size: 19px; font-weight: 700; margin-top: 12px; }
.level-box { background: var(--card); border-radius: 16px; margin: 12px 14px; padding: 18px; text-align: center; border: 1px solid var(--line); }
.level-box .badge { font-size: 26px; letter-spacing: 2px; color: var(--gold); }
.level-box .lv-txt { color: var(--muted); font-size: 12px; margin-top: 6px; }
.menu-list { background: var(--card); border-radius: 16px; margin: 12px 14px; overflow: hidden; border: 1px solid var(--line); }
.menu-list .mi { padding: 15px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.menu-list .mi.disabled { color: var(--muted); cursor: default; }
.menu-list .mi:last-child { border-bottom: none; }
.menu-list .mi .arrow { color: var(--gold); font-size: 16px; }

/* 我的页头部（参考用户中心） */
.me-hero { background: linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #b45309 100%); color: #fff; padding: calc(var(--header-h) + 18px) 18px 28px; border-radius: 0 0 24px 24px; position: relative; overflow: hidden; }
.me-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.35), transparent 50%); pointer-events: none; }
.me-hero-main { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.me-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.35); flex-shrink: 0; background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-avatar.placeholder { display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 20px; font-weight: 700; color: #fff; }
.me-phone { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 5px; letter-spacing: .5px; }
.me-level { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 20px; font-size: 12px; color: #fff; backdrop-filter: blur(4px); }
.me-level .heart { color: #ff6b6b; font-size: 13px; }
.me-stats { display: flex; margin: -14px 14px 14px; background: rgba(22,32,50,.92); border-radius: 16px; padding: 16px 0; border: 1px solid var(--line); position: relative; z-index: 2; backdrop-filter: blur(8px); }
.me-stat { flex: 1; text-align: center; position: relative; }
.me-stat + .me-stat::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(255,255,255,.1); }
.me-stat b { display: block; font-size: 18px; font-weight: 700; color: #fff; }
.me-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 弹出层 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 50; display: none; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal { background: var(--card); border-radius: 18px; width: 88%; max-width: 380px; max-height: 84vh; overflow-y: auto; padding: 20px; border: 1px solid var(--line); }
.modal h3 { margin: 0 0 14px; font-size: 17px; color: var(--text); }
.qr-box { text-align: center; }
.qr-box img { width: 180px; height: 180px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; }
.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: rgba(212,175,55,.95); color: var(--navy); padding: 10px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; z-index: 60; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.spinner { text-align: center; color: var(--muted); padding: 24px; }
.empty { text-align: center; color: var(--muted); padding: 34px; }
.badge-upload { display: inline-block; border: 1px dashed var(--gold); color: var(--gold); border-radius: 12px; padding: 20px; text-align: center; width: 100%; background: rgba(212,175,55,.06); }
.preview-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; margin: 4px; border: 1px solid var(--line); }

/* 登录/注册选项卡 */
.auth-card { padding: 16px; }
.auth-tabs { display: flex; background: var(--card-l); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.auth-tabs span { flex: 1; text-align: center; padding: 9px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .2s; }
.auth-tabs span.on { background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 3px 10px rgba(212,175,55,.25); }

/* 收藏列表 */
.fav-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; }
.fav-item:last-child { border-bottom: none; }
.fav-cover { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--card-l); }
.fav-cover.empty-cover { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.fav-body { flex: 1; min-width: 0; }
.fav-title { font-weight: 700; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* 状态条装饰 */
.status-bar { height: 0; }

/* 内容页浮动返回圆标（始终跟随页面滚动，fixed 定位） */
.float-back {
  position: fixed; right: 16px; top: calc(66.67% - 22px);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
  color: var(--navy); font-size: 28px; font-weight: 700; line-height: 44px;
  text-align: center; z-index: 40;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 2px rgba(212,175,55,.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, opacity .2s ease; user-select: none;
}
.float-back:active { transform: scale(.92); }

/* 已收藏的收藏图标变灰 */
.fav-on { color: var(--muted) !important; filter: grayscale(1); }

/* 伪直播间右上角客服图标（缩小、去文字） */
.wx-mini { font-size: 18px !important; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }

/* 我的积分卡片右侧「规则 ›」链接 */
.credit-link { font-size: 13px; color: var(--gold); cursor: pointer; font-weight: 700; padding: 6px 4px; }

/* 播主中心：三个按钮各占一行 */
.host-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.btn-block { width: 100%; margin: 0; }
.btn-pink { background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 100%); color: #fff; box-shadow: 0 4px 14px rgba(236,72,153,.25); }

/* 等级与信用分规则（专业卡片） */
.rules { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.rule-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rule-card.credit { border-color: rgba(212,175,55,.45); }
.rule-head { font-weight: 800; color: var(--gold); margin-bottom: 8px; font-size: 15px; }
.rule-body { color: var(--text-m); font-size: 13px; line-height: 1.7; }
.credit-now { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.credit-now b { color: var(--gold); font-size: 18px; }
.credit-list { list-style: none; padding: 0; margin: 0 0 8px; }
.credit-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--text-m); }
.credit-list .plus { color: #22c55e; font-weight: 800; min-width: 36px; text-align: center; }
.credit-list .minus { color: #ef4444; font-weight: 800; min-width: 36px; text-align: center; }
.credit-list .warn { min-width: 36px; text-align: center; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.6; }
