:root {
  --brand: #0F6E56;
  --brand-light: #E1F5EE;
  --brand-dark: #085041;
  --accent: #D85A30;
  --bg: #F6F7F5;
  --card: #FFFFFF;
  --text: #222222;
  --muted: #777777;
  --line: #E7E7E3;
  --danger: #A32D2D;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
img { max-width: 100%; }

/* ---------- 通用 ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 14px; }
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 10px 18px;
  font-size: 15px; font-weight: 500; background: var(--brand); color: #fff;
}
.btn:active { opacity: .85; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.gray { background: #EFEFEA; color: #444; }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  margin-bottom: 12px; border: 1px solid var(--line);
}
.tag {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-light); color: var(--brand); margin-right: 6px;
}
.tag.coral { background: #FAECE7; color: #993C1D; }
.tag.feat { background: #FAC775; color: #633806; }
.stat-strip { display: flex; text-align: center; padding: 12px 0; }
.stat-strip > div { flex: 1; }
.stat-strip b { display: block; font-size: 20px; color: var(--brand-dark); }
.stat-strip span { font-size: 12px; color: var(--muted); }

/* 数据看板条形图 */
.dash-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.dash-bar .lb { width: 76px; font-size: 13px; flex-shrink: 0; }
.dash-bar .track { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.dash-bar .fill { height: 100%; border-radius: 5px; min-width: 2px; transition: width .4s; }
.dash-bar b { width: 40px; text-align: right; font-size: 13px; flex-shrink: 0; }

/* 发布排期 */
.task-over { border-left: 4px solid #e5484d; }
.dash-alert {
  display: block; background: #FAEEDA; color: #854F0B; border-radius: 10px;
  padding: 10px 14px; font-size: 14px; margin-bottom: 12px; font-weight: 500;
}
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.badge.pending { background: #FAEEDA; color: #854F0B; }
.badge.published { background: #E1F5EE; color: #0F6E56; }
.badge.offline { background: #F1EFE8; color: #5F5E5A; }
.badge.rejected { background: #FCEBEB; color: #A32D2D; }
.muted { color: var(--muted); font-size: 13px; }
.price { color: var(--accent); font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; }
.spread { justify-content: space-between; }
.hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.radio-line { display: flex; gap: 18px; padding: 4px 0; flex-wrap: wrap; }
.radio-line label { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text); }

/* ---------- 首页头部 ---------- */
.home-head {
  background: var(--brand); color: #fff; padding: 22px 0 16px;
}
.home-head .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.brand-sub { font-size: 13px; opacity: .85; margin-top: 2px; }
.head-btn {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px; padding: 8px 14px; font-size: 14px; white-space: nowrap;
}

/* ---------- 分类与筛选 ---------- */
.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 4px; scrollbar-width: none;
  position: sticky; top: 0; z-index: 30; background: var(--bg);
}
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; padding: 7px 16px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line); font-size: 14px; color: #444;
}
.cat-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters { display: flex; gap: 8px; padding: 8px 14px 4px; }
.filters select, .filters input {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 14px;
}
.filters input { flex: 1; min-width: 0; }

/* 照片可放大提示 */
.zoomable { cursor: zoom-in; }

/* 灯箱 */
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.lb-loading {
  position: absolute; color: rgba(255, 255, 255, .65); font-size: 13px;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .93); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 46px 14px 34px;
  animation: lb-fade .18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex;
  align-items: center; justify-content: space-between; padding: 12px 16px;
}
.lb-count { color: rgba(255, 255, 255, .8); font-size: 13px; }
.lb-close {
  background: rgba(255, 255, 255, .14); border: none; color: #fff; font-size: 15px;
  width: 34px; height: 34px; border-radius: 50%; line-height: 1;
}
.lb-img {
  /* 不能用 max-height:100%——父级 .lb-stage 高度由图片撑开，百分比解析循环失效，海报会被裁一半。
     改用视口单位（减掉顶栏 46px + 底部提示 34px + 余量），恒不超出屏幕 */
  max-width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  width: auto; height: auto;
  object-fit: contain; border-radius: 6px;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .13); border: none; color: #fff; font-size: 26px;
  width: 42px; height: 60px; border-radius: 10px; line-height: 1;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-tip {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .55); font-size: 12px;
}
#date-tiers { padding: 10px 14px 4px; }
#date-tiers input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 16px;
  padding: 5px 14px; background: #fff; font-size: 13px;
}

/* ---------- 信息卡片 ---------- */
.list-card { display: block; }
.list-card .lc-title {
  font-size: 16px; font-weight: 500; margin: 4px 0; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-card .lc-hl {
  color: var(--brand-dark); font-size: 13px; margin-bottom: 6px; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-card .price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-card .lc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- 详情 ---------- */
.detail-back { display: inline-block; padding: 12px 0; color: var(--brand); font-size: 14px; }
.d-title { font-size: 20px; font-weight: 600; margin: 6px 0; }
.d-price { font-size: 20px; margin: 4px 0 10px; }
.d-hl {
  background: var(--brand-light); color: var(--brand-dark); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 12px; word-break: break-word;
}
.d-content { white-space: pre-wrap; font-size: 15px; }
.d-imgs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; border-radius: var(--radius); }
.d-imgs img { max-height: 260px; border-radius: 10px; flex: none; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 500;
  border: none; margin-top: 8px;
}
.contact-btn.alt { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

/* ---------- 底部固定条 ---------- */
.foot-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); z-index: 40;
}
.foot-bar .inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.foot-bar p { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.foot-pad { height: 74px; }

/* ---------- 登录 ---------- */
.auth-box { max-width: 400px; margin: 30px auto; background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; border-radius: 10px; background: #F1EFE8; font-size: 14px; color: #555; border: none; }
.auth-tab.on { background: var(--brand); color: #fff; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row button { flex: none; width: 108px; border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 10px; font-size: 13px; }

/* ---------- 工作台 ---------- */
.wb-head { background: var(--brand); color: #fff; padding: 16px 0; }
.wb-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wb-title { font-size: 18px; font-weight: 600; }
.wb-user { font-size: 13px; opacity: .9; text-align: right; }
.wb-role { display: inline-block; background: rgba(255,255,255,.18); border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.wb-links { font-size: 13px; }
.wb-links a { color: #fff; opacity: .9; margin-left: 12px; }
.wb-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.wb-nav button {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 4px;
  font-size: 14px; color: var(--text);
}
.wb-nav button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.sub-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 6px 14px; font-size: 13px; color: #555; }
.sub-tabs button.on { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.action-line { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb-row { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; }
.thumb-row img { height: 64px; border-radius: 8px; flex: none; }
.img-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.img-pick .pv { position: relative; }
.img-pick .pv img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.img-pick .pv .del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; border: none; font-size: 12px; line-height: 20px; padding: 0;
}
.staff-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.staff-row:last-child { border-bottom: none; }
.role-select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; background: #fff; }

/* ---------- 公告 ---------- */
.ann-pin { color: var(--accent); font-size: 12px; border: 1px solid var(--accent); border-radius: 5px; padding: 0 5px; margin-right: 6px; }

/* ---------- 组织架构 ---------- */
.org-node { border-left: 2px solid var(--brand-light); margin-left: 10px; padding-left: 14px; }
.org-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; margin: 8px 0; display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.org-card .n { font-weight: 500; }
.org-card .p { font-size: 12px; color: var(--muted); }
.org-top { border-left: none; margin-left: 0; padding-left: 0; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { background: #fff; border-radius: 16px; padding: 22px; max-width: 340px; width: 100%; max-height: 82vh; overflow-y: auto; text-align: center; }
.modal img.qr { width: 220px; height: 220px; object-fit: contain; border-radius: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(20,20,20,.85); color: #fff; padding: 9px 18px; border-radius: 20px;
  font-size: 14px; z-index: 99; max-width: 80vw; text-align: center;
}
.loading { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }

/* ---------- 前台：免费发布入口 ---------- */
.head-btn.pub { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.pub-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pub-steps > div { display: flex; gap: 10px; align-items: flex-start; background: #F6F8F6; border-radius: 10px; padding: 10px 12px; }
.pub-steps b {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.pub-steps span { font-size: 14px; line-height: 1.6; color: #3C3C3C; }

/* ---------- 后台：今日待办 / 快捷入口 ---------- */
.todo-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.todo-row:last-child { border-bottom: none; }
.todo-row.hot { color: #A32D2D; font-weight: 500; }
.todo-row.hot .btn { border-color: #E9B7B7; color: #A32D2D; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick-btn {
  padding: 14px 6px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; color: #333; font-weight: 500;
}
.quick-btn:active { background: #F1F5F2; }
.bulk-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; background: #FFF8E6; border: 1px solid #F3D9A4; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 14px;
}
.bulk-bar .btn { padding: 5px 10px; font-size: 13px; }

/* ---------- 后台：群图生成器 ---------- */
.gi-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gi-idx {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #EDF3EF; color: var(--brand);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.gi-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.gi-row .btn { flex: none; padding: 6px 10px; font-size: 13px; }

/* ---------- 后台：列表卡片微调 ---------- */
.log-row .row { align-items: flex-start; }
.ls-item .lc-title, .ad-card b { word-break: break-word; }
.phrase-card .muted { font-size: 14px; }

/* ---------- 后台：海报导入搜索 ---------- */
.po-results {
  max-height: 300px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 10px; margin-top: 10px; background: #fff;
}
.po-row {
  display: flex; gap: 8px; align-items: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px;
}
.po-row:last-child { border-bottom: none; }
.po-row:hover { background: #F2F8F5; }
.po-row.on { background: var(--brand-light); }
.po-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.po-row .m { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.po-row .tag { flex-shrink: 0; font-size: 12px; }

/* ---------- 后台：海报拖拽进微信 ---------- */
.drag-wrap {
  margin-top: 8px; border: 2px dashed var(--brand); border-radius: 12px;
  padding: 8px; background: #F6FBF8; cursor: grab; text-align: center;
}
.drag-wrap:active { cursor: grabbing; }
.drag-wrap img { width: 100%; border-radius: 8px; display: block; -webkit-user-drag: element; }

/* ---------- 后台：图片拖放区（微信拖图进来） ---------- */
.drop-zone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 12px;
  transition: border-color .15s, background .15s;
}
.drop-zone.over { border-color: var(--brand); background: var(--brand-light); }

/* ---- 站内客服二维码（纽约/洛杉矶双码） ---- */
.cs-qr-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.cs-qr { margin: 0; text-align: center; cursor: pointer; }
.cs-qr img { width: 190px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.06); display: block; transition: transform .12s; }
.cs-qr:active img { transform: scale(.97); }
.cs-qr figcaption { font-size: 13px; font-weight: 600; margin-top: 6px; }
.cs-qr-tip { display: block; font-size: 11px; font-weight: 500; color: var(--brand); margin-top: 2px; }
.cs-qr-row.compact { gap: 14px; margin-top: 12px; }
.cs-qr-row.compact .cs-qr img { width: 128px; }

/* ---- 客服码单张保存页 ---- */
.qr-save-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.qr-save-box img {
  display: block; width: 100%; border-radius: 8px;
  -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto;
}

/* ---- 手机端页脚：文字和按钮竖排，避免文字被挤成竖条 ---- */
@media (max-width: 640px) {
  .foot-bar .inner { flex-direction: column; gap: 7px; }
  .foot-bar p { flex: none; width: 100%; text-align: center; }
  .foot-bar .action-line { flex-wrap: wrap; margin-top: 0 !important; }
  .foot-pad { height: 122px; }
}

/* ---- 活动主理人认证徽章 ---- */
.org-badge { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid #0F6E56; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.org-seal { flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #C9A86A, #A88750); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.org-name { font-size: 18px; font-weight: 700; }
.org-code { font-size: 13px; color: #A32E2E; font-weight: 600; margin-left: 4px; }
.org-title { font-size: 13px; color: #0F6E56; margin-top: 2px; }

/* ---- 活动详情：时间/地点/费用 meta 条 ---- */
.evt-meta { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 4px 0 14px; }
.evt-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; border-bottom: 1px dashed #ECE9E0; }
.evt-row:last-child { border-bottom: none; }
.evt-ico { flex: none; width: 44px; text-align: center; font-size: 12px; font-weight: 700; color: #0F6E56; background: #E7F2EE; border-radius: 8px; padding: 4px 0; }
.evt-row b { font-size: 16px; }

/* ---- 主理人展示页 ---- */
.orgp-card { margin-bottom: 14px; }
.orgp-head { display: flex; align-items: center; gap: 14px; }
.orgp-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #0F6E56, #0C5A47); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.orgp-name { font-size: 18px; font-weight: 800; }
.orgp-code { font-size: 12px; color: #A32E2E; background: #FBF3E4; border: 1px solid #E7D5AE; border-radius: 8px; padding: 2px 8px; margin-left: 6px; font-weight: 700; }
.orgp-sub { font-size: 13px; color: #0F6E56; margin-top: 2px; }
.orgp-evts { margin-top: 12px; border-top: 1px dashed #ECE9E0; padding-top: 6px; }
.evt-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #ECE9E0; color: inherit; text-decoration: none; }
.evt-line:last-child { border-bottom: none; }
.evt-line .tag { flex: none; }
.evt-line .evt-t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt-line.over .evt-t { color: #999; font-weight: 500; }
.evt-line .muted { font-size: 12px; }

/* ---- 分类栏「同城活动」专属入口 ---- */
.cat-chip.evt { background: #FFF3E8; color: #C2571A; border: 1px solid #F3C89E; font-weight: 700; }

/* ---- 活动类型：多选一标签（发布表单 / 活动大厅筛选） ---- */
.cats.sub { position: static; padding-top: 0; padding-bottom: 4px; }
.cats.sub .cat-chip { font-size: 13px; padding: 4px 11px; }
.chip-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; line-height: 1.4;
}
.tag-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.tag-btn:active { opacity: .85; }
.ev-kind {
  display: inline-block; font-size: 12px; font-weight: 700; color: #C2571A;
  background: #FFF3E8; border: 1px solid #F3C89E; border-radius: 6px; padding: 1px 7px;
}

/* ---- 活动大厅 ---- */
.orgp-entry { transition: transform .12s; }
.ev-card { display: block; color: inherit; text-decoration: none; }
.ev-flex { display: flex; gap: 12px; }
.ev-img { flex: none; width: 108px; height: 108px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.ev-line { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev-line b { flex: none; font-size: 12px; color: #0F6E56; background: #E7F2EE; border-radius: 6px; padding: 2px 7px; font-weight: 700; }

/* ---------- 移动端体验微调（2026-10-16 审查修复） ---------- */
.modal, .modal-mask { overscroll-behavior: contain; }
@media (max-width: 640px) {
  /* toast 抬高到固定底栏之上，避免被遮挡 */
  .toast { bottom: calc(116px + env(safe-area-inset-bottom)); max-width: 86vw; }
  /* 底部栏瘦身：slogan 单行截断，按钮更紧凑 */
  .foot-bar { padding-top: 7px; }
  .foot-bar p { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .foot-bar .inner { gap: 6px; }
  .foot-bar .action-line { gap: 7px; }
  .foot-bar .action-line .btn { font-size: 12px; padding: 5px 10px; }
  .foot-pad { height: 104px; }
}

/* ================= 朋友圈素材下发 ================= */
.mom-bar { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.mom-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mom-nav input[type=date] {
  font-size: 15px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--text); max-width: 150px;
}
.mom-prog { height: 7px; background: #EDEDE8; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.mom-prog-in { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.mom-clock {
  background: var(--card); border-radius: var(--radius); padding: 14px; text-align: center; margin-bottom: 12px;
}
.mom-tick { font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--text); }
.mom-tick.ok { color: var(--brand); }
.mom-tick.wait { color: #854F0B; }
.mom-panel { margin-bottom: 12px; }
.mom-setgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .mom-setgrid { grid-template-columns: 1fr; } }

.mom-item { margin-bottom: 12px; border: 1px solid transparent; }
.mom-item.is-now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.mom-item.is-done { opacity: .58; }
.mom-item.is-done .mom-head b { text-decoration: line-through; }
.mom-head { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.mom-head > div:first-child { min-width: 0; }
.mom-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mom-text {
  margin-top: 10px; padding: 11px 12px; background: #F7F8F6; border-radius: 10px;
  font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
  -webkit-user-select: text; user-select: text;
}
.mom-note { margin-top: 8px; font-size: 13px; color: #854F0B; background: #FAEEDA; border-radius: 8px; padding: 6px 10px; }
.mom-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mom-imgs img {
  width: 82px; height: 82px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
  -webkit-touch-callout: default; cursor: pointer;
}
.mom-thumbwrap { position: relative; display: inline-block; }
.mom-thumbwrap img { width: 82px; height: 82px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.mom-x {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 99px;
  border: none; background: var(--danger); color: #fff; font-size: 15px; line-height: 1; padding: 0;
}
.mom-devs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mom-dev {
  border: 1px solid var(--line); background: #fff; color: #555; border-radius: 8px;
  padding: 7px 10px; font-size: 13px; min-height: 34px; opacity: .5;
}
.mom-dev.on { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); opacity: 1; font-weight: 600; }
.mom-dev.all { opacity: 1; border-style: dashed; }

.mom-tip { background: #F7F8F6; font-size: 13px; line-height: 1.7; color: #444; }
.mom-tip ol { padding-left: 18px; margin-top: 6px; }
.mom-tip li { margin-bottom: 4px; }

.mom-lb {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.mom-lb-in { max-width: 100%; text-align: center; }
.mom-lb-in img { max-width: 100%; max-height: 72vh; border-radius: 10px; }
.mom-lb-bar { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }
.mom-lb-bar .muted { color: #ddd; }
.mom-lb-tip { margin-top: 8px; color: #bbb; font-size: 13px; }
