/* 手机版（/m/）样式 */
.mbody{background:#f2f4f6;padding-bottom:calc(62px + env(safe-area-inset-bottom))}

/* ---------- 顶部 ---------- */
.m-top{
  position:sticky;top:0;z-index:60;background:#232733;color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  height:50px;padding:0 14px;
}
.m-logo{display:flex;flex-direction:column;line-height:1.2}
.m-logo-cn{font-size:16px;font-weight:800;letter-spacing:.3px}
.m-logo-s{font-size:10px;color:#d8b877;letter-spacing:1.2px}
.m-top-right{display:flex;align-items:center;gap:12px}
.m-icon{
  width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);font-size:16px;color:#fff;overflow:hidden;
}
.m-icon .avatar{width:26px;height:26px}
.m-login{font-size:13px;color:#d8b877;font-weight:600;padding:4px 10px;border:1px solid rgba(216,184,119,.5);border-radius:999px}

/* ---------- 板块横滑 ---------- */
.m-chips{
  position:sticky;top:50px;z-index:55;background:#fff;border-bottom:1px solid #e6e8ec;
  display:flex;gap:8px;overflow-x:auto;padding:9px 12px;-webkit-overflow-scrolling:touch;
}
.m-chips::-webkit-scrollbar{display:none}
.m-chip{
  flex:0 0 auto;padding:5px 13px;border-radius:999px;background:#f2f4f6;
  font-size:13px;color:#5d6572;white-space:nowrap;
}
.m-chip.on{background:#b8934a;color:#fff;font-weight:600}

/* ---------- 主体 ---------- */
.m-main{padding:12px 12px 8px}

/* 统计条 */
.m-hero{
  background:linear-gradient(120deg,#2b3140,#1d222c);border-radius:14px;padding:16px;
  color:#fff;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;
}
.m-hero-l h1{margin:0 0 5px;font-size:17px;font-weight:800}
.m-hero-l p{margin:0;font-size:12px;color:#a9b1bf}
.m-hero-r{display:flex;gap:16px;text-align:center}
.m-hero-r b{display:block;font-size:17px;color:#d8b877}
.m-hero-r span{font-size:11px;color:#8b93a1}

/* 板块卡 */
.m-boards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
.m-board{
  background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;
}
.m-board-ico{
  width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:linear-gradient(135deg,#f3ece0,#e8dcc4);
  color:#8a6d2f;display:flex;align-items:center;justify-content:center;font-size:18px;
}
.m-board h3{margin:0 0 2px;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-board span{font-size:11.5px;color:#8b93a1}

/* 区块标题 */
.m-sec{display:flex;align-items:center;justify-content:space-between;margin:16px 2px 9px}
.m-sec h2{margin:0;font-size:15.5px;font-weight:700;display:flex;align-items:center;gap:7px}
.m-sec h2:before{content:"";width:3px;height:15px;border-radius:2px;background:#b8934a}
.m-sec .more{font-size:12.5px;color:#8b93a1}

/* ---------- 列表行 ---------- */
.m-list{background:#fff;border:1px solid #e6e8ec;border-radius:12px;overflow:hidden}
.m-row{display:block;padding:12px 14px;border-bottom:1px solid #f0f2f5}
.m-row:last-child{border-bottom:0}
.m-row:active{background:#fafbfc}
.m-row-h{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.m-row-n{font-size:12.5px;color:#5d6572;font-weight:600;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-row-b{margin-left:auto;font-size:11px;color:#b8934a;background:#fdf3e0;padding:1px 8px;border-radius:5px}
.m-row-t{font-size:15px;font-weight:600;line-height:1.5;color:#1f2328;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-row-d{font-size:12.5px;color:#8b93a1;margin-top:5px;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-row-f{display:flex;justify-content:space-between;margin-top:8px;font-size:11.5px;color:#9aa3b2}
.m-row-f b{color:#5d6572}

/* ---------- 主题详情 ---------- */
.m-topic{background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:16px;margin-bottom:12px}
.m-topic h1{font-size:18px;line-height:1.55;margin:0 0 10px;font-weight:700}
.m-topic-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8b93a1;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #f0f2f5}
.m-topic-meta .avatar{width:24px;height:24px}
.m-ct{font-size:15px;line-height:1.95;color:#2c3138;word-break:break-word;padding-top:4px}
.m-ct img{border-radius:8px;margin:8px 0;max-width:100%}
.m-ct blockquote{margin:10px 0;padding:10px 12px;background:#f7f8fa;border-left:3px solid #d8b877;color:#5d6572}
.m-ct pre{background:#f7f8fa;padding:12px;border-radius:8px;overflow-x:auto;font-size:13px}
.m-ct code{background:#f2f3f5;padding:1px 5px;border-radius:4px;font-size:13px}
.m-ct a{color:#b8934a;word-break:break-all}

.m-posts{background:#fff;border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;margin-bottom:12px}
.m-post{display:flex;gap:10px;padding:13px 14px;border-bottom:1px solid #f0f2f5}
.m-post:last-child{border-bottom:0}
.m-post-s{flex:0 0 40px;text-align:center}
.m-post-s .nm{display:block;font-size:11.5px;color:#5d6572;margin-top:5px;word-break:break-all;line-height:1.3}
.m-post-b{flex:1;min-width:0}
.m-post-h{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:#9aa3b2;margin-bottom:5px}
.m-post-h b{color:#5d6572;font-weight:600}
.m-post-c{font-size:14.5px;line-height:1.9;color:#2c3138;word-break:break-word}

/* ---------- 表单 ---------- */
.m-form{background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:16px}
.m-form .form-row{margin-bottom:14px}
.m-form label{display:block;font-size:13px;color:#5d6572;font-weight:600;margin-bottom:6px}
.m-form .inp{font-size:16px;padding:11px 12px} /* 16px 防 iOS 自动缩放 */
.m-form textarea.inp{min-height:160px}
.m-btn{display:block;width:100%;height:46px;border:0;border-radius:12px;font-size:15px;font-weight:700;
  background:linear-gradient(135deg,#d8b877,#b8934a);color:#241d10;cursor:pointer}
.m-btn:active{filter:brightness(.95)}
.m-btn.gray{background:#eef0f3;color:#5d6572}
.m-btn-row{display:flex;gap:10px}
.m-btn-row .m-btn{margin:0}
.m-tip{font-size:12px;color:#8b93a1;line-height:1.8;margin-top:6px}

/* ---------- 空态 / 提示 ---------- */
.m-empty{background:#fff;border:1px dashed #dfe3e8;border-radius:12px;padding:40px 18px;text-align:center;color:#8b93a1;font-size:13.5px;line-height:1.9}
.m-empty a{color:#b8934a}
.m-alert{padding:11px 14px;border-radius:10px;font-size:13.5px;margin-bottom:12px;line-height:1.7}
.m-alert.ok{background:#eef8f1;color:#2d7a48;border:1px solid #cdebda}
.m-alert.err{background:#fdeeee;color:#b3372f;border:1px solid #f6d5d3}
.m-alert.info{background:#fdf6e9;color:#8a6d2f;border:1px solid #f0e2c2}

/* ---------- 登录/注册 ---------- */
.m-auth{padding:10px 0}
.m-auth-t{text-align:center;margin:0 0 4px;font-size:19px;font-weight:800}
.m-auth-s{text-align:center;color:#8b93a1;font-size:12.5px;margin:0 0 18px}
.m-switch{text-align:center;margin-top:16px;font-size:13px;color:#8b93a1}
.m-switch a{color:#b8934a;font-weight:600}

/* ---------- 我的 ---------- */
.m-me{background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:16px;margin-bottom:12px;display:flex;gap:14px;align-items:center}
.m-me .avatar{width:52px;height:52px;font-size:22px}
.m-me-n{font-size:16px;font-weight:700}
.m-me-s{font-size:12px;color:#8b93a1;margin-top:3px}
.m-menu{background:#fff;border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;margin-bottom:12px}
.m-menu a{display:flex;justify-content:space-between;align-items:center;padding:14px;font-size:14.5px;border-bottom:1px solid #f0f2f5}
.m-menu a:last-child{border-bottom:0}
.m-menu a span{color:#9aa3b2;font-size:13px}

/* ---------- 分页 ---------- */
.m-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 4px}
.m-pg{padding:8px 18px;border-radius:10px;background:#fff;border:1px solid #e6e8ec;font-size:13.5px;color:#5d6572}
.m-pg.off{color:#c2c8d2}
.m-pg-cur{font-size:13px;color:#8b93a1}

/* ---------- 页脚 ---------- */
.m-foot{text-align:center;padding:18px 12px 26px;font-size:12.5px;color:#8b93a1}
.m-foot a{color:#8b93a1}
.m-foot span{margin:0 6px;color:#c2c8d2}
.m-copy{margin-top:8px;font-size:11.5px;color:#a8b0bd}

/* ---------- 底部 Tab ---------- */
.m-tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid #e6e8ec;
  display:flex;align-items:center;justify-content:space-around;
  height:calc(56px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
}
.m-tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:11px;color:#8b93a1;padding:6px 0;
}
.m-tab.on{color:#b8934a;font-weight:600}
.m-tab-i{font-size:19px;line-height:1}
.m-tab-post{
  flex:0 0 56px;height:56px;margin-top:-18px;
}
.m-tab-plus{
  width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#241d10;font-size:26px;font-weight:400;
  background:linear-gradient(135deg,#d8b877,#b8934a);box-shadow:0 4px 12px rgba(184,147,74,.35);
}

/* 小屏适配 */
@media (max-width:360px){
  .m-boards{grid-template-columns:1fr}
  .m-hero{padding:14px}
  .m-hero-l h1{font-size:16px}
}
