/* 贞元生活帮 — 移动优先基础样式
   设计基调：社区布告栏，不是标准 SaaS 蓝。暖纸色背景 + 陶土主色 + 松石绿辅色，
   卡片用细边框而不是大阴影，按钮用实色不用渐变，图标用线框 SVG 不用 emoji。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* 不给 html/body 设固定 height:100%——微信内置浏览器等部分安卓 WebView 上，
   height:100% 会把 body 锁死在视口高度，内容超出时无法继续滚动到底部，
   固定定位的底部导航栏因此会挡住页面最后一截内容。改用 min-height 只兜底，不封顶。 */
html { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f4efe4;
  color: #2b2621;
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

:root {
  --ink: #2b2621;
  --ink-soft: #6b6155;
  --ink-faint: #a89e8e;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #e6dcc8;
  --clay: #b6552f;
  --clay-dark: #9c451f;
  --clay-tint: #f3e2d5;
  --pine: #3c6355;
  --pine-tint: #dfe9e2;
  --danger: #a3402f;
  --danger-tint: #f6e1da;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

.container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
}

/* ── 添加到主屏幕提醒条 ───────────────────────────────────────────────── */
.add-home-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--pine-tint); color: var(--pine);
  font-size: 12px; line-height: 1.5; padding: 8px 14px;
  border-bottom: 1px solid #c5dccf;
}
.add-home-banner .close {
  flex-shrink: 0; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; color: var(--pine);
}

/* ── 顶部栏 ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 12px;
}
.topbar h1 { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.topbar .sub { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.topbar .sub a, .topbar .sub .link-btn { color: var(--pine); }

/* ── 首页 Banner ──────────────────────────────────────────────────────── */
.hero-banner {
  margin: 12px 12px 4px;
  padding: 16px 16px 15px;
  border-radius: 14px;
  background: linear-gradient(120deg, #c15c3e 0%, #b6552f 55%, #9c451f 100%);
  color: #fff8f0;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute; right: -18px; top: -22px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.hero-banner::before {
  content: "";
  position: absolute; right: 30px; bottom: -30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero-banner .t1 { font-size: 15.5px; font-weight: 800; position: relative; z-index: 1; }
.hero-banner .t2 { font-size: 12px; opacity: 0.88; margin-top: 4px; position: relative; z-index: 1; }

/* ── 首页宫格导航 ─────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 4px;
  padding: 14px 8px 6px;
  background: #fffaf0;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 2px 8px;
  cursor: pointer; border-radius: 10px;
  border: 1.5px solid transparent;
  transition: transform 120ms var(--ease-out);
}
.cat-tile:active { transform: scale(0.94); }
.cat-tile.active { border-color: #e8c4ab; background: var(--clay-tint); }
.cat-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.cat-tile .cat-label { font-size: 11px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.cat-tile.active .cat-label { color: var(--clay-dark); }
.cat-icon.c1 { background: #dbeafe; }
.cat-icon.c2 { background: #ffe3cf; }
.cat-icon.c3 { background: #dcf5e3; }
.cat-icon.c4 { background: #e9e1fb; }
.cat-icon.c5 { background: #fde0e7; }
.cat-icon.c6 { background: #fef3c7; }
.cat-icon.c7 { background: #ffe0ec; }
.cat-icon.c8 { background: #e6e9f0; }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  background: #fffaf0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tab.active { background: var(--clay-tint); color: var(--clay-dark); border-color: #e8c4ab; }

/* ── 搜索/筛选 ────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
}
.filter-bar input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fffdf8;
}
.filter-bar select {
  flex: 0 0 96px;
  width: 96px;
  padding: 9px 8px;
  font-size: 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--ink-soft);
}

/* ── 卡片列表 ─────────────────────────────────────────────────────────── */
.list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(43,38,33,0.04);
  transition: transform 120ms var(--ease-out), background 150ms ease;
}
.card:active { background: #fbf6ec; transform: scale(0.98); }
.card img.thumb {
  width: 92px; height: 92px;
  object-fit: cover;
  border-radius: 9px;
  background: #eee5d4;
  flex-shrink: 0;
}
.card .body { flex: 1; min-width: 0; }
.card .title {
  font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .meta { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.meta-chip {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 5px;
  background: var(--pine-tint); color: var(--pine); margin-right: 5px;
}
.card .foot-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card .desc {
  font-size: 12.5px; color: var(--ink-soft); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  margin-top: 6px;
}
.badge.open { background: var(--pine-tint); color: var(--pine); }
.badge.closed { background: #ece4d4; color: var(--ink-faint); }
.badge.warn { background: var(--clay-tint); color: var(--clay-dark); }

.empty { text-align: center; color: var(--ink-faint); font-size: 13.5px; padding: 60px 20px; }

/* ── 表单通用 ─────────────────────────────────────────────────────────── */
.form-page { padding: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; line-height: 1.5; }
input[type="text"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14.5px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fffdf8;
  font-family: inherit;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--clay); box-shadow: 0 0 0 3px rgba(182, 85, 47, 0.12);
}
textarea { min-height: 90px; resize: vertical; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--clay-tint); border: 1px solid #e8c4ab;
  border-radius: 10px; padding: 11px 12px; font-size: 13px; color: var(--clay-dark);
  line-height: 1.55;
}
.checkbox-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--clay); flex-shrink: 0; }

.btn {
  width: 100%;
  padding: 13px;
  font-size: 15px; font-weight: 700;
  color: #fff8f2;
  background: var(--clay);
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background 150ms ease;
}
.btn:active { background: var(--clay-dark); transform: scale(0.97); }
.btn:disabled { opacity: 0.55; }
.btn.secondary { background: #ece4d4; color: var(--ink-soft); }
.btn.pine { background: var(--pine); }
.btn.danger { background: var(--danger-tint); color: var(--danger); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-soft); }

.alert {
  display: none;
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.5;
}
.alert.error { background: var(--danger-tint); color: var(--danger); border: 1px solid #e6bcae; }
.alert.success { background: var(--pine-tint); color: var(--pine); border: 1px solid #c5dccf; }
.alert.show { display: block; }

/* ── 图片上传格 ───────────────────────────────────────────────────────── */
.img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 8px;
}
.img-slot {
  aspect-ratio: 1; border-radius: 9px; overflow: hidden; position: relative;
  background: #ece4d4; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #cdbfa2; color: var(--ink-faint); font-size: 13px; cursor: pointer;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot .del {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(43,38,33,0.6); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ── 首页公告弹窗 ─────────────────────────────────────────────────────── */
.announce-mask {
  display: flex;
  position: fixed; inset: 0; background: rgba(43,38,33,0.55); z-index: 60;
  align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 260ms var(--ease-out), visibility 0s linear 260ms;
}
.announce-mask.show {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 260ms var(--ease-out), visibility 0s linear 0s;
}
.announce-card {
  width: 100%; max-width: 340px; background: var(--card);
  border-radius: 16px; overflow: hidden; position: relative;
  transform: scale(0.9); opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 260ms ease-out;
}
.announce-mask.show .announce-card { transform: scale(1); opacity: 1; }
.announce-card img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.announce-body { padding: 16px 18px 18px; }
.announce-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.announce-body p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); white-space: pre-wrap; }
.announce-link {
  display: block; margin-top: 12px; text-align: center; padding: 10px;
  background: var(--clay); color: #fff8f2; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  text-decoration: none;
}
.announce-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(43,38,33,0.55); color: #fff; font-size: 16px; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1;
}

/* ── 详情页 ───────────────────────────────────────────────────────────── */
.detail-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #ece4d4; }
.detail-gallery img { width: 100%; flex-shrink: 0; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; }
.detail-body { padding: 16px; }
.detail-body h2 { font-size: 19px; margin-bottom: 8px; font-weight: 800; }
.detail-row { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.detail-row .k { color: var(--ink-faint); flex-shrink: 0; }
.detail-desc { font-size: 14px; line-height: 1.7; color: var(--ink); margin: 14px 0; white-space: pre-wrap; }
.action-row { display: flex; gap: 10px; padding: 14px 16px; }

.contact-box {
  background: var(--pine-tint); border: 1px solid #c5dccf; border-radius: 10px;
  padding: 12px 14px; margin-top: 12px; font-size: 13.5px; color: var(--pine);
}
.contact-pending {
  background: #f2ede0; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-soft);
}

/* ── 模态框 ───────────────────────────────────────────────────────────── */
.modal-mask {
  display: flex;
  position: fixed; inset: 0; background: rgba(43,38,33,0.45); z-index: 50;
  align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
}
.modal-mask.show {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 0s;
}
.modal-sheet {
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 16px 16px 0 0; padding: 20px 16px 28px;
  max-height: 82vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
}
.modal-mask.show .modal-sheet { transform: translateY(0); }
.modal-sheet h3 { font-size: 16px; margin-bottom: 14px; font-weight: 800; }

/* ── 管理后台 ─────────────────────────────────────────────────────────── */
.admin-section { padding: 14px 16px; }
.admin-section h3 { font-size: 14px; margin: 16px 0 8px; color: var(--ink-soft); font-weight: 700; }
.code-row, .report-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px;
  font-size: 13.5px;
}
.code-row .code { font-family: monospace; font-weight: 700; letter-spacing: 1px; }
.tag-active { color: var(--pine); }
.tag-inactive { color: var(--ink-faint); }

/* ── 底部导航 ─────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  background: rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 -1px 0 var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .row { display: flex; width: 100%; max-width: 480px; }
.bottom-nav .item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 0 7px; color: var(--ink-faint); text-decoration: none; position: relative;
  cursor: pointer; transition: transform 120ms var(--ease-out), color 150ms ease;
}
.bottom-nav .item:active { transform: scale(0.92); }
.bottom-nav .item svg { width: 22px; height: 22px; }
.bottom-nav .item span { font-size: 10.5px; font-weight: 600; }
.bottom-nav .item.active { color: var(--clay); }
.bottom-nav .item .dot {
  position: absolute; top: 5px; right: calc(50% - 15px);
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
  border: 1.5px solid #fffaf0;
}

.bottom-nav .item .num-badge {
  position: absolute; top: 2px; left: calc(50% + 4px);
  min-width: 17px; height: 17px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; background: #e5352b; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
  border: 1.5px solid #fffaf0;
}

.picker-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink); cursor: pointer;
  transition: transform 100ms var(--ease-out), opacity 100ms ease;
}
.picker-row:active { transform: scale(0.98); opacity: 0.7; }
.picker-row:last-of-type { border-bottom: none; }

/* ── 消息中心广场 ─────────────────────────────────────────────────────── */
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 0 12px 10px;
}
.post .head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--pine); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.post .name { font-size: 13.5px; font-weight: 700; }
.post .time { font-size: 11.5px; color: var(--ink-faint); }
.post .content { font-size: 14px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.post .img { margin-top: 8px; width: 100%; max-height: 260px; object-fit: cover; border-radius: 9px; }
.post .foot { display: flex; justify-content: flex-end; margin-top: 8px; }

.post-img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px;
}
.post-img-grid.n1 { grid-template-columns: minmax(0, 220px); }
.post-img-grid.n2, .post-img-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.post-img-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee5d4;
}

.comment-list {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.comment-row { font-size: 12.5px; line-height: 1.6; color: var(--ink); cursor: pointer; padding: 2px 4px; border-radius: 6px; transition: background 120ms ease; }
.comment-row:active { background: var(--clay-tint); }
.comment-row b { color: var(--pine); font-weight: 700; }
.comment-row .del { color: var(--ink-faint); font-size: 11px; margin-left: 6px; cursor: pointer; }
.reply-tag {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  font-size: 12px; color: var(--ink-soft); background: var(--clay-tint);
  border-radius: 8px; padding: 6px 10px;
}
.reply-tag b { color: var(--clay-dark); }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input-row input {
  flex: 1; padding: 7px 10px; font-size: 12.5px; border: 1px solid var(--line);
  border-radius: 8px; background: #fffdf8; outline: none;
}
.comment-input-row button { width: auto; padding: 7px 14px; font-size: 12.5px; }

/* ── 图片放大查看 ─────────────────────────────────────────────────────── */
.lightbox-mask {
  display: flex;
  position: fixed; inset: 0; background: rgba(20,17,14,0.92); z-index: 80;
  align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.lightbox-mask.show {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 0s;
}
.lightbox-mask img {
  max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out;
  transform: scale(0.92);
  transition: transform 280ms var(--ease-out);
}
.lightbox-mask.show img { transform: scale(1); }

.composer {
  padding: 12px; background: #fffaf0; border-bottom: 1px solid var(--line);
}
.composer textarea { min-height: 60px; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ── 私信 ─────────────────────────────────────────────────────────────── */
.chat-list-item {
  display: flex; gap: 11px; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.chat-list-item .avatar { width: 42px; height: 42px; font-size: 16px; }
.chat-list-item .body { flex: 1; min-width: 0; }
.chat-list-item .name { font-size: 14.5px; font-weight: 700; }
.chat-list-item .preview {
  font-size: 12.5px; color: var(--ink-faint); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-list-item .unread {
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--clay); color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

.chat-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; }
.bubble-row { display: flex; }
.bubble-row.me { justify-content: flex-end; }
.bubble {
  max-width: 74%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.bubble-row.me .bubble { background: var(--clay); color: #fff8f2; border-color: var(--clay); }
.chat-input-bar {
  position: fixed; left: 0; right: 0; bottom: 64px; z-index: 35;
  display: flex; justify-content: center; background: #fffaf0; border-top: 1px solid var(--line);
}
.chat-input-bar .row { display: flex; gap: 8px; width: 100%; max-width: 480px; padding: 8px 10px; }
.chat-input-bar input { flex: 1; }
.chat-input-bar button { width: auto; padding: 10px 16px; }

/* ── 我的 ─────────────────────────────────────────────────────────────── */
.me-head {
  display: flex; align-items: center; gap: 14px; padding: 22px 16px; background: #fffaf0;
  border-bottom: 1px solid var(--line);
}
.me-head .avatar { width: 54px; height: 54px; font-size: 20px; }
.me-head .name { font-size: 17px; font-weight: 800; }
.me-head .phone { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.me-list { padding: 12px; }
.me-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; margin-bottom: 8px; font-size: 14px; color: var(--ink);
  text-decoration: none;
}
.me-row .n { color: var(--ink-faint); font-size: 12.5px; }
.me-row .arrow { color: var(--ink-faint); }

.me-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 10px; margin-top: 2px;
}
.me-section-title > span:first-child {
  font-size: 15.5px; font-weight: 800; color: var(--ink);
  padding-left: 11px; position: relative;
}
.me-section-title > span:first-child::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 2px; background: var(--clay);
}
.me-section-title .n {
  font-size: 11.5px; font-weight: 700; color: #fff8f2; background: var(--clay);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

.me-item-card {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 15px; margin-bottom: 10px; font-size: 13.5px; color: var(--ink);
  text-decoration: none; box-shadow: 0 2px 8px rgba(43,38,33,0.07);
  transition: transform 120ms var(--ease-out), background 150ms ease;
}
.me-item-card:active { background: #fbf6ec; transform: scale(0.98); }
.me-item-card .n { color: var(--ink-faint); font-size: 12px; }
.me-item-card .row-top { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; }
.me-item-card .row-top > span:first-child { font-weight: 700; font-size: 14.5px; }
.me-item-card .row-top .n { flex-shrink: 0; }

/* ── 商家 ─────────────────────────────────────────────────────────────── */
.merchant-cta {
  margin: 12px; padding: 14px; background: var(--pine-tint); border: 1px solid #c5dccf;
  border-radius: 12px; font-size: 13px; color: var(--pine); line-height: 1.6;
}
.merchant-cta b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.status-pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px;
}
.status-pill.wait, .status-pill.pending { background: #ece4d4; color: var(--ink-soft); }
.status-pill.paid { background: var(--clay-tint); color: var(--clay-dark); }
.status-pill.live { background: var(--pine-tint); color: var(--pine); }
.status-pill.expired { background: var(--danger-tint); color: var(--danger); }

/* ── 通用 ─────────────────────────────────────────────────────────────── */
.link-btn { background: none; border: none; color: var(--pine); font-size: 13.5px; cursor: pointer; padding: 0; }
.center-msg { text-align: center; color: var(--ink-faint); padding: 40px 20px; font-size: 13.5px; }

/* 登录弹窗（未登录用户点发布/联系时弹出） */
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--clay-tint, #f1ebe0); border-radius: 12px; }
.auth-tabs button { flex: 1; padding: 9px; font-size: 14px; font-weight: 700; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft, #6b6257); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--clay-dark, #b6552f); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-soft, #6b6257); }
.auth-hint a { color: var(--pine, #3c6355); }
.login-chip { color: var(--clay-dark, #b6552f); font-weight: 700; cursor: pointer; }
