/* ==========================================================================
   同城信息网 · 移动端样式 (m/css/style.css)
   纯静态模板，375–414px 视口，无横向溢出。
   设计令牌与 PC base.css 同值，组件按移动端重写。
   ========================================================================== */

:root {
  /* 品牌色 */
  --c-primary:        #E85D26;
  --c-primary-700:     #C94A18;
  --c-primary-50:     #FDF0E9;
  --c-teal:            #0F8A6D;
  --c-teal-700:        #0C6F58;
  --c-teal-50:         #E8F5F0;

  /* 中性色 */
  --c-ink:             #1F2429;
  --c-body:            #4A5058;
  --c-muted:           #8A919C;
  --c-faint:           #B9C0C9;
  --c-line:            #E7E9ED;
  --c-bg:              #F4F5F7;
  --c-white:           #FFFFFF;
  --c-danger:          #D93A3A;
  --c-danger-50:       #FDEDED;
  --c-gold:            #F5A623;
  --c-gold-50:         #FEF6E7;

  /* 频道识别色 */
  --cat-second:   #D97706;
  --cat-house:    #2563EB;
  --cat-car:      #0284C7;
  --cat-job:      #059669;
  --cat-activity: #E11D48;
  --cat-pet:      #DB2777;
  --cat-life:     #0D9488;
  --cat-edu:      #0891B2;
  --cat-biz:      #475569;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;

  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .07);

  --tabbar-h: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  /* 防止横向溢出 */
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--c-ink); }

/* 手机端页面在宽屏居中（桌面预览时模拟手机） */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  position: relative;
  overflow-x: hidden;
}

.hide { display: none !important; }
.text-muted { color: var(--c-muted) !important; }
.text-danger { color: var(--c-danger) !important; }
.text-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-ellipsis-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.num { font-variant-numeric: tabular-nums; }

/* 价格 */
.price { color: var(--c-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.price .unit { font-size: .72em; font-weight: 400; color: var(--c-muted); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 600;
  transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-teal { background: var(--c-teal); color: #fff; }
.btn-outline { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-ghost { background: #fff; color: var(--c-body); border: 1px solid var(--c-line); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-md); }
/* AI 补全小按钮（内容区右上角）：橙底白字，覆盖 .btn 默认的 44px 高度与 15px 字号 */
.btn-ai-mini {
  height: 30px; min-height: 30px; padding: 0 9px;
  background: var(--c-primary); color: #fff; border: 0;
  font-size: 11px; border-radius: 3px; white-space: nowrap;
}

/* 标签 */
.tag {
  display: inline-block; padding: 1px 8px; border-radius: var(--r-sm, 4px);
  font-size: 11px; line-height: 1.7; background: #F0F1F4; color: var(--c-muted);
  white-space: nowrap;
}
.tag-primary { background: var(--c-primary-50); color: var(--c-primary); }
.tag-teal { background: var(--c-teal-50); color: var(--c-teal); }
.tag-gold { background: var(--c-gold-50); color: var(--c-gold); }
.tag-danger { background: var(--c-danger-50); color: var(--c-danger); }
.tag-cat-second { background: #FDF1E0; color: var(--cat-second); }
.tag-cat-house { background: #E8EEFC; color: var(--cat-house); }
.tag-cat-car { background: #E3F2FA; color: var(--cat-car); }
.tag-cat-job { background: #E2F5EE; color: var(--cat-job); }
.tag-cat-activity { background: #FDE7EC; color: var(--cat-activity); }
.tag-cat-pet { background: #FCE8F1; color: var(--cat-pet); }
.tag-cat-life { background: #E0F4F2; color: var(--cat-life); }
.tag-cat-edu { background: #E0F4F9; color: var(--cat-edu); }
.tag-cat-biz { background: #ECEFF3; color: var(--cat-biz); }

/* 徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 1px 7px; border-radius: var(--r-pill); font-weight: 600;
}
.badge-ok { background: var(--c-teal-50); color: var(--c-teal); }
.badge-gold { background: var(--c-gold-50); color: var(--c-gold); }
.badge-top { background: var(--c-danger); color: #fff; }

/* 卡片 */
.card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}

/* 区块标题 */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px;
}
.sec-title { font-size: 17px; font-weight: 700; color: var(--c-ink); margin: 0; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--c-primary); }
.sec-more { font-size: 12px; color: var(--c-muted); display: inline-flex; align-items: center; gap: 2px; }

/* 页面主体：给底部 TabBar 留空间 */
.page-body { padding-bottom: calc(var(--tabbar-h) + 16px); }
.page-body.no-tabbar { padding:10px 0 16px; }
.sub-header + .page-body.no-tabbar { padding-top: 10px; }

/* ==========================================================================
   顶部条
   ========================================================================== */
.mobile-hero { margin:0; padding:0; background:var(--c-primary); overflow:visible; position:relative; z-index:31; }
.topbar {
  position: sticky; top: 0; z-index: 30; margin:0; border:0;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 12px;
  background: var(--c-primary); color: #fff;
}
.topbar .tb-city { display: flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; }
.topbar .tb-city svg { width: 15px; height: 15px; }
.topbar .tb-logo { flex: 1; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.topbar .tb-logo em { font-style: normal; opacity: .9; }
.topbar .tb-publish {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.2); padding: 5px 12px; border-radius: var(--r-pill);
  color: #fff;
}
.topbar .tb-publish svg { width: 14px; height: 14px; }
.topbar .tb-city { position: relative; flex-shrink: 0; }
.topbar .tb-city summary {
  display: flex; align-items: center; gap: 3px;
  list-style: none; cursor: pointer; color: #fff;
}
.topbar .tb-city summary::-webkit-details-marker { display: none; }
.topbar .tb-city .caret { width: 10px; height: 10px; opacity: .8; transition: transform .2s; }
.topbar .tb-city[open] .caret { transform: rotate(180deg); }
.topbar .tb-city .drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 180px; width: 76vw; max-width: 320px;
  max-height: 420px; max-height: min(60vh, 420px); overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #fff; color: #1F2429;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 6px; z-index: 100;
}
.topbar .tb-city:not([open]) .drop { display: none; }
.topbar .tb-city .drop-filter {
  position: sticky; top: 0; z-index: 2;
  display: block; width: 100%; box-sizing: border-box;
  margin: 0 0 4px; padding: 8px 10px;
  border: 1px solid #e5e8ee; border-radius: 7px;
  background: #fff; color: #1F2429; font-size: 13px; outline: none;
}
.topbar .tb-city .drop-filter:focus { border-color: var(--c-primary); }
.topbar .tb-city .drop-empty { display: none; padding: 10px; color: #8b95a5; font-size: 12px; text-align: center; }
.topbar .tb-city .drop a {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: #1F2429; font-size: 13px; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar .tb-city .drop a:hover,
.topbar .tb-city .drop .drop-active { background: #fff1f0; color: var(--c-primary); font-weight: 600; }

/* ==========================================================================
   搜索条
   ========================================================================== */
.search-wrap { margin:0; padding:10px 12px; background: var(--c-primary); }
.search-form {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--r-pill); height: 40px; padding: 0 6px 0 14px;
}
.search-form svg { width: 17px; height: 17px; color: var(--c-faint); flex: none; }
.search-form input {
  flex: 1; border: none; outline: none; height: 100%; min-width: 0; font-size: 15px;
}
.search-form button {
  flex: none; height: 32px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 600;
}

/* ==========================================================================
   9宫格分类
   ========================================================================== */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px;
  background: #fff; margin: 8px 12px 6px; padding: 14px 8px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cat-icon svg { width: 23px; height: 23px; }
.cat-name { font-size: 12px; color: var(--c-ink); }
.ci-second { background: var(--cat-second); }
.ci-house { background: var(--cat-house); }
.ci-car { background: var(--cat-car); }
.ci-job { background: var(--cat-job); }
.ci-activity { background: var(--cat-activity); }
.ci-pet { background: var(--cat-pet); }
.ci-life { background: var(--cat-life); }
.ci-edu { background: var(--cat-edu); }
.ci-biz { background: var(--cat-biz); }

/* ==========================================================================
   轮播
   ========================================================================== */
.swiper { position: relative; margin: 0 12px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.swiper-track { display: flex; transition: transform .35s ease; }
.swiper-slide { flex: 0 0 100%; }
.swiper-slide img { width: 100%; height: 150px; object-fit: cover; }
.swiper-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.swiper-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6);
  cursor: pointer; transition: all .2s;
}
.swiper-dots i.active { width: 16px; border-radius: 3px; background: #fff; }

/* ==========================================================================
   信息流（图左文右紧凑行）
   ========================================================================== */
.flow-list { background: #fff; margin: 5px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.mcard {
  display: flex; gap: 10px; padding: 12px;
  border-bottom: 1px solid var(--c-line);
}
.mcard:last-child { border-bottom: none; }
.mcard-img {
  flex: none; width: 96px; height: 96px; border-radius: var(--r-md); overflow: hidden; background: #F0F1F4; position: relative;
}
.mcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mcard-title {
  font-size: 14px; font-weight: 600; color: var(--c-ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mcard-desc {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-rec .mcard-desc { margin-top: 5px; -webkit-line-clamp: 2; line-clamp: 2; }
.mcard-tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.mcard-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mcard-meta .price { font-size: 17px; }
.mcard-meta .sub { font-size: 11px; color: var(--c-muted); }

/* 我的关注：用户卡片（圆形头像 + 名称 + 联系信息 + 操作按钮） */
.follow-card { display: flex; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--c-line); align-items: center; }
.follow-card:last-child { border-bottom: none; }
.follow-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--c-primary-50); color: var(--c-primary); font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.follow-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-name { font-size: 15px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 6px; }
.follow-meta { margin-top: 4px; font-size: 12px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.follow-actions { margin-top: 8px; display: flex; gap: 16px; font-size: 13px; }

/* 站内信列表操作按钮 */
.msg-actions { display: flex; flex-shrink: 0; gap: 8px; align-items: center; }
.msg-btn {
  min-width: 58px; height: 30px; padding: 0 14px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.msg-btn:active { opacity: .88; transform: scale(.98); }
.msg-btn.msg-btn-primary { color: #fff; background: var(--c-primary); border: 1px solid var(--c-primary); box-shadow: 0 2px 6px rgba(232, 93, 38, .22); }
.msg-btn.msg-btn-danger { color: var(--c-danger); background: #fff5f5; border: 1px solid #f2c6c6; }

/* 资金记录列表 */
.current-balance { margin: 12px 12px 10px; padding: 10px 16px; display:flex; align-items:center; justify-content:flex-start; gap:6px; background: linear-gradient(135deg,#fff7ed 0%,#ffffff 100%); border:1px solid #ffe2c7; border-radius: var(--r-lg); box-shadow: var(--shadow-md); font-size:13px; color:#555; }
.cb-value { font-size:20px; font-weight:800; color:#e67e22; line-height:1.2; }
.money-table { margin: 12px 12px 10px; background:#fff; border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-md); }
.mt-row { display:flex; align-items:center; gap:8px; padding:11px 10px; border-bottom:1px solid var(--c-line); font-size:13px; }
.mt-row:last-child{border-bottom:none;}
.mt-head { background:#f6f7f9; font-weight:600; color:#555; font-size:12.5px; }
.mt-cause { flex:1.3; min-width:0; }
.mt-amount { flex:0.9; text-align:right; font-weight:600; white-space:nowrap; }
.mt-balance { flex:1.25; text-align:center; color:var(--c-muted); font-size:11px; white-space:nowrap; }
.mt-time { flex:1.15; text-align:right; color:var(--c-muted); font-size:11.5px; white-space:nowrap; }
.mt-amount.in { color:#0f8a6d; }
.mt-amount.out { color:#d93a3a; }
.mt-note { display:block; font-size:11px; color:var(--c-muted); margin-top:2px; }
.mt-repay { margin-top:6px; display:flex; justify-content:flex-end; }

.flow-load { padding: 14px; text-align: center; }
.flow-load .btn { width: 100%; }

/* ==========================================================================
   筛选条（列表页）
   ========================================================================== */
.filter-bar {
  position: sticky; top: 48px; z-index: 20;
  display: flex; background: #fff; border-bottom: 1px solid var(--c-line);
}
.fb-item {
  flex: 1; position: relative;
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 14px; color: var(--c-body);
}
.fb-item svg { width: 12px; height: 12px; transition: transform .2s; }
.fb-toggle {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 14px; color: var(--c-body); background: none;
}
.fb-item.open .fb-toggle { color: var(--c-primary); }
.fb-item.open svg { transform: rotate(180deg); }
.fb-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
  background: #fff; box-shadow: var(--shadow-md); border-radius: 0 0 var(--r-lg) var(--r-lg);
  max-height: 320px; overflow-y: auto;
}
.fb-item.open .fb-panel { display: block; }
.fb-panel a {
  display: block; padding: 12px 16px; font-size: 14px; color: var(--c-body);
  border-bottom: 1px solid var(--c-line); min-height: 44px; display: flex; align-items: center;
}
.fb-panel a:last-child { border-bottom: none; }
.fb-panel a.active { color: var(--c-primary); font-weight: 600; background: var(--c-primary-50); }

/* 列表页频道标题：上下 padding 均衡，保证标题文字在栏内垂直居中 */
.channel-head { padding: 9px 12px 9px; }
.channel-head h1 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 8px; }
.channel-head .ch-dot { width: 8px; height: 18px; border-radius: 3px; background: var(--c-primary); }
.channel-head .ch-count { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

/* ==========================================================================
   详情页
   ========================================================================== */
.gallery { position: relative; background: #000; }
.gallery-main { width: 100%; height: auto; overflow: hidden; }
.gallery-main img { width: 100%; height: auto; display: block; }
.gallery-thumbs {
  display: flex; gap: 8px; padding: 10px 12px; background: #fff; overflow-x: auto;
}
.gallery-thumbs img {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover;
  border: 2px solid transparent; background: #F0F1F4; cursor: pointer;
}
.gallery-thumbs img.active { border-color: var(--c-primary); }

.detail-card { background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px; }
.expire-desc-wrap { position: relative; }
.info-expire-mask { position: absolute; inset: 0; z-index: 20; background: rgba(188,193,198,.62); display: flex; align-items: center; justify-content: center; }
.info-expire-mask span { font-size: 20px; font-weight: 700; color: #666; background: rgba(255,255,255,.78); padding: 12px 24px; border-radius: 10px; letter-spacing: 4px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--c-primary); }
.detail-price .unit { font-size: 13px; font-weight: 400; color: var(--c-muted); }
.detail-title { font-size: 18px; font-weight: 700; color: var(--c-ink); line-height: 1.4; margin: 8px 0; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.param-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--c-line); margin-top: 12px;
}
.param-grid .pg-cell {
  display: flex; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--c-line);
}
.param-grid .pg-cell:nth-child(odd) { padding-right: 12px; }
.param-grid .pg-cell .k { color: var(--c-muted); flex: none; min-width: 60px; }
.param-grid .pg-cell .v { color: var(--c-ink); font-weight: 500; }

.detail-desc { font-size: 14px; color: var(--c-body); line-height: 1.8; }
.detail-desc p { margin-bottom: .8em; }

/* 发布者卡 */
.publisher {
  display: flex; align-items: center; gap: 10px;
  background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 12px 14px;
}
.publisher .avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #F0F1F4; flex: none; }
.publisher .avatar img { width: 100%; height: 100%; object-fit: cover; }
.publisher .pub-info { flex: 1; min-width: 0; }
.publisher .pub-name { font-size: 15px; font-weight: 700; color: var(--c-ink); display: flex; align-items: center; gap: 6px; }
.publisher .pub-sub { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.publisher .pub-call { flex: none; }

/* 相关推荐 */
.rel-rec { background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }

/* 底部悬浮操作条（位于 TabBar 上方） */
.action-bar {
  position: fixed; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-top: 1px solid var(--c-line);
  padding: 8px 12px;
}
/* 详情页内容区：给操作条 + TabBar 同时留空间 */
.with-actionbar { padding-bottom: calc(var(--tabbar-h) + 76px + 20px); }
.ab-icon { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 11px; color: var(--c-muted); gap: 2px; }
.ab-icon svg { width: 22px; height: 22px; }
.ab-icon.fav-on { color: var(--c-danger); }
.ab-icon .heart { transition: transform .15s; }
.ab-icon.fav-on .heart { fill: var(--c-danger); stroke: var(--c-danger); }
.action-bar .btn { flex: 1; }
.action-bar .btn-call { flex: 1; background: var(--c-teal); color: #fff; }

/* ==========================================================================
   文章页
   ========================================================================== */
.col-chips {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #fff;
  border-bottom: 1px solid var(--c-line);
}
/* 分类页：超过一行自动换行，不出现横向滑动条 */
.col-chips.wrap { flex-wrap: wrap; overflow-x: visible; }
/* 分类页：默认显示前9个，点"更多"展开 */
.col-chips .more-hide { display: none; }
.col-chips.open .more-hide { display: inline-flex; }
.col-chips .chips-more { color: var(--c-primary); }

/* 首页最新资讯 */
.news-list { background: #fff; margin: 0 12px 6px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.news-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--c-line); }
.news-item:last-child { border-bottom: none; }
.news-title { flex: 1; min-width: 0; font-size: 14px; color: var(--c-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-date { flex: none; font-size: 11px; color: var(--c-muted); }

/* 分段切换 tab（咨询管理 收到的/我发出的） */
.seg-tabs { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--c-line); }
.seg-tab { flex: 1; text-align: center; padding: 8px 0; border-radius: var(--r-pill); background: #F0F1F4; color: var(--c-body); font-size: 13px; text-decoration: none; }
.seg-tab.active { background: var(--c-primary); color: #fff; font-weight: 600; }
.col-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px;
  background: #F0F1F4; color: var(--c-body); min-height: 32px; display: inline-flex; align-items: center;
}
.chip.active { background: var(--c-primary); color: #fff; font-weight: 600; }

/* 模型详情特色：chips 按模型频道色 */
.chip-house { background: var(--cat-house); color: #fff; }
.chip-car   { background: var(--cat-car); color: #fff; }
.chip-job   { background: var(--cat-job); color: #fff; }
.chip-life  { background: var(--cat-life); color: #fff; }
.chip-pet   { background: var(--cat-pet); color: #fff; }

.article-page { padding-top: 10px; }
.article-list { background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.art-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; border-bottom: 1px solid var(--c-line); }
.art-item:last-child { border-bottom: none; }
.art-thumb { flex: none; width: 104px; height: 76px; border-radius: var(--r-md); overflow: hidden; background: #F0F1F4; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-thumb-empty { display: flex; align-items: center; justify-content: center; background: #FDF0E2; color: #C98A5E; font-size: 13px; }
.art-thumb-empty .art-thumb-empty-text { font-size: 13px; color: #C98A5E; letter-spacing: 1px; }
.art-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.art-title { font-size: 15px; font-weight: 600; color: var(--c-ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-desc { margin: 6px 0 8px; font-size: 12px; line-height: 1.55; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-muted); }
.empty-card { text-align: center; color: var(--c-muted); padding: 42px 14px; }

/* 文章详情 */
.article-detail { padding: 18px 14px; }
.art-breadcrumb { margin-bottom: 10px; font-size: 12px; color: var(--c-muted); }
.art-breadcrumb a { color: var(--c-primary); }
.art-info { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); font-size: 12px; color: var(--c-muted); }
.art-content p { margin: 0 0 12px; }
.art-content img, .art-content table { max-width: 100%; }
.art-content table { width: 100%; border-collapse: collapse; }
.art-content td, .art-content th { padding: 8px; border: 1px solid var(--c-line); }
.art-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.art-nav-item { display: flex; align-items: baseline; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f8f9fb; font-size: 13px; color: var(--c-body); }
.art-nav-item label { flex: none; margin: 0; font-size: 12px; color: var(--c-muted); }
.art-nav-item a { flex: 1; min-width: 0; color: var(--c-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.art-nav-item.is-empty { display: flex; align-items: baseline; gap: 6px; padding: 2px; background: transparent; }
.art-nav-item.is-empty label { margin: 0; font-size: 12px; }
.art-nav-item .muted { font-size: 12px; color: var(--c-faint); }

/* 帮助中心 */
.help-page { padding-top: 10px; }
.help-list { background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.help-item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--c-line); }
.help-item:last-child { border-bottom: none; }
.help-item-main { flex: 1; min-width: 0; }
.help-item-title { font-size: 15px; font-weight: 600; color: var(--c-ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-item-desc { margin: 6px 0 6px; font-size: 12px; line-height: 1.55; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-item-meta { font-size: 11px; color: var(--c-faint); }
.help-arrow { flex: none; font-size: 22px; line-height: 1; color: #c8cdd4; }
.help-detail { padding: 18px 14px; }
.help-breadcrumb { margin-bottom: 10px; font-size: 12px; color: var(--c-muted); }
.help-breadcrumb a { color: var(--c-primary); }
.help-content img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 8px 0; }
.help-content ul, .help-content ol { margin: 0 0 12px 20px; }
.help-content li { margin: 4px 0; }
.help-more-card { margin: 10px 12px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.help-more-title { margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.help-side-item { display: block; padding: 11px 8px; border-bottom: 1px solid var(--c-line); font-size: 14px; color: var(--c-body); word-break: break-all; }
.help-side-item:last-child { border-bottom: none; }
.help-side-item.active { color: var(--c-primary); background: #fff3e6; border-radius: 10px; font-weight: 600; }

/* 帮助中心 */
.support-page { padding-top: 10px; }
.support-hero { margin: 10px 12px; padding: 18px 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-700)); box-shadow: 0 6px 18px rgba(232, 93, 38, .18); }
.support-hero-top { display: flex; align-items: center; gap: 12px; }
.support-avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.support-avatar svg { width: 28px; height: 28px; }
.support-welcome { font-size: 17px; font-weight: 700; }
.support-time { margin-top: 4px; font-size: 12px; opacity: .86; line-height: 1.5; }
.support-contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.14); }
.support-contact-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.support-contact-label { flex: 0 0 48px; font-size: 11px; opacity: .82; }
.support-contact-value { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; word-break: break-all; }
.support-copy { flex: none; padding: 6px 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.support-actions { display: flex; gap: 10px; margin-top: 14px; }
.support-action-btn { flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 999px; background: #fff; color: var(--c-primary); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.support-action-btn.ghost { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.support-card { background: #fff; margin: 10px 12px; padding: 14px; border-radius: 16px; box-shadow: var(--shadow-md); }
.support-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.support-more { font-size: 12px; font-weight: 500; color: var(--c-primary); text-decoration: none; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.support-quick { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border-radius: 11px; background: var(--c-primary-50); color: var(--c-ink); text-decoration: none; }
.support-quick-teal { background: var(--c-teal-50); }
.support-quick-gold { background: var(--c-gold-50); }
.support-quick-blue { background: #EEF2FF; }
.support-quick-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.support-quick-teal .support-quick-icon { color: var(--c-teal); }
.support-quick-gold .support-quick-icon { color: var(--c-gold); }
.support-quick-blue .support-quick-icon { color: #4F63D8; }
.support-quick-icon svg { width: 16px; height: 16px; }
.support-quick-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-quick-desc { display: none; }
.support-help-list { display: block; }
.support-help-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.support-help-item:last-child { border-bottom: none; }
.support-help-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.support-help-arrow { flex: none; font-size: 22px; line-height: 1; color: #c8cdd4; }
.support-empty { padding: 28px 0; text-align: center; color: var(--c-muted); font-size: 13px; }
.support-note { padding: 8px 16px 18px; text-align: center; font-size: 12px; color: var(--c-muted); line-height: 1.6; }

/* ==========================================================================
   会员中心
   ========================================================================== */
.user-card {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-700));
  margin: 12px; border-radius: var(--r-lg); padding: 18px 16px; color: #fff;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md);
}
.user-card .avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2); flex: none; }
.user-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap { position: relative; flex: none; }
.member-home .avatar-wrap { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.member-home .avatar-wrap .avatar { width: 100%; height: 100%; border: 0; background: transparent; }
.avatar-edit-mask { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; display: flex; align-items: center; justify-content: center; background: transparent; text-decoration: none; z-index: 2; }
.avatar-edit-mask span { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: rgba(255,255,255,.18); color: #fff; border-radius: 0; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.user-card .u-name { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.user-card .u-badges { display: flex; gap: 6px; margin-top: 6px; }
.user-card .u-badges .badge { background: rgba(255,255,255,.22); color: #fff; }
.user-card .u-badges .badge-ok { background: var(--c-teal); }

/* 会员中心首页：整体上移，减少顶部留白 */
.member-home { padding-top: 0 !important; margin-top: 0; }
.member-home .user-card { margin: 0 12px 12px; padding: 14px 16px; }
.member-home .stat-row { margin: 0 12px 12px; }
.member-home .func-grid { margin: 12px; padding: 16px 8px; }
.member-top-actions { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 8px; }
.member-top-actions a,
.member-top-actions .member-logout { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; line-height: 1.2; text-decoration: none; }
.member-top-actions svg { width: 14px; height: 14px; }

.stat-row {
  display: flex; background: #fff; margin: 0 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.stat-row .stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; text-align: center; padding: 12px 8px; }
.stat-row .stat + .stat { border-left: 1px solid var(--c-line); }
.stat-row a.stat-link { color: inherit; text-decoration: none; }
.stat-row a.stat-link:active { background: var(--c-primary-50); }
.stat .num { font-size: 20px; font-weight: 800; color: var(--c-ink); word-break: break-word; }
.stat .lbl { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.func-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px;
  background: #fff; margin: 12px; padding: 18px 8px; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.func-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.func-item .fi-ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.func-item .fi-ico svg { width: 22px; height: 22px; }
.func-item .fi-name { font-size: 12px; color: var(--c-body); }

/* 会员中心：频道卡片（我的发布 / 我的关注，一行并排） */
.member-channels { display: flex; gap: 10px; margin: 0 12px 12px; }
.fav-channel {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 12px; text-decoration: none;
}
.fav-channel:active { background: var(--c-primary-50); }
.fav-channel-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--c-primary-50); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.fav-channel-ico svg { width: 22px; height: 22px; }
.follow-channel .fav-channel-ico { background: var(--c-teal-50); color: var(--c-teal); }
.fav-channel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fav-channel-text strong { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.fav-channel-text small { font-size: 12px; color: var(--c-muted); }
.fav-channel-arrow { font-size: 20px; color: var(--c-faint); }

/* 会员中心：VIP 行 / 徽章变体 */
.member-home .vip-line { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.92); }
.badge-vip { background: linear-gradient(135deg, #F5A623, #E8880E); color: #fff; }
.badge-normal { background: rgba(255,255,255,.22); color: #fff; }
.badge-remain { background: var(--c-teal); color: #fff; }

/* 会员中心：开通 VIP 页 */
.vip-hero { margin: 10px 12px; padding: 20px 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #F5A623, #E8880E); box-shadow: 0 6px 18px rgba(232, 136, 14, .2); }
.vip-hero-title { display: flex; align-items: center; gap: 8px; }
.vip-crown { background: rgba(255,255,255,.25); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px; }
.vip-hero-name { font-size: 20px; font-weight: 800; }
.vip-hero-desc { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.92); }
.vip-expire { margin-top: 4px; font-weight: bold; color: #FFE08A; }
.vip-expire b { color: #FFD75E; font-size: 15px; }
.vip-expire-tip { margin-top: 10px; padding: 10px 12px; background: #FFF9EC; border: 1px solid #FFE2A6; border-radius: 8px; color: #B7791F; font-size: 12px; line-height: 1.6; }
.vip-card { background: #fff; margin: 10px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px; }
.vip-section-title { font-size: 15px; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; }
.vip-benefit-list { margin: 0; padding: 0; list-style: none; }
.vip-benefit-list li { position: relative; padding: 5px 0 5px 18px; font-size: 13px; color: var(--c-body); line-height: 1.6; }
.vip-benefit-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.vip-group-price { margin-left: auto; color: #e69a28; font-weight: 800; font-size: 16px; }
.vip-group-price em { font-style: normal; font-size: 11px; font-weight: 400; color: #999; }
.vip-group-benefit { width: 100%; font-size: 11.5px; color: #999; }
.vip-price-row { display: flex; align-items: baseline; gap: 8px; justify-content: center; padding: 6px 0; }
.vip-price-num { font-size: 34px; font-weight: 800; color: var(--c-primary); }
.vip-price-note { font-size: 12px; color: var(--c-muted); }
.vip-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.vip-cmp th, .vip-cmp td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--c-line); color: var(--c-body); }
.vip-cmp th { font-weight: 600; background: #f6f7f9; }
.vip-cmp .vip-cmp-vip { color: #e69a28; font-weight: 700; }

/* 帮助页：hero 文字 */
.support-hero-text { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.92); line-height: 1.6; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth-tabs { display: flex; margin: 20px 24px 0; border-bottom: 1px solid var(--c-line); }
.auth-tab {
  flex: none; padding: 12px 4px; margin-right: 28px; font-size: 17px; font-weight: 600;
  color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--c-ink); border-bottom-color: var(--c-primary); }
.auth-form { padding: 20px 24px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; height: 46px; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 0 12px; font-size: 16px; background: #fff; outline: none;
}
.form-control:focus { border-color: var(--c-primary); }
.form-control.invalid,
.pay-input.invalid,
select.invalid { border-color: var(--c-danger) !important; }
.pay-channels.invalid { border-color: var(--c-danger); border-radius: var(--r-md); }
.form-row { display: flex; gap: 10px; }
.form-row .form-control { flex: 1; }
.code-btn {
  flex: none; width: 110px; height: 46px; border-radius: var(--r-md);
  background: var(--c-primary-50); color: var(--c-primary); font-size: 13px; font-weight: 600;
}
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: -4px 0 18px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--c-muted); margin-top: 18px; }
.auth-switch a { color: var(--c-primary); font-weight: 600; }
.quick-login { text-align: center; margin-top: 26px; }
.quick-login .ql-tip { font-size: 12px; color: var(--c-faint); margin-bottom: 14px; }
.ql-wechat {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 24px;
  border-radius: var(--r-pill); background: var(--c-teal); color: #fff; font-size: 15px; font-weight: 600;
}
.ql-wechat svg { width: 20px; height: 20px; }

/* ==========================================================================
   发布页表单
   ========================================================================== */
.publish-tip {
  display: flex; align-items: center; gap: 6px; margin: 12px; padding: 10px 12px;
  background: var(--c-teal-50); color: var(--c-teal); border-radius: var(--r-md); font-size: 13px;
}
.publish-tip svg { width: 16px; height: 16px; flex: none; }
.publish-form { background: #fff; margin:10px 12px 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 16px; }
.form-item textarea.form-control { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
.upload-box {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 84px; height: 84px; border: 1px dashed var(--c-faint); border-radius: var(--r-md);
  color: var(--c-muted); font-size: 12px; flex-direction: column; background: #FAFAFB;
}
.upload-box svg { width: 24px; height: 24px; }

/* ==========================================================================
   底部 TabBar
   ========================================================================== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 50;
  display: flex; align-items: center;
  background: #fff; border-top: 1px solid var(--c-line);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.tabbar-item {
  position: relative;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 44px; font-size: 11px; color: var(--c-muted);
}
.tabbar-item svg { width: 23px; height: 23px; }
.tabbar-badge {
  position: absolute; top: 4px; left: calc(50% + 9px);
  min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  border-radius: 8px; background: #e74c3c; color: #fff;
  font-size: 10px; font-weight: 600; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.tabbar-item.active { color: var(--c-primary); }
.tabbar-publish { position: relative; }
.tabbar-publish .pub-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: -8px; box-shadow: 0 6px 16px rgba(232, 93, 38, .4);
}
.tabbar-publish .pub-btn svg { width: 26px; height: 26px; }
.tabbar-publish .pub-label { margin-top: 2px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-wrap {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
  width: max-content; max-width: 90%;
}
.toast {
  background: rgba(31, 36, 41, .9); color: #fff; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-md); max-width: 320px; text-align: center;
}

/* 页面顶部返回栏（详情/文章子页可选） */
.sub-header {
  position: sticky; top: 0; z-index: 30; box-sizing:border-box;
  height: 48px; padding-top:0;
  background:linear-gradient(90deg,#fff3e6,#ffe6d2);
  display: flex; align-items: center; padding-left:8px; padding-right:8px; border-bottom: 1px solid #f3d9c4;
}
.sub-header .back { display: flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--c-ink); }
.sub-header .back svg { width: 22px; height: 22px; }
.sub-header .sh-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: var(--c-ink); margin-right: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   频道详情扩展模块（detail-car / detail-job / detail-house / detail-pet /
   detail-life）—— 仅追加，不修改上方任何既有规则
   ========================================================================== */

/* 横向滚动卖点 chips（车况卖点 / 招聘福利 等） */
.h-chip-row { display: flex; gap: 8px; padding: 12px 0 2px; overflow-x: auto; }
.h-chip-row::-webkit-scrollbar { display: none; }
.h-chip-row .chip { flex: none; }

/* 提示条（车辆检测 / 首付月供 / 健康提示） */
.notice-bar {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 12px; padding: 10px 12px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.5;
}
.notice-bar svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notice-car   { background: #E3F2FA; color: var(--cat-car); }
.notice-house { background: #E8EEFC; color: var(--cat-house); }
.notice-pet   { background: #FCE8F1; color: var(--cat-pet); }
.notice-warn  { background: var(--c-gold-50); color: #B9791A; }

/* 招聘：职位要求块 */
.req-block { font-size: 14px; color: var(--c-body); line-height: 1.9; }
.req-block li { position: relative; padding-left: 16px; }
.req-block li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary);
}

/* 招聘：公司信息卡 */
.company-card { display: flex; gap: 12px; align-items: center; }
.company-card .co-logo {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--cat-job); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.company-card .co-name { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.company-card .co-sub { font-size: 12px; color: var(--c-muted); margin-top: 3px; line-height: 1.5; }

/* 宠物：档案行（品种/年龄/性别/健康） */
.pet-archive {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line);
}
.pet-archive .pa-cell { text-align: center; }
.pet-archive .pa-k { font-size: 11px; color: var(--c-muted); }
.pet-archive .pa-v { font-size: 14px; font-weight: 700; color: var(--c-ink); margin-top: 2px; }

/* 生活服务：服务项目列表 */
.svc-list .svc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--c-line);
}
.svc-list .svc-row:last-child { border-bottom: none; }
.svc-list .svc-name { font-size: 14px; color: var(--c-ink); }
.svc-list .svc-price { font-size: 14px; font-weight: 700; color: var(--c-primary); flex: none; }

/* 资质徽章行 */
.qual-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 操作条主按钮频道变体 */
.btn-book  { background: var(--cat-house); color: #fff; }
.btn-apply { background: var(--cat-job); color: #fff; }
.btn-order { background: var(--cat-life); color: #fff; }

/* 分页 */
.mobile-pager {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	padding: 16px 0;
}
.mobile-pager .mp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 80px; height: 38px; padding: 0 16px;
	border-radius: 8px; background: #fff; border: 1px solid var(--c-line);
	font-size: 14px; color: var(--c-body); text-decoration: none;
}
.mobile-pager .mp-btn:active { background: #f5f5f5; }
.mobile-pager .mp-btn.disabled { color: var(--c-faint); }
.mobile-pager .mp-info { font-size: 13px; color: var(--c-muted); }

.form-tip { font-size: 12px; margin-top: 5px; color:#d93a3a; }

/* 在线充值 */
.pay-card { margin:12px; background:#fff; border-radius:var(--r-lg); padding:18px 16px; box-shadow:var(--shadow-md); }
.pay-balance { font-size:14px; color:var(--c-body); margin-bottom:16px; }
.pay-balance b { color:var(--c-primary); font-size:18px; }
.pay-field { margin-bottom:16px; }
.pay-label { display:block; font-size:13px; color:var(--c-ink); font-weight:600; margin-bottom:8px; }
.pay-info { font-size:15px; color:var(--c-body); line-height:1.6; }
.pay-input { width:100%; box-sizing:border-box; height:44px; border:1px solid var(--c-line); border-radius:var(--r-md); padding:0 12px; font-size:15px; outline:none; }
.pay-input:focus { border-color:var(--c-primary); }
textarea.pay-input { height:auto; min-height:100px; padding:10px 12px; line-height:1.6; resize:vertical; }
.pay-channels { display:flex; flex-wrap:wrap; gap:10px; }
.pay-channel { display:flex; align-items:center; gap:6px; padding:10px 14px; border:1px solid var(--c-line); border-radius:var(--r-md); font-size:14px; cursor:pointer; }
.pay-channel input { accent-color:var(--c-primary); }
.pay-submit { width:100%; height:46px; margin-top:6px; background:var(--c-primary); color:#fff; border:none; border-radius:var(--r-pill); font-size:16px; font-weight:700; }
.pay-submit:active { opacity:.9; }
/* 未配置支付渠道时的提示 */
.pay-empty-tip { padding:24px 0; color:#999; font-size:14px; text-align:center; }
/* 列表页置顶标识 */
.top-badge { display:inline-block; background:#e4393c; color:#fff; font-size:12px; line-height:1.4; padding:1px 6px; border-radius:4px; margin-right:6px; vertical-align:middle; }
/* 财务管理 tab（参考 uniapp 财务页样式） */
.finance-tabs { display:flex; background:#fff; border-radius:12px; padding:6px; margin-bottom:16px; }
.ft-tab { flex:1; text-align:center; padding:10px 0; color:#666; border-radius:10px; font-size:15px; text-decoration:none; }
.ft-tab.on { background:#E85D26; color:#fff; font-weight:600; }
/* 详情页"在线咨询"按钮：淡色版本 */
#consult_toggle_btn { background:#FDF1E8; color:#E8702F; border:1px solid #F4C4A5; font-weight:600; }

/* 发布页 分类/地区联动下拉 */
.pay-card select {
  display:block;
  width:50% !important; max-width:200px; box-sizing:border-box; height:50px !important; margin:0 0 8px; line-height:normal !important; padding:0 12px !important;
  border:1px solid var(--c-line); border-radius:var(--r-md);
  background:#fff; font-size:15px; color:var(--c-body); outline:none;
  -webkit-appearance:auto; appearance:auto;
}
.pay-card select:last-child { margin-bottom:0; }

/* 发布表单 */
.thumb-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:6px; }
#fields .form-item { margin-top:4px; }

/* 分类附加字段（div 结构：act=fields 返回 .form-item > label + .field-ctrl）手机适配 */
#fields .form-item { margin-bottom:14px; }
#fields .form-item label { display:block; font-size:13px; color:var(--c-muted); margin:0 0 6px; font-weight:600; }
#fields .field-ctrl input,
#fields .field-ctrl select,
#fields .field-ctrl textarea {
  max-width:280px; box-sizing:border-box; min-height:44px;
  border:1px solid var(--c-line); border-radius:var(--r-md);
  padding:10px 12px; background:#fff; font-size:15px; color:var(--c-body); outline:none;
}
#fields .field-ctrl input[type="text"],
#fields .field-ctrl select { width:auto !important; min-width:140px; display:block; }
#fields .field-ctrl textarea { width:100% !important; max-width:100%; min-height:84px; resize:vertical; }
#fields .field-ctrl input:focus,
#fields .field-ctrl select:focus,
#fields .field-ctrl textarea:focus { border-color:var(--c-primary); }
#fields .field-ctrl input[type="radio"],
#fields .field-ctrl input[type="checkbox"] { width:auto !important; min-height:0; margin-right:6px; }


/* ==========================================================================
   PHPMPS 模板适配追加（分页 / 通用补全）—— 不改动上方参考规则
   ========================================================================== */
.pages { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; padding:16px 12px; font-size:13px; color:var(--c-body); }
.pages a { padding:6px 12px; background:#fff; border:1px solid var(--c-line); border-radius:var(--r-md); color:var(--c-body); }
.pages a:active { background:var(--c-primary); color:#fff; border-color:var(--c-primary); }
.pages span, .pages font { color:var(--c-muted); }

/* 子页内容区与 .app 容器兼容 */
#main_body.loading { min-height:100vh; }

/* 资讯正文排版 */
.news_content, .detail-desc, .art-content { font-size:15px; line-height:1.8; color:var(--c-body); word-break:break-word; }
.news_content img { max-width:100%; height:auto; border-radius:var(--r-md); margin:6px 0; }

/* 标签内联链接颜色继承 */
.mcard a, .flow-list a { color:inherit; }

/* 动态分类宫格：按顺序轮转频道色（无需后端指定） */
.cat-grid .cat-item:nth-child(1) .cat-icon { background: var(--cat-second); }
.cat-grid .cat-item:nth-child(2) .cat-icon { background: var(--cat-house); }
.cat-grid .cat-item:nth-child(3) .cat-icon { background: var(--cat-car); }
.cat-grid .cat-item:nth-child(4) .cat-icon { background: var(--cat-job); }
.cat-grid .cat-item:nth-child(5) .cat-icon { background: var(--cat-activity); }
.cat-grid .cat-item:nth-child(6) .cat-icon { background: var(--cat-pet); }
.cat-grid .cat-item:nth-child(7) .cat-icon { background: var(--cat-life); }
.cat-grid .cat-item:nth-child(8) .cat-icon { background: var(--cat-edu); }
.cat-grid .cat-item:nth-child(9) .cat-icon { background: var(--cat-biz); }
.cat-grid .cat-item:nth-child(10) .cat-icon { background: var(--cat-second); }
.cat-grid .cat-item:nth-child(11) .cat-icon { background: var(--cat-house); }
.cat-grid .cat-item:nth-child(n+12) .cat-icon { background: var(--cat-biz); }

/* ==========================================================================
   首页公告条
   ========================================================================== */
.ann-bar {
  background: linear-gradient(90deg, #fff7e6, #fff8f0);
  border: 1px solid #ffd591;
  border-radius: 10px;
  margin: 8px 12px 2px;
  padding: 8px 12px;
  position: relative;
  max-height: 46px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ann-bar-link {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #333;
  text-decoration: none;
}
.ann-bar-tag {
  flex: none;
  font-size: 11px;
  line-height: 1.7;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 0 5px;
  margin-top: 1px;
}
.ann-bar-text {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}

/* 首页人才简历入口 */
.cat-grid .cat-item.cat-resume .cat-icon { background: var(--cat-job); }

/* 首页最新简历 */
.resume-home-list {
  margin: 0 16px 4px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.rh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f2f4f7;
  text-decoration: none;
}
.rh-item:last-child { border-bottom: 0; }
.rh-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rh-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-meta {
  font-size: 12px;
  color: #8a94a6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-salary {
  font-size: 13px;
  font-weight: 600;
  color: #e8161e;
  white-space: nowrap;
}
.rh-arrow { color: #c8ccd2; font-size: 18px; }
.resume-home-empty {
  margin: 0 16px 4px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  color: #999;
  font-size: 13px;
  text-align: center;
}

/* 子页返回条：紧贴橙色顶条(48px)下方吸附，避免与 .topbar 层叠 */
.sub-header { top: 0; z-index: 20; background:linear-gradient(90deg,#fff3e6,#ffe6d2); }

/* 通用 Toast 提醒 */
.ph-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 88vw;
  pointer-events: none;
}
.ph-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(31, 36, 41, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.ph-toast-show { opacity: 1; transform: translateY(0); }
.ph-toast-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-toast-icon svg { width: 18px; height: 18px; }
.ph-toast-success { background: rgba(15, 138, 109, .95); }
.ph-toast-error { background: rgba(217, 58, 58, .95); }
.ph-toast-warning { background: rgba(245, 166, 35, .95); }
.ph-toast-text { word-break: break-word; }


/* 多图改造：发布页 6 图位 + 详情页缩略图 */
.thumb-grid{display:flex;flex-wrap:wrap;gap:8px;}
.thumb-cell{position:relative;width:72px;height:72px;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;background:#f7f7f7;}
.thumb-img{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer;}
.thumb-cover{position:absolute;left:0;top:0;background:rgba(217,58,58,.85);color:#fff;font-size:11px;line-height:16px;padding:0 6px;border-radius:0 0 8px 0;z-index:2;}
.thumb-del{position:absolute;right:2px;top:2px;width:18px;height:18px;line-height:16px;text-align:center;background:rgba(0,0,0,.55);color:#fff;border-radius:50%;font-size:13px;cursor:pointer;z-index:2;}
.gallery-thumbs{display:flex;gap:6px;overflow-x:auto;padding:8px 10px;background:#fff;}
.gallery-thumbs .g-thumb{width:64px;height:64px;object-fit:cover;border-radius:6px;border:2px solid transparent;flex:0 0 auto;cursor:pointer;}
.gallery-thumbs .g-thumb.on{border-color:#e64340;}
.param-grid .pg-cell .pg-note{color:#999;font-size:12px;font-weight:normal;margin-left:2px;}

.vip-group-list{display:flex;flex-direction:column;gap:10px;}
.vip-group-item{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:12px 14px;background:#fafafa;border:2px solid #e7e9ed;border-radius:10px;cursor:pointer;}
.vip-group-item.sel{border-color:#e69a28;background:#fff8f0;}
.vip-group-item input{display:none;}
.vip-group-name{font-size:16px;font-weight:800;color:#333;}
.vip-group-price{font-size:20px;font-weight:800;color:#e67e22;}
.vip-group-price em{font-size:12px;font-weight:400;color:#888;font-style:normal;}
.vip-group-benefit{font-size:12px;color:#888;width:100%;}

/* ===== 会员主页 space（手机版）===== */
.space-page{background:var(--c-page);}
.space-breadcrumb{display:flex;align-items:center;gap:4px;font-size:12px;color:#999;padding:10px 12px 0;}
.space-breadcrumb a{color:var(--c-primary);}
.space-hero{display:flex;gap:14px;align-items:center;margin:10px 12px;padding:16px 14px;background:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-md);}
.space-logo{flex-shrink:0;}
.space-logo img,.space-logo span{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--c-primary),var(--c-primary-light,#7ec8f2));}
.space-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;}
.space-company{display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.space-company-name{font-size:17px;font-weight:700;color:var(--c-body,#333);max-width:100%;}
.follow-mobile-btn{min-height:28px;padding:0 10px;font-size:12px;border-radius:999px;line-height:26px;}
.space-contact{display:flex;flex-wrap:wrap;gap:4px 0;font-size:13px;color:#555;}
.space-contact>div{width:50%;line-height:1.7;}
.space-contact>div>span{color:#999;margin-right:6px;}
.space-address{width:100% !important;}
.space-section-title{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;color:var(--c-body,#333);margin:14px 12px 8px;}
.space-section-title::before{content:'';width:4px;height:14px;border-radius:2px;background:var(--c-primary);}
.space-list{margin:0 12px;display:flex;flex-direction:column;gap:10px;}
.space-card{display:block;background:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-md);padding:12px 14px;}
.space-card-title{font-size:15px;font-weight:600;color:var(--c-body,#333);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.space-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;}
.space-date{margin-left:auto;font-size:12px;color:#999;}
.space-intro{font-size:12px;color:#888;line-height:1.6;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* ===== 移动端分享面板（js/mobile-share.js 渲染） ===== */
.share-sheet{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;visibility:hidden;opacity:0;transition:opacity .2s;}
.share-sheet.share-open{visibility:visible;opacity:1;}
.share-mask{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);}
.share-panel{position:absolute;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:#fff;border-radius:14px 14px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box;transform:translateY(100%);transition:transform .25s ease;box-shadow:0 -2px 12px rgba(0,0,0,.08);}
.share-sheet.share-open .share-panel{transform:translateY(0);}
.share-title{font-size:15px;color:#333;text-align:center;font-weight:600;margin-bottom:16px;}
.share-actions{display:flex;justify-content:space-around;margin-bottom:12px;}
.share-action{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:none;padding:6px 8px;font-size:12px;color:#666;}
.share-icon{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f2f4f7;}
.share-icon svg{width:22px;height:22px;stroke:#666;}
.share-icon-copy{background:#eaf3ff;}
.share-icon-copy svg{stroke:#0a7cff;}
.share-icon-qr{background:#fff3e6;}
.share-icon-qr svg{stroke:#f59e0b;}
.share-icon-poster{background:#e8f5f0;}
.share-icon-poster svg{stroke:#0f8a6d;}
.share-qr{text-align:center;padding:12px 0;border-top:1px solid #f0f0f0;}
.share-qr-box img{width:180px;height:180px;border:1px solid #eee;border-radius:8px;}
.share-qr-url{font-size:12px;color:#999;word-break:break-all;padding:0 8px;margin-top:6px;}
.share-qr-tip{font-size:12px;color:#e64340;padding:10px 0;}
.share-poster{text-align:center;padding:12px 0;border-top:1px solid #f0f0f0;}
.share-poster-box{margin-bottom:10px;}
.share-poster-box img{width:100%;max-width:300px;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.12);}
.share-poster-tip{font-size:12px;color:#e64340;padding:0 8px;}
.share-cancel{display:block;width:100%;margin-top:12px;padding:12px 0;background:#f2f3f5;border:none;border-radius:8px;font-size:15px;color:#333;}
.share-body-lock{overflow:hidden;}
/* 联系方式对外展示开关 */
.contact-show{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;color:#666;}
.contact-show input[type=checkbox]{width:16px;height:16px;min-width:0;margin:0;padding:0;flex:none;}

/* 手机认证：发送短信验证码 */
.sms-send-row{display:flex;align-items:center;gap:8px;}
.sms-send-btn{flex:0 0 112px;width:112px;min-height:44px;height:44px;padding:0 8px;font-size:14px;border-radius:var(--r-md);white-space:nowrap;}
.sms-send-btn:disabled,
.sms-send-btn.is-counting{background:#eef0f3;border-color:#e2e6eb;color:#9aa3af;opacity:1;cursor:not-allowed;box-shadow:none;}
.sms-send-tip{margin-top:8px;font-size:12px;line-height:1.5;color:#6b7280;}
.sms-send-tip.is-ok{color:#1a7f37;}
.sms-send-tip.is-warn{color:#b26a00;}
.sms-send-tip.is-error{color:#c0392b;}
