/* ============================================================
   项目加加 · 新前端样式（PHP 版）
   只这一份，token 与 App 的 app/lib/core/theme.dart 一一对应：
     kBrand #C41E3A  kBrandSoft #FFF0F3  kBg #F4F2F4
     kText #1A1A1A   kText2 #5A5F66      kText3 #8E8E93  kBorder #ECEAEB
     kCardShadow = 0 1px 3px rgba(17,24,39,.06), 0 5px 14px rgba(17,24,39,.08)
   ============================================================ */
:root {
  --brand: #C41E3A;
  --brand-rgb: 196, 30, 58;
  --brand-soft: #FFF0F3;
  --bg: #F4F2F4;
  --text: #1A1A1A;
  --text-2: #5A5F66;
  --text-3: #8E8E93;
  --border: #ECEAEB;
  --card-shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 5px 14px rgba(17, 24, 39, .08);
  --r-card: 18px;
  --r-tile: 15px;
  --r-chip: 8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #FFFFFF;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ---------- 顶部品牌行 + 搜索 ---------- */
.hero {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 14px;
  background: #fff;
  border-bottom: 1px solid #EAECEF;
}
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; gap: 7px; }
.brand-years {
  font-size: 10px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 5px; padding: 2px 6px;
}
.brand-slogan { font-size: 11.5px; color: var(--text-3); margin-top: 3px; letter-spacing: .3px; }
.brand-search {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .10);
  display: grid; place-items: center; color: var(--text-2); flex: none;
}
.brand-search svg { width: 18px; height: 18px; }

/* ---------- 分类宫格 5 × 2 ---------- */
.cats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px 6px; margin: 18px 0 4px;
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-tile {
  width: 46px; height: 46px; border-radius: var(--r-tile);
  display: grid; place-items: center; color: #fff;
}
.cat-tile svg { width: 22px; height: 22px; }
/* 选中态照 App：图标外面一圈白缝 + 该分类自己的颜色描边，文字同色加粗 */
.cat { padding: 4px 2px; }
.cat.on .cat-tile { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ring, #C41E3A); }
.cat.on .cat-name { color: inherit; font-weight: 700; }
.cat-name { font-size: 11px; font-weight: 500; color: var(--text-2); line-height: 1.2; }

/* ---------- 4 个功能卡 ---------- */
.quicks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.quick {
  height: 78px; background: #fff; border-radius: 13px; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px;
}
.quick svg { width: 18px; height: 18px; }
.quick b { font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.quick span { font-size: 10px; color: #A0A5AB; line-height: 1.2; }

/* ---------- tab 行 ---------- */
.tabs {
  display: flex; gap: 22px; padding: 12px 14px 0;
  background: #fff; position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid #F1F2F4;
}
.tabs a {
  padding-bottom: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-3);
  position: relative;
}
.tabs a.on { color: var(--text); font-weight: 700; }
.tabs a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px; background: var(--brand);
}

/* ---------- 轮播 ---------- */
.banners { padding: 12px 12px 2px; }
.banner-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 100%; scroll-snap-align: center;
  min-height: 78px; padding: 12px 16px; border-radius: 14px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; position: relative; overflow: hidden;
}
.banner .b-tag {
  align-self: flex-start; font-size: 10px; font-weight: 600;
  background: rgba(255, 255, 255, .18); border-radius: 4px; padding: 2px 6px; margin-bottom: 6px;
}
.banner .b-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.banner .b-sub { font-size: 11px; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.banner-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.banner-dots i { width: 5px; height: 5px; border-radius: 3px; background: #D6D3D6; }
.banner-dots i.on { width: 13px; background: var(--brand); }

/* ---------- 列表卡片 ---------- */
.feed { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: block; background: #fff; border-radius: var(--r-card);
  box-shadow: var(--card-shadow); padding: 0;
  border: 1px solid #EFF0F3;
}
.card-top { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 0; }
.card-title {
  flex: 1; min-width: 0; margin: 0;
  font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.3px; color: #16181B;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-top-badge {
  flex: none; margin-top: 2px; padding: 3px 9px; border-radius: 7px;
  background: var(--brand-soft); color: #E03A4E; font-size: 11px; font-weight: 600; line-height: 1.2;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px 0; }
.tag-cat { padding: 4px 11px; border-radius: var(--r-chip); background: rgba(196, 30, 58, .09); color: var(--brand); font-size: 12px; font-weight: 500; }
.tag-kw  { padding: 4px 9px;  border-radius: var(--r-chip); background: #F4F5F7; color: #6B7178; font-size: 11.5px; }
.card-foot {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 16px 0; padding: 12px 0;
  border-top: 1px solid #F1F2F4;
}
.card-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; background: #F1EAEC; }
.card-av img { width: 100%; height: 100%; object-fit: cover; }
.card-av i { display: grid; place-items: center; width: 100%; height: 100%; font-style: normal; font-size: 12px; color: var(--brand); }
.card-nick { font-size: 13px; color: #3A3F45; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-plan {
  font-size: 9.5px; font-weight: 600; padding: 2px 5px; border-radius: 4px;
  background: #FFF7E6; border: 1px solid #F2DFB4; color: #8A6100;
}
.badge-plan.svip { background: #1C1F26; border-color: #C9A227; color: #E9C46A; }
.badge-verify {
  font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: #E8F7F0; border: 1px solid rgba(14, 122, 70, .22); color: #0E7A46;
}
.card-expose {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: #A0A5AB; font-variant-numeric: tabular-nums;
}
.card-expose svg { width: 13px; height: 13px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: #9AA0AA;
}
.tabbar .tab .ic { position: relative; }
.tabbar .tab .ic svg { width: 22px; height: 22px; }
.tabbar .tab.on { color: var(--brand); }
.tabbar .tab .dot {
  position: absolute; top: -6px; right: -12px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: #FF4D5E; border: 1.5px solid #fff;
  color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  line-height: 16px; text-align: center; box-sizing: content-box;
}
.tabbar .pub { position: relative; justify-content: flex-end; padding-bottom: 6px; }
.tabbar .pub .fab {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(196, 30, 58, .35);
}
.tabbar .pub .fab svg { width: 24px; height: 24px; }
.tabbar .pub .pub-lb { font-size: 10.5px; margin-top: 28px; }

/* ---------- 空态 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 24px; }
.empty .ic { color: #C9CDD4; margin-bottom: 12px; }
.empty .ic svg { width: 40px; height: 40px; }
.empty b { font-size: 15px; font-weight: 700; color: var(--text-2); }
.empty span { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-3); }

/* ---------- PC：只做基础适配，双栏留给下一步 ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; background: #FFFFFF; }
  .tabbar { display: none; }
  .hero, .tabs, .banners, .feed { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero { border-radius: 0 0 20px 20px; margin-bottom: 12px; }
  .feed { padding-top: 0; }
}

/* ================= 项目详情 ================= */
.dt-bar{position:sticky;top:0;z-index:30;height:48px;background:#fff;
  display:flex;align-items:center;padding:0 6px;border-bottom:1px solid var(--border)}
.dt-back{width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  color:var(--text);text-decoration:none}
.dt-bar-t{flex:1;text-align:center;font-size:16px;font-weight:700}
.dt-bar-sp{width:40px}

.dt-wrap{padding:12px 14px 90px;max-width:760px;margin:0 auto}
.dt-card{background:#fff;border-radius:16px;padding:18px 16px;margin-bottom:12px}

.dt-title{font-size:23px;line-height:1.4;font-weight:800;margin:0 0 12px;
  letter-spacing:-.3px;color:var(--text)}
.dt-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}

.dt-author{display:flex;align-items:center;gap:10px;padding:13px 0;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:16px}
.dt-av{width:36px;height:36px;border-radius:50%;overflow:hidden;flex:none;
  display:flex;align-items:center;justify-content:center;background:var(--bg)}
.dt-av img{width:100%;height:100%;object-fit:cover}
.dt-av i{font-style:normal;font-weight:800;color:#C41E3A;font-size:15px}
.dt-author-tx{flex:1;min-width:0}
.dt-nick{font-size:14px;font-weight:700;color:var(--text);text-decoration:none}
.dt-author-tags{display:flex;gap:6px;margin-top:4px;flex-wrap:wrap}
.badge-job{font-size:10.5px;font-weight:600;color:var(--text-2);background:var(--bg);
  padding:2px 7px;border-radius:5px}
.dt-expose{flex:none;font-size:12px;color:var(--text-3);display:flex;align-items:center;gap:4px}

.dt-imgs{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.dt-imgs img{width:100%;border-radius:12px;display:block}

.dt-body p{margin:0 0 15px;font-size:16px;line-height:1.85;color:var(--text);
  letter-spacing:.1px;word-break:break-word}
.dt-body p:last-child{margin-bottom:0}

.dt-contact{background:#fff;border-radius:16px;padding:18px 16px;margin-bottom:12px}
.dt-c-h{font-size:14px;font-weight:800;margin-bottom:12px;display:flex;align-items:center;gap:8px}
.dt-c-h::before{content:'';width:3px;height:14px;border-radius:2px;background:#C41E3A}
.dt-c-tip{margin:0 0 14px;font-size:13px;line-height:1.8;color:var(--text-2)}
.dt-c-btn{display:block;height:46px;line-height:46px;text-align:center;border-radius:13px;
  background:#C41E3A;color:#fff;font-size:15px;font-weight:700;text-decoration:none}
.dt-kv{margin:0;display:grid;grid-template-columns:56px 1fr;gap:10px 12px;align-items:center}
.dt-kv dt{font-size:12.5px;color:var(--text-3)}
.dt-kv dd{margin:0;font-size:15px;font-weight:700;color:var(--text);word-break:break-all}
.dt-qr{width:150px;height:150px;border-radius:12px;margin-top:14px;display:block}

.dt-more{margin-top:2px}
.dt-m-h{font-size:14px;font-weight:800;padding:6px 4px 12px}

.empty-page{padding:90px 24px;text-align:center;display:flex;flex-direction:column;
  align-items:center;gap:8px}
.empty-page b{font-size:16px;color:var(--text)}
.empty-page span{font-size:13px;color:var(--text-3)}
.empty-page .btn-go{margin-top:16px;padding:11px 26px;border-radius:12px;
  background:#C41E3A;color:#fff;font-size:14px;font-weight:700;text-decoration:none}

/* ===== 详情页底部固定对接条（宽屏） ===== */
.dt-dock { display: none; }
@media (min-width: 900px) {
  .dt-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(10px);
    border-top: 1px solid #ECEDEF; box-shadow: 0 -6px 24px rgba(17,24,39,.06);
  }
  .dt-dock-in {
    max-width: 1120px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 18px;
  }
  .dt-dock-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .dt-dock-tx b {
    font-size: 14px; font-weight: 700; color: #16181B;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .dt-dock-tx span { font-size: 12px; color: #9AA0A6; }
  .dt-dock-btn {
    margin-left: auto; flex: none; height: 46px; padding: 0 40px;
    border: 0; border-radius: 23px; cursor: pointer;
    background: linear-gradient(135deg, #E0304F, #C41E3A);
    color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .5px;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(196,30,58,.28);
    transition: transform .12s, box-shadow .12s;
  }
  .dt-dock-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(196,30,58,.34); }
  .dt-dock-btn:active { transform: translateY(0); }
  body.has-dock { padding-bottom: 86px; }
}

/* ===== 观察流里穿插的「项目推荐」三合一卡 ===== */
.ar-promo {
  margin: 0 0 12px; padding: 14px 14px 6px;
  background: #fff; border: 1px solid #ECEDEF; border-radius: 14px;
}
.ar-promo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ar-promo-bar { width: 3px; height: 14px; background: #C41E3A; border-radius: 2px; }
.ar-promo-head b { font-size: 14.5px; font-weight: 800; color: #16181B; }
.ar-promo-cnt {
  font-size: 10.5px; font-weight: 700; color: #C41E3A;
  background: #FDEDEF; padding: 2px 7px; border-radius: 5px;
}
.ar-promo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid #F3F4F6; text-decoration: none;
}
.ar-promo-row:first-of-type { border-top: 0; }
.ar-promo-thumb {
  width: 60px; height: 60px; flex: none; border-radius: 10px; overflow: hidden;
  background: #F5F6F8; display: flex; align-items: center; justify-content: center;
}
.ar-promo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-promo-thumb i { font-style: normal; font-size: 20px; font-weight: 800; color: #C2C6CC; }
.ar-promo-mid { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ar-promo-h {
  font-size: 14px; font-weight: 600; color: #16181B; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-promo-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.ar-promo-cat { color: #C41E3A; background: #FDEDEF; padding: 2px 7px; border-radius: 5px; }
.ar-promo-n { color: #9AA0A6; }
.ar-promo-go {
  flex: none; color: #C41E3A; font-size: 12.5px; font-weight: 700;
  border: 1px solid #F2C6CD; border-radius: 14px; padding: 4px 13px;
}

/* ===== 观察详情底部：项目推荐（手机上是三行列表，不再三列小卡） ===== */
.at-rec { margin: 22px 0 6px; }
.at-rec-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* 三行列表版（detail.php 现在用这个） */
.at-rec-l { display: flex; flex-direction: column; gap: 10px; }
.at-rl {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid #ECEDEF;
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.at-rl:hover { border-color: #E0E2E6; box-shadow: 0 6px 18px rgba(17,24,39,.06); }
.at-rl-img {
  width: 54px; height: 54px; flex: none; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg,#FFF0F3,#FDF2F6);
  display: flex; align-items: center; justify-content: center;
}
.at-rl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-rl-img i { font-style: normal; font-size: 16px; font-weight: 800; color: rgba(196,30,58,.6); }
.at-rl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.at-rl-t {
  font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #16181B;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-rl-m { font-size: 11px; color: #9AA0A6; }
.at-rl-go {
  flex: none; padding: 5px 13px; border-radius: 15px;
  border: 1px solid #F3D6DD; background: #FFF8F9; color: #C41E3A;
  font-size: 12px; font-weight: 600;
}
.at-rl:hover .at-rl-go { background: #FFF0F3; }
.at-rc {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid #ECEDEF; border-radius: 14px; overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.at-rc:hover { box-shadow: 0 10px 24px rgba(17,24,39,.08); transform: translateY(-2px); }
.at-rc-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; background: #F5F6F8;
  overflow: hidden;
}
.at-rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-rc-img i {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-style: normal;
  font-size: 26px; font-weight: 800; color: #C2C6CC;
}
.at-rc-t {
  padding: 10px 12px 6px; font-size: 13.5px; font-weight: 600; color: #16181B;
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 44px;
}
.at-rc-foot {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px 12px; margin-top: auto; font-size: 11.5px;
}
.at-rc-cat { color: #C41E3A; background: #FDEDEF; padding: 2px 6px; border-radius: 5px; }
.at-rc-m { color: #9AA0A6; }
.at-rc-go {
  margin-left: auto; color: #C41E3A; font-weight: 700; font-size: 12px;
  border: 1px solid #F2C6CD; border-radius: 12px; padding: 2px 10px;
}
@media (max-width: 640px) {
  .at-rec-g { grid-template-columns: 1fr; }
}

/* ===== 会话列表头像：圆形，有图用图，没图用首字 ===== */
.conv .av {
  position: relative; width: 44px; height: 44px; flex: none;
  border-radius: 50%; overflow: hidden; background: #FDEDEF;
  display: flex; align-items: center; justify-content: center;
}
.conv .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.conv .av .av-ini {
  font-size: 16px; font-weight: 800; color: #C41E3A;
}
/* 有图时把首字藏起来，图加载失败会自动被 onerror 移除，首字就露出来 */
.conv .av img + .av-ini { position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: #C41E3A; background: #FDEDEF; }
.conv .av img[src] + .av-ini { z-index: -1; }

/* ── PC 双栏里：整页纯白，不要灰底 ───────────────────────── */
body.pc-white,
body.pc-white .page,
body.pc-white .wrap { background: #FFFFFF; }
body.pc-white .card { background: #FFFFFF; }

/* 宿主底部有登录提示条时，底部 tabbar 往上让一让 */
body.has-guest-bar .tabbar { bottom: 54px !important; }
body.has-guest-bar { padding-bottom: calc(56px + 54px) !important; }


/* 看过的项目：标题变灰、字重降一档（跟 App 的已读样式一致） */
.card-title.viewed { color:#9AA0AA; font-weight:500; }
.card-title.viewed:hover { color:#6B7079; }


/* 详情页底部固定条：手机版也显示（详情页不再有底部导航） */
.dt-dock {
  display: block !important;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff;
  border-top: 1px solid #ECEDEF;
  box-shadow: 0 -6px 24px rgba(17,24,39,.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.dt-dock-in {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 0 auto; padding: 10px 14px;
}
.dt-dock-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dt-dock-tx b { font-size: 13px; font-weight: 700; color: #16181B;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-dock-tx span { font-size: 11.5px; color: #9AA0A6;
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-dock-btn {
  flex: none; height: 44px; padding: 0 22px; border: none; border-radius: 22px;
  background: #C41E3A; color: #fff; font-size: 15px; font-weight: 800;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 16px rgba(196,30,58,.24);
}
/* 有固定条时，正文底部留出空间 */
body.has-dock { padding-bottom: 108px; }
body.has-dock .tabbar { display: none !important; }


/* 详情页底部固定条：整行一颗按钮（跟 App 一致） */
.dt-dock {
  display: block !important;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid #ECEDEF;
  box-shadow: 0 -6px 24px rgba(17,24,39,.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.dt-dock-in {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 720px; margin: 0 auto; padding: 10px 14px;
}
.dt-dock-tip {
  font-size: 12px; color: #C41E3A; text-align: center;
  background: #FFF4F6; border-radius: 8px; padding: 6px 10px;
}
.dt-dock-btn {
  width: 100% !important; height: 48px !important;
  border: none; border-radius: 14px;
  background: #C41E3A; color: #fff;
  font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 16px rgba(196,30,58,.24);
}
.dt-dock-btn:active { opacity: .9; }


/* PC 左栏（iframe）里：品牌行和底部导航一律不出现。
   服务端已经加了 .in-left，首帧就是干净的，不会闪。 */
.in-left .brand-row { display: none !important; }
.in-left .tabbar { display: none !important; }
.in-left .hero { padding-top: 8px !important; }
.in-left { padding-bottom: 0 !important; }

/* ===== 统一返回键：40×40 热区、贴左、按下有反馈 ===== */
body a.back, body a.wc-back, body a.dt-back, body a.at-back,
body a.us-back, body a.gh-back, body a.dr-back, body a.page-back,
body button.back, body button.page-back, body .page-back {
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:40px !important;
  height:40px !important;
  flex:none;
  margin-left:-8px;
  padding:0 !important;
  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
  color:var(--text, #16181B) !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:400 !important;
  text-decoration:none !important;
  -webkit-tap-highlight-color:transparent;
  transition:background .12s;
}
body a.back:active, body a.wc-back:active, body a.dt-back:active, body a.at-back:active,
body a.us-back:active, body a.gh-back:active, body a.dr-back:active, body a.page-back:active,
body button.back:active, body .page-back:active {
  background:#F0F1F3 !important;
}

/* ===== 页面标题条 .m-bar =====
   insight.php / page.php 这类 PHP 页面没有引 mine.css，
   以前 .m-bar 没有样式，返回键和标题会各占一行。 */
.m-bar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:10px;
  height:52px; padding:0 14px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #EDEFF2;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.m-bar h1{
  font-size:16px; font-weight:800; letter-spacing:.3px;
  color:var(--text, #16181B); margin:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.m-bar .right{ margin-left:auto; font-size:13px; color:#9AA0AA; text-decoration:none; }
.m-bar .lock-tag{
  margin-left:auto; font:600 11px/1 -apple-system,"PingFang SC",sans-serif;
  color:#8A6D1F; background:#FFF6DA; border:1px solid #FFE7A8;
  padding:5px 9px; border-radius:8px; flex:none;
}
/* 嵌在 PC 右栏时，外壳自己有条，页面里的不再重复 */
body.in-pane .m-bar{ display:none !important; }

/* PC 左栏（iframe）：整页滚动，别让 body 当滚动容器
   —— 否则 .tabs 的 position:sticky 失效，往下滑标签就跟着跑了 */
html.in-frame { overflow: hidden auto; height: 100%; }
html.in-frame body { overflow: visible !important; height: auto !important; min-height: 100%; }


/* ============================================================
   底部导航：全站唯一一套尺寸。
   icon 22 / 行高 57 / 图标垂直位置固定，避免不同页面字体行高
   把图标顶上去 3px；内容底部留白也统一成这一套。
   ============================================================ */
.tabbar .tab{
  height:57px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px;
}
.tabbar .tab .ic{
  height:22px; display:flex; align-items:center; justify-content:center;
}
.tabbar .tab > span:last-child{
  font-size:10.5px; line-height:1.1; letter-spacing:0;
}
.tabbar .tab.pub .pub-lb{
  margin-top:26px; line-height:1.1;
}


/* ------------------------------------------------------------
   底栏口径（唯一）：图标 22、行高 57、标签 10.5、内容留白 58+safe
   这里用 !important 压掉各页面遗留的 66/72/76 等旧值，
   保证首页 / 观察 / 消息 / 我的 四页像素一致。
   ------------------------------------------------------------ */
.tabbar .tab{ height:57px !important; }
.tabbar .tab .ic{ height:22px; display:flex; align-items:center; justify-content:center; }
.tabbar .tab > span:last-child{
  font-size:10.5px !important; line-height:1.1 !important; margin:0 !important;
}
body:has(.tabbar){ padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important; }


/* 图标与文字用绝对定位钉死：不再受各页面字体行高影响，
   首页 / 观察 / 消息 / 我的 四个页面像素级一致。 */
.tabbar .tab{
  position:relative !important;
  display:block !important;
  height:57px !important;
}
.tabbar .tab .ic{
  position:absolute !important;
  top:8px; left:0; right:0;
  height:22px; display:flex; align-items:center; justify-content:center;
}
.tabbar .tab > span:last-child{
  position:absolute !important;
  bottom:7px; left:0; right:0;
  text-align:center;
  font-size:10.5px !important;
  line-height:1 !important;
  margin:0 !important;
}
/* 中间发布：圆形按钮照旧浮起，文字贴底 */
.tabbar .tab.pub .fab{ top:-16px; }
.tabbar .tab.pub > span.pub-lb{ bottom:7px; }


/* 五个格子等宽：不依赖各页面自带的 padding / gap，
   否则消息页和其他页每格会差 3px，看着像整排挪了位。 */
.tabbar{ padding-left:0 !important; padding-right:0 !important; gap:0 !important; }
.tabbar .tab{ flex:1 1 0 !important; min-width:0 !important; }
/* 图标盒子收成 22×22 居中：角标才能贴在图标右上角，
   而不是被拉到屏幕最右边 */
.tabbar .tab .ic{
  left:50% !important; right:auto !important;
  transform:translateX(-50%);
  width:22px !important;
}
.tabbar .tab.pub .ic{ width:24px !important; }


/* 滚动条宽度会改 viewport 宽度：内容长的页面底栏 405px、内容短的 420px，
   五个格子就差 3px —— 这就是"点了消息整排按钮轻微挪位"的原因。
   这里固定预留滚动条槽位，所有页面宽度一致。 */
html{ scrollbar-gutter: stable; }

/* 手机宽度下不要占位的滚动条：不同页面内容长短不同，
   滚动条一出一没，底栏宽度就在 405/420 之间跳，五个格子跟着变 —— 
   直接把手机端的滚动条宽度收成 0，所有页面都是满宽。 */
@media (max-width: 899px){
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
}


/* 没有数字的红点（「我的」新人任务提示）要画成小圆点。
   现在 .dot 带 padding+border，空内容时被撑成 26×18 的胶囊，
   直接盖在图标上 —— 这里给空角标单独一套尺寸。 */
.tabbar .tab .ic .dot:empty{
  width:8px !important; height:8px !important; min-width:0 !important;
  padding:0 !important; border-width:1.5px !important;
  border-radius:50% !important;
  top:-1px !important; right:-2px !important;
}
