/* ============================================================
   清逸社区 H5 · 全局样式
   品牌色：清逸蓝 #3b6cff / VIP 金 #f5a623
   风格：浅灰底 + 白卡片、柔和投影、16px 圆角、全站统一品牌色
   ============================================================ */
:root {
  --brand: #3b6cff;
  --brand-2: #6f8bff;
  --brand-light: #eaf0ff;
  --vip: #f5a623;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2329;
  --sub: #8a909a;
  --line: #eef0f3;
  --danger: #e0483c;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(20, 30, 60, .04), 0 10px 28px -14px rgba(20, 30, 60, .12);

  /* Vant 4 主题变量：全站统一品牌色（按钮 / 标签页 / 底部栏等） */
  --van-primary-color: var(--brand);
  --van-blue: var(--brand);
  --van-tabs-bottom-bar-color: var(--brand);
  --van-tabbar-item-active-color: var(--brand);
  --van-nav-bar-icon-color: #33383f;
  --van-nav-bar-text-color: #33383f;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; background: var(--bg); }
img { display: block; }

/* ---------- 通用 ---------- */
.page { padding-bottom: 60px; }
.page-tabbar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.muted { color: var(--sub); font-size: 12px; }
.price { color: var(--vip); font-weight: 700; }
.empty-box { padding: 64px 24px; text-align: center; color: #a8afbb; font-size: 13px; }
.empty-box::before { content: "🗓"; display: block; font-size: 34px; margin-bottom: 10px; opacity: .55; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 顶部导航（毛玻璃吸顶） ---------- */
.van-nav-bar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20, 30, 60, .05);
}
.van-nav-bar .van-nav-bar__title { font-weight: 700; letter-spacing: .5px; }
.nav-bar-transparent { background: transparent; }
.nav-title { font-weight: 700; }

/* ---------- 首页标签栏 ---------- */
.van-tabs--sticky .van-tabs__wrap {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20, 30, 60, .04);
}
.van-tab { font-weight: 600; }
.van-tab--active { font-weight: 800; }

/* ---------- 顶部头部（左主题 / 中搜索 / 右登录） ---------- */
.hdr {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(20, 30, 60, .06);
  position: sticky; top: 0; z-index: 20;
}
.hdr-brand { font-size: 19px; font-weight: 800; color: #1f2329; flex: none; cursor: pointer; letter-spacing: .5px; }
.hdr-search {
  flex: none; width: 400px; max-width: 56%; margin: 0 auto;
  display: flex; align-items: center; gap: 7px;
  background: #f2f4f8; border-radius: 999px; padding: 8px 14px; color: #8a909a;
}
.hdr-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.hdr-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hdr-act { flex: none; display: flex; align-items: center; }
.hdr-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.hdr-login { --van-button-small-height: 32px; }

/* 搜索页 */
.search-bar {
  display: flex; align-items: center; gap: 8px; margin: 10px; padding: 9px 10px 9px 14px;
  background: var(--card); border-radius: 999px; box-shadow: var(--shadow-card); color: #8a909a;
}
.search-bar input { flex: 1; min-width: 0; border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; }
.search-bar .s-btn {
  border: none; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.more-btn {
  border: none; background: #eaf0ff; color: var(--brand); font-size: 13px; font-weight: 700;
  padding: 7px 22px; border-radius: 999px; cursor: pointer;
}

/* 登录弹窗（页面内弹窗卡片，全站复用） */
.login-pop { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(20, 30, 60, .28); }
.login-pop .lp-head { background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 22px 16px 18px; text-align: center; color: #fff; }
.login-pop .lp-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .25); }
.login-pop .lp-name { font-size: 17px; font-weight: 800; }
.login-pop .lp-slogan { font-size: 12px; opacity: .85; margin-top: 2px; }
.login-pop .lp-links { display: flex; justify-content: space-between; padding: 4px 20px 18px; font-size: 12px; }
.login-pop .lp-go { color: var(--brand); font-weight: 700; cursor: pointer; }

/* ---------- 卡片流（首页/列表 · 清爽手机卡片） ---------- */
.feed { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.post-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #f0f2f6;
  transition: transform .12s ease, box-shadow .12s ease;
}
.post-card:active { transform: scale(.99); }
.post-card .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.post-card .head .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #eef1f5; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.post-card .head .name { font-size: 13.5px; font-weight: 700; color: #2b2f36; display: flex; align-items: center; gap: 5px; }
.post-card .head .time { font-size: 11.5px; color: var(--sub); margin-top: 1px; }
.post-card .top-badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px;
  font-size: 10px; font-weight: 700; color: #fff; flex: none;
  background: linear-gradient(135deg, #4f7bff, #3b6cff);
}
.post-card .body { padding: 8px 14px 0; }
.post-card .title { font-size: 16.5px; font-weight: 800; margin: 0 0 5px; line-height: 1.45; color: #1f2329; letter-spacing: .2px; }
.post-card .summary { font-size: 13px; color: #5a6068; margin: 0; line-height: 1.6; }
.post-card .cover { width: 100%; max-height: 220px; object-fit: cover; background: #f0f2f5; margin-top: 9px; }
.post-card .foot { display: flex; align-items: center; gap: 16px; padding: 10px 14px 12px; color: var(--sub); font-size: 12px; }
.post-card .foot .act { display: inline-flex; align-items: center; gap: 4px; transition: color .12s ease; }
.post-card .foot .act:active { transform: scale(1.12); }
.post-card .foot .act.on { color: var(--brand); }
.post-card .foot .price { margin-left: auto; color: var(--vip); font-weight: 700; }

/* ---------- 桌面端（≥768px）：对齐 CSDN 的宽幅网页版式（居中内容列，不是手机框） ---------- */
@media (min-width: 768px) {
  .post-card { border-radius: 12px; }
  .post-card .head { padding: 16px 20px 0; }
  .post-card .head .avatar { width: 40px; height: 40px; }
  .post-card .body { padding: 10px 20px 0; }
  .post-card .title { font-size: 18px; }
  .post-card .summary { font-size: 14px; }
  .post-card .foot { padding: 12px 20px 14px; font-size: 13px; }
  .post-card .cover { max-height: 300px; }
}

/* ---------- 门户首页（CSDN 个人主页式：站长卡 + 广告侧栏 + 信息流） ---------- */
.owner-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.owner-card { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 20px 16px; flex-wrap: wrap; }
.owner-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eef1f5; flex: none;
  box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(20,30,60,.15);
}
.owner-main { flex: 1; min-width: 200px; }
.owner-main .name { font-size: 20px; font-weight: 800; color: #1a1d23; }
.owner-main .bio { font-size: 13px; color: var(--sub); margin-top: 4px; }
.owner-stats { display: flex; gap: 22px; }
.owner-stats .cell { text-align: center; }
.owner-stats b { display: block; font-size: 17px; font-weight: 800; color: #1f2329; }
.owner-stats span { font-size: 11px; color: var(--sub); }

/* 移动端门户：头像/名称同一行，统计独占一行四等分 */
@media (max-width: 640px) {
  .owner-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .owner-main { flex: 1; min-width: 0; }
  .owner-stats { width: 100%; justify-content: space-between; gap: 8px; background: #fff; border-radius: 12px; padding: 12px 8px; box-shadow: var(--shadow-card); }
  .owner-stats .cell { flex: 1; }
  .owner-stats b { font-size: 16px; }
}

/* 移动端广告位：左右两列网格，统一直径/高度（≥900px 走左侧栏） */
.ad-side-m { display: block; padding: 10px 10px 0; }
.ad-side-m .side-head { font-size: 12px; font-weight: 800; color: #5a6068; margin-bottom: 8px; }
.ad-side-m .ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-side-m .ad-card { height: 120px; }
.ad-side-m .ad-card img { object-fit: contain; }
.ad-side-m .ad-text { font-size: 13px; }
.ad-side-m .ad-txt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.55;
}
.ad-side-m .ad-empty { height: 120px; }
@media (min-width: 900px) { .ad-side-m { display: none; } }

.portal-wrap { max-width: 1040px; margin: 0 auto; }
.portal-main { min-width: 0; }
.ad-side { display: none; }
.ad-card { display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); box-sizing: border-box; }
/* 广告图完整显示不裁切（contain），固定格子高度保持整齐 */
.ad-card img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ad-side .ad-card { height: 150px; }
.ad-side-m .ad-card { height: 120px; }
.ad-fb {
  display: none; align-items: center; justify-content: center; height: 100%;
  padding: 14px; text-align: center; font-size: 16px; font-weight: 700; color: #3b4a63;
  white-space: pre-line; word-break: break-word;
}
.ad-txt {
  display: block; width: 100%; white-space: pre-line; word-break: break-word;
}
.ad-empty {
  display: flex; align-items: center; justify-content: center; height: 150px;
  color: #a8afbb; font-size: 17px; letter-spacing: 4px; font-weight: 600;
  background: repeating-linear-gradient(45deg, #f7f8fa, #f7f8fa 8px, #f1f3f6 8px, #f1f3f6 16px);
  box-sizing: border-box;
}
.ad-side-m .ad-empty { height: 120px; }
.ad-text {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 14px; text-align: center; font-size: 16px; font-weight: 700; color: #3b4a63;
  white-space: pre-line; word-break: break-word;
  box-sizing: border-box;
}

/* 桌面端（≥900px）：门户双栏 —— 左广告位 + 右信息流 */
@media (min-width: 900px) {
  .portal-wrap { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
  .ad-side { display: block; width: 240px; flex: none; position: sticky; top: 60px; }
  .ad-side .side-head { font-size: 13px; font-weight: 800; color: #5a6068; margin-bottom: 10px; }
  .ad-side .ad-card { margin-bottom: 12px; }
  .portal-main { flex: 1; }
  .portal-main .feed { max-width: none; margin: 0; padding: 12px 0 20px; }
}

/* ---------- VIP 徽章 ---------- */
.vip-badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f7c04a, #f5a623); line-height: 18px; flex: none;
  box-shadow: 0 2px 6px rgba(245, 166, 35, .35);
}
.vip-badge.lv0 { background: #b8bec7; box-shadow: none; }

/* ---------- 付费遮罩 ---------- */
.paid-mask {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #2b3242, #1b202b); color: #fff;
  padding: 30px 20px; text-align: center;
  box-shadow: 0 14px 30px -14px rgba(20, 30, 60, .45);
}
.paid-mask .lock { font-size: 36px; margin-bottom: 8px; }
.paid-mask .p { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.paid-mask .d { font-size: 12px; opacity: .75; margin: 0 0 14px; }
.paid-mask .van-button { --van-button-primary-background: var(--vip); --van-button-primary-border-color: var(--vip); }

/* ---------- 详情页（CSDN 文章式：灰底 + 白色文章卡 + 桌面端左侧栏） ---------- */
.detail-page { background: var(--bg); min-height: 100vh; }
.detail-page .van-nav-bar { background: rgba(255, 255, 255, .92); }
.detail-card { background: var(--card); padding: 14px 16px 6px; }
.detail-title { font-size: 21px; font-weight: 800; line-height: 1.45; color: #1a1d23; margin: 0 0 14px; letter-spacing: .2px; }
.detail-title.is-locked { cursor: pointer; }
.detail-author { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.detail-author .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eef1f5; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.detail-author .info { flex: 1; min-width: 0; }
.detail-author .name { font-size: 14.5px; font-weight: 800; color: #2b2f36; display: flex; align-items: center; gap: 5px; }
.detail-author .meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.detail-author .read-meta { font-size: 12px; color: var(--sub); flex: none; }
.detail-content { padding: 16px 0 8px; font-size: 16px; line-height: 1.9; color: #262b33; word-break: break-word; }
.detail-content .ctext { display: block; white-space: pre-wrap; }
.detail-content .cimg { display: block; width: 100%; border-radius: 8px; margin: 6px 0 14px; }
.detail-images { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; }
.detail-images img { width: 100%; border-radius: 8px; }
.detail-actions { display: flex; justify-content: center; padding: 16px 0 6px; }
.detail-like-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 28px; border-radius: 999px;
  background: #eaf0ff; color: var(--brand); font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.detail-like-btn:active { transform: scale(.96); }
.detail-like-btn.on { background: var(--brand); color: #fff; }

/* ---------- 付费解锁条（正文直接可见，未解锁时展示） ---------- */
.unlock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #fff8ec, #fdf3e0); border: 1px solid #f7e3bd;
}
.unlock-bar .ub-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unlock-bar .ub-price { font-size: 20px; font-weight: 800; color: var(--vip); }
.unlock-bar .ub-tip { font-size: 12px; color: #a07828; }

/* ---------- 支付弹窗（居中卡片，通道选择） ---------- */
.pay-pop { padding: 18px 16px 8px; }
.pay-pop.pay-pop-center {
  max-height: 70vh;
  overflow-y: auto;
}
.pay-pop .pp-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; text-align: center; color: #1f2329; }
.pay-pop .pp-amount { text-align: center; font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.pay-pop .pp-amount b { font-size: 22px; color: var(--vip); font-weight: 800; }
.pay-pop .pp-notice {
  font-size: 12px; color: #a07828; background: #fff8ec; border: 1px solid #f7e3bd;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6;
}
.pay-pop .pp-notice.err { color: #b03a2e; background: #fdeeec; border-color: #f5c6c0; }
.pay-pop .pp-loading { text-align: center; color: var(--sub); font-size: 13px; padding: 18px 0; }
.pay-pop .pp-item {
  display: flex; align-items: center; gap: 10px; padding: 13px 4px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.pay-pop .pp-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8ccd4; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.pay-pop .pp-radio.on { border-color: var(--brand); }
.pay-pop .pp-radio.on::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.pay-pop .pp-name { font-size: 14.5px; font-weight: 600; color: #1f2329; flex: 1; }
.pay-pop .pp-test {
  font-size: 10px; font-weight: 700; color: #fff; background: #b8bec7;
  border-radius: 4px; padding: 1px 6px; flex: none;
}
.pay-pop .pp-btn { margin-top: 14px; }
.pay-pop .pp-type { padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pay-pop .pp-type .van-radio { margin-bottom: 6px; }

/* ---------- 收银台 iframe 弹窗（站内支付，桌面/移动通用） ---------- */
.pay-frame { position: relative; width: 100%; height: 100%; background: #fff; }
.pay-frame .pf-iframe { display: block; width: 100%; height: 100%; border: 0; }
.pay-frame .pf-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); font-size: 13px; background: #fff;
}
.detail-side { display: none; }

/* 桌面端（≥900px）：CSDN 文章页双栏 —— 左侧作者/信息侧栏 + 主栏文章卡 */
@media (min-width: 900px) {
  .detail-wrap { max-width: 1220px; margin: 0 auto; padding: 24px 20px 30px; display: flex; gap: 20px; align-items: flex-start; }
  .detail-main { flex: 1; min-width: 0; max-width: 860px; }
  .detail-card { border-radius: 12px; padding: 30px 34px 22px; box-shadow: var(--shadow-card); }
  .detail-title { font-size: 28px; margin-bottom: 16px; }
  .detail-content { font-size: 17px; line-height: 1.85; }
  .detail-side { display: block; width: 300px; flex: none; order: -1; position: sticky; top: 66px; }
  .side-card { background: var(--card); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-card); }
  .side-card + .side-card { margin-top: 14px; }
  .side-title { font-size: 14px; font-weight: 800; margin: 0 0 12px; color: #1f2329; }
  .side-author { display: flex; align-items: center; gap: 10px; cursor: pointer; }
  .side-author .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
  .side-author .name { font-size: 14px; font-weight: 700; color: #2b2f36; }
  .side-author .muted { margin-top: 2px; }
  .side-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sub); padding: 5px 0; }
  .side-row b { color: var(--text); font-weight: 600; }
}

/* ---------- 评论 ---------- */
.comment-item { display: flex; gap: 10px; padding: 13px 16px; }
.comment-item .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eef1f5; flex: none; }
.comment-item .c-main { flex: 1; min-width: 0; }
.comment-item .c-name { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 4px; }
.comment-item .c-text { font-size: 14px; margin: 2px 0 4px; word-break: break-word; }
.comment-item .c-reply { background: #f6f7f9; border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: 13px; }
.comment-bar {
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

/* ---------- 我的（个人中心：通栏头图 + 桌面端左菜单/右内容两栏） ---------- */
.me-page { background: var(--bg); }

/* 头部通栏横幅 */
.me-hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 24px 16px 28px; color: #fff; }
.me-hero-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.me-hero .avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5);
  object-fit: cover; background: rgba(255,255,255,.25); flex: none; cursor: pointer;
}
.me-hero-info { flex: 1; min-width: 0; cursor: pointer; }
.me-hero .name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.me-hero .sub { font-size: 12.5px; opacity: .85; margin-top: 3px; }
.me-hero-btn {
  --van-button-small-height: 32px; flex: none; border: none; color: #fff;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
}

/* 内容区：移动端单列，桌面端两栏 */
.me-wrap { max-width: 1080px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.me-side { min-width: 0; }
.me-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* 左栏菜单卡 */
.me-menu { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.me-menu .item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: background .12s ease; }
.me-menu .item:last-child { border-bottom: none; }
.me-menu .item:hover { background: #f7f9fd; }
.me-menu .item .ic {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; background: var(--brand-light); color: var(--brand);
}
.me-menu .item .mid { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.me-menu .item .mid b { font-size: 14px; font-weight: 600; color: #1f2329; }
.me-menu .item .mid em { font-style: normal; font-size: 11.5px; color: var(--sub); }
.me-menu .item .arrow { color: #c8ccd4; flex: none; }
/* 菜单选中态 */
.me-menu .item.on { background: #eef3ff; }
.me-menu .item.on .ic { background: var(--brand); color: #fff; }
.me-menu .item.on b { color: var(--brand); }

/* 右侧面板通用 */
.me-panel { display: flex; flex-direction: column; gap: 14px; }
.me-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.me-panel-head .t { font-size: 16px; font-weight: 800; color: #1f2329; }
.me-panel-head .act { font-size: 12.5px; color: var(--brand); font-weight: 600; cursor: pointer; }
.me-panel .feed { padding: 0; }
.me-panel .vip-grid { padding: 0; }

/* 右栏统计卡（网格） */
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.me-stats .cell { background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); text-align: center; padding: 16px 6px; transition: transform .12s ease; }
.me-stats .cell:hover { transform: translateY(-2px); }
.me-stats .num { font-size: 20px; font-weight: 800; color: #1f2329; }
.me-stats .num.price { color: var(--vip); }
.me-stats .label { font-size: 12px; color: var(--sub); margin-top: 3px; }

/* 右栏会员卡 */
.me-vipcard {
  background: linear-gradient(135deg, #2b3242, #141822); color: #fff; border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-card);
}
.me-vipcard .vi { flex: 1; min-width: 0; }
.me-vipcard .t { font-size: 16px; font-weight: 800; }
.me-vipcard .d { font-size: 12px; opacity: .75; margin-top: 3px; }
.me-logout { --van-button-danger-background: #fff; --van-button-danger-border-color: #f3c2bd; }

/* 桌面端（≥900px）：左菜单固定 + 右内容流 */
@media (min-width: 900px) {
  .me-wrap { flex-direction: row; align-items: flex-start; padding: 22px 16px 32px; gap: 20px; }
  .me-side { width: 300px; flex: none; position: sticky; top: 70px; }
  .me-stats .cell { padding: 22px 8px; }
  .me-stats .num { font-size: 26px; }
  .me-stats .label { font-size: 13px; }
}

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; background: linear-gradient(160deg, #eaf0ff 0%, #f5f6f8 45%); padding: 60px 24px 24px; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .t { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }
.login-logo .s { font-size: 12px; color: var(--sub); margin-top: 4px; }
.login-card { background: #fff; border-radius: 18px; padding: 22px 18px; box-shadow: 0 12px 32px -12px rgba(20,30,60,.16); }
.login-tip { text-align: center; font-size: 12px; color: var(--sub); margin-top: 18px; }

/* ---------- 会员中心 ---------- */
.vip-hero { background: linear-gradient(135deg, #2b3242, #141822); color: #fff; padding: 26px 18px 30px; }
.vip-hero .t { font-size: 19px; font-weight: 800; }
.vip-hero .d { font-size: 12px; opacity: .8; margin-top: 4px; }
.vip-grid { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vip-card { background: #fff; border-radius: var(--radius); padding: 16px 14px; position: relative; border: 1.5px solid var(--line); box-shadow: var(--shadow-card); }
.vip-card.cur { border-color: var(--vip); }
.vip-card .name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.vip-card .discount { font-size: 11px; color: var(--sub); margin: 2px 0 8px; }
.vip-card .p { font-size: 19px; font-weight: 800; color: var(--vip); }
.vip-card .p small { font-size: 11px; font-weight: 400; }
.vip-card .y { font-size: 11px; color: var(--sub); margin-top: 2px; }
.vip-card .benefits { margin: 8px 0 10px; padding: 0; list-style: none; font-size: 11px; color: #5a6068; }
.vip-card .benefits li { padding: 1px 0; }

/* ---------- 私信 ---------- */
.conv-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; }
.conv-item:active { background: #f7f9fd; }
.conv-item .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
.conv-item .main { flex: 1; min-width: 0; }
.conv-item .top { display: flex; justify-content: space-between; font-size: 13px; }
.conv-item .top .t { color: var(--sub); font-size: 11px; }
.conv-item .last { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 46px); background: #f2f3f5; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14px; word-break: break-word; box-shadow: 0 1px 2px rgba(20,30,60,.06); }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.other { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.chat-input { background: #fff; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }

/* ---------- 发布 ---------- */
.publish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 16px 12px; }
.publish-grid .cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f0f2f5; }
.publish-grid .cell img { width: 100%; height: 100%; object-fit: cover; }
.publish-grid .add { display: flex; align-items: center; justify-content: center; height: 100%; border: 1.5px dashed #ccd2db; border-radius: 10px; color: #aab1bd; font-size: 26px; }

/* ---------- 用户页 ---------- */
.user-header { background: linear-gradient(135deg, #eaf0ff, #f5f6f8); padding: 20px 16px 18px; }
.user-header .row { display: flex; align-items: center; gap: 14px; }
.user-header .avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #e6eaf1; }
.user-header .name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.user-header .bio { font-size: 12px; color: var(--sub); margin-top: 2px; }

/* ---------- 通知 ---------- */
.notice-item { display: flex; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.notice-item.unread { background: #f6f9ff; }
.notice-item .icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.notice-item .main { flex: 1; min-width: 0; }
.notice-item .t { font-size: 13px; font-weight: 600; }
.notice-item .c { font-size: 12px; color: var(--sub); margin-top: 1px; }
.notice-item .time { font-size: 11px; color: #b6bcc5; }

/* ---------- 超级管理员徽章 ---------- */
.role-badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; flex: none;
  background: linear-gradient(135deg, #8e6bff, #6a3df0); line-height: 18px;
  box-shadow: 0 2px 6px rgba(106, 61, 240, .3);
}

/* ---------- 子页面统一框架（桌面端居中限宽 + 白卡分组） ---------- */
.pg { max-width: 1080px; margin: 0 auto; padding: 14px 16px 28px; }
.pg-narrow { max-width: 720px; }
.pg-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.pg-card + .pg-card { margin-top: 14px; }
.pg-sec { font-size: 13px; font-weight: 800; color: #5a6068; margin: 2px 2px 10px; letter-spacing: .3px; }
.pg-list .row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s ease;
}
.pg-list .row:last-child { border-bottom: none; }
.pg-list .row:hover { background: #f7f9fd; }
.pg-list .row .arrow { margin-left: auto; color: #c8ccd4; flex: none; }

/* 通知列表（卡片式） */
.notice-row { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: relative; }
.notice-row:last-child { border-bottom: none; }
.notice-row.unread { background: #f6f9ff; }
.notice-row.unread::before {
  content: ""; position: absolute; left: 6px; top: 20px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}
.notice-row .icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px;
}
.notice-row .main { flex: 1; min-width: 0; }
.notice-row .t { font-size: 14px; font-weight: 700; color: #1f2329; }
.notice-row .c { font-size: 12.5px; color: #5a6068; margin-top: 3px; line-height: 1.6; word-break: break-word; }
.notice-row .time { font-size: 11px; color: #b6bcc5; flex: none; padding-top: 2px; }

/* 用户主页头部（重构） */
.user-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  padding: 26px 16px 30px;
}
.user-hero-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.user-hero .avatar {
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5);
  object-fit: cover; background: rgba(255,255,255,.25); flex: none;
}
.user-hero-info { flex: 1; min-width: 0; }
.user-hero .name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-hero .bio { font-size: 13px; opacity: .9; margin-top: 4px; }
.user-hero .stats { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; opacity: .92; }
.user-hero .stats b { font-size: 15px; font-weight: 800; margin-right: 3px; }
.user-hero-btns { flex: none; display: flex; gap: 10px; }
.user-hero-btns .van-button { --van-button-small-height: 32px; }

/* 会员套餐：桌面多列 */
.vip-hero-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vip-hero-act { display: flex; align-items: center; gap: 12px; }
@media (min-width: 768px) {
  .vip-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
  .vip-hero { text-align: center; }
  .vip-hero-in { justify-content: center; }
}

/* 编辑资料 / 发布页：表单卡分组 */
.pg-form .van-cell-group { margin-bottom: 14px; }
.pg-avatar-edit { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pg-avatar-edit img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
.pg-avatar-ph {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 300;
}

/* ---------- 底部标签栏 ---------- */
.van-tabbar {
  box-shadow: 0 -6px 18px rgba(20, 30, 60, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
