:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #17191d;
  --ink-2: #4b5058;
  --muted: #8a909a;
  --line: #e8eaef;
  --primary: #f4562a;
  --primary-dark: #d9421a;
  --primary-soft: #fff1ec;
  --green: #0f9d58;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05), 0 1px 3px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 6px 20px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 22, 26, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: contain;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 前台 ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a45, #f4562a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(244, 86, 42, 0.35);
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.head-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: 0.18s;
}

.head-link:hover {
  border-color: #d6d9e0;
  background: #fafbfc;
}

.hero {
  padding: 26px 0 6px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.search {
  position: relative;
  max-width: 520px;
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: 0.18s;
}

.search input:focus {
  border-color: #f7b39c;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search svg {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--muted);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: #f0f1f4;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  display: none;
  line-height: 1;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  transition: 0.16s;
  white-space: nowrap;
}

.chip:hover {
  border-color: #d6d9e0;
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 12px 0 40px;
}

/* 分类条与列表之间的通知轮播（后台可维护，前台不可点击） */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--primary-soft);
  border: 1px solid #ffdccd;
  font-size: 13px;
}

.notice-ico {
  flex: 0 0 auto;
  color: var(--primary);
}

.notice-view {
  position: relative;
  flex: 1;
  height: 19px;
  overflow: hidden;
}

.notice-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a83a12;
  font-weight: 600;
  line-height: 19px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.notice-item.on {
  opacity: 1;
  transform: translateY(0);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: #eef0f3;
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
  transform: scale(1.04);
}

.thumb-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #b9bec7;
  font-size: 13px;
  background: repeating-linear-gradient(45deg, #f2f4f7, #f2f4f7 10px, #eceff3 10px, #eceff3 20px);
}

.badge-pin {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(244, 86, 42, 0.94);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(244, 86, 42, 0.3);
}

.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-title {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.card-meta {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cfd3da;
}

.card-phone {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 6px;
}

/* ---------- 详情 ---------- */
.detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 80px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 12px 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.back:hover {
  background: #ebedf1;
}

.detail-cover {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef0f3;
  aspect-ratio: 16 / 9;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  margin: 20px 0 6px;
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.detail-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.rows {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.row:last-child {
  border-bottom: none;
}

.row-label {
  flex: 0 0 74px;
  color: var(--muted);
  font-size: 13.5px;
  padding-top: 2px;
}

.row-value {
  flex: 1;
  font-size: 15px;
  word-break: break-word;
}

.row-value a {
  color: var(--primary);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 7px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  flex: 1;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(244, 86, 42, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: #fafbfc;
  border-color: #d6d9e0;
}

.detail-foot {
  margin-top: 22px;
  text-align: center;
  color: #b3b9c2;
  font-size: 12.5px;
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(23, 25, 29, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 2000; /* 必须盖过底部弹窗(.mk-mask 95)，否则弹窗内提示看不到 */
  backdrop-filter: blur(6px);
  max-width: 86vw;
  text-align: center;
  line-height: 1.5;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 后台 ---------- */
.admin-body {
  background: #f3f4f7;
  min-height: 100vh;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfc;
  outline: none;
  transition: 0.18s;
}

.input:focus {
  background: #fff;
  border-color: #f7b39c;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

textarea.input {
  height: auto;
  padding: 11px 13px;
  resize: vertical;
  min-height: 74px;
  line-height: 1.55;
}

.login-card .btn {
  width: 100%;
  margin-top: 6px;
}

.login-tip {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.side {
  width: 208px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  padding: 4px 8px 18px;
  font-size: 15px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: 0.15s;
}

.nav-item:hover {
  background: #f5f6f8;
}

.nav-item.on {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main {
  flex: 1;
  padding: 24px 28px 60px;
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.page-head .spacer {
  flex: 1;
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13.5px;
  flex: 0 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 1180px) {
  .stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head h3 {
  margin: 0;
  font-size: 14.5px;
}

.panel-body {
  padding: 6px 0;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #f1f2f5;
}

.list-row:last-child {
  border-bottom: none;
}

/* 名片列表右侧「浏览量 + 操作按钮」这一组：桌面端打散成普通列，手机端才成为独立一行 */
.list-acts {
  display: contents;
}

.list-thumb {
  width: 62px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef0f3;
  flex: 0 0 auto;
}

.list-thumb.empty-thumb {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #b9bec7;
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-sub {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f3f6;
  color: var(--ink-2);
  white-space: nowrap;
}

.pill.pin {
  background: #fff0e9;
  color: #c2451c;
  font-weight: 600;
}

/* 名片管理：发布时间列（等宽数字，便于一眼看出倒序） */
.pill.card-time {
  background: #f6f7f9;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  min-width: 78px;
  text-align: center;
}

/* 名片管理：工具栏的排序提示 */
.pill.sort-hint {
  background: #eef6f0;
  color: #1c7c45;
  font-weight: 600;
}

/* 置顶按钮激活态：实心橙，和「有评论」的浅橙区分开 */
.icon-btn.on,
.icon-btn.on:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  flex: 0 0 auto;
  transition: 0.15s;
}

.icon-btn:hover {
  background: #f7f8fa;
  border-color: #d6d9e0;
}

.icon-btn.danger:hover {
  background: #fff1f0;
  border-color: #f7c8c2;
  color: #d93a2b;
}

/* 列表手动排序：序号 + 上下移 */
.icon-btn.ord {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #7c8290;
}

.icon-btn.ord:hover:not(:disabled) {
  color: var(--ink);
  background: #f2f4f7;
}

.list-row .icon-btn:disabled {
  opacity: 0.32;
  cursor: default;
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}

.ord-no {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #7c8290;
  font-size: 11.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* 分类行内改名 / 合并 */
.cat-edit {
  height: 32px;
  max-width: 220px;
  font-size: 14px;
}

.cat-merge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #6b7280;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar .input {
  max-width: 260px;
  height: 40px;
  background: #fff;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.42);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
  z-index: 60;
  backdrop-filter: blur(2px);
}

.modal-mask.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.2s ease;
}

@keyframes pop {
  from {
    transform: translateY(8px) scale(0.99);
    opacity: 0;
  }
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.modal-head button {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px 20px;
  max-height: min(62vh, 620px);
  overflow-y: auto;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fcfcfd;
}

.modal-foot .btn {
  flex: 0 0 auto;
  min-width: 96px;
  height: 42px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.uploader {
  display: flex;
  gap: 12px;
  align-items: center;
}

.upload-preview {
  width: 108px;
  height: 72px;
  border-radius: 10px;
  border: 1px dashed #d8dce3;
  background: #fbfbfc;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 760px) {
  .admin-shell {
    flex-direction: column;
  }

  .side {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }

  .side-brand {
    padding: 0 10px 0 4px;
    white-space: nowrap;
  }

  .side-foot {
    margin: 0;
    border: none;
    flex-direction: row;
    padding: 0;
  }

  .main {
    padding: 18px 14px 60px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 21px;
  }

  .row-label {
    flex: 0 0 62px;
  }
}

/* ---------- 首页轮播 ---------- */
.banner {
  position: relative;
  margin: 14px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #eef0f3;
  aspect-ratio: 21 / 9;
  min-height: 150px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
}

.banner-slide.on {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 2;
}

.banner-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.banner-dot.on {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}

/* 卡片精简为 图片 + 名称 */
.card .card-body {
  padding: 11px 13px 13px;
  gap: 0;
}

@media (max-width: 760px) {
  .banner {
    border-radius: 14px;
    margin-top: 10px;
  }

  .hero {
    padding-top: 14px;
  }
}

/* 卡片标题只显示一行，超出省略 */
.card .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 封面完整显示（不裁剪） ---------- */
/* 门头照多为超宽横图，卡片用 2:1 容器 + contain 显示整张图，空白处用同图虚化填充 */
.card .card-thumb {
  aspect-ratio: 2 / 1;
  background: #eceef2;
}

.card .card-thumb::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.05);
  opacity: 0.5;
}

.card .card-thumb img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.card .card-thumb .thumb-empty,
.card .card-thumb .badge-pin {
  z-index: 2;
}

.card:hover .card-thumb img {
  transform: none;
}

/* 详情页大图也按原比例完整显示 */
.detail-cover {
  aspect-ratio: auto;
  background: #f2f4f7;
}

.detail-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .card .card-thumb {
    aspect-ratio: 2 / 1;
  }
}

/* ---------- 列表卡片精修 ---------- */
/* 虚化背景更柔和，避免糊成一片 */
.card .card-thumb::before {
  filter: blur(22px) saturate(1.08) brightness(1.02);
  opacity: 0.38;
}

/* 图片上下加一层极淡渐变，与虚化底自然过渡 */
.card .card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0.03) 100%);
}

/* 卡片本体更轻，双列时不显脏 */
.card {
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
  border-color: #e6e9ee;
}

.card:hover {
  box-shadow: 0 8px 22px rgba(20, 22, 26, 0.10);
}

/* 标题区更紧凑，两列对齐更整齐 */
.card .card-body {
  padding: 10px 12px 12px;
}

.card .card-title {
  font-size: 14.5px;
  line-height: 1.4;
}

/* 置顶角标更小更精致 */
.badge-pin {
  left: 8px;
  top: 8px;
  font-size: 10.5px;
  padding: 2px 7px;
  background: rgba(244, 86, 42, 0.92);
}

@media (max-width: 760px) {
  .grid {
    gap: 10px;
    padding: 14px 0 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    border-radius: 12px;
  }

  .card .card-body {
    padding: 9px 10px 11px;
  }

  .card .card-title {
    font-size: 13.5px;
  }
}

/* 超窄屏（<=360px）仍保持两列 */
@media (max-width: 360px) {
  .card .card-title {
    font-size: 12.5px;
  }
}

/* ---------- 双列精修 v2 ---------- */
/* 图片框由 2:1 收窄到 2.7:1，门头图在框内占比从约 31% 提到约 40%，虚化带更少 */
.card .card-thumb {
  aspect-ratio: 2.7 / 1;
  background: #f2f3f6;
}

.card .card-thumb::before {
  filter: blur(26px) saturate(1.06) brightness(1.06);
  opacity: 0.28;
}

/* 图片本身加一层极轻的描边，避免和虚化底糊在一起 */
.card .card-thumb img {
  filter: drop-shadow(0 1px 2px rgba(20, 22, 26, 0.10));
}

/* 标题区再收紧一点 */
.card .card-body {
  padding: 9px 11px 11px;
}

.card .card-title {
  font-size: 14px;
  letter-spacing: -0.1px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .card {
    border-radius: 11px;
  }

  .card .card-body {
    padding: 8px 9px 10px;
  }

  .card .card-title {
    font-size: 13px;
  }

  .badge-pin {
    left: 6px;
    top: 6px;
    font-size: 10px;
    padding: 1px 6px;
  }
}

/* ---------- 详情页 ---------- */
.detail-title {
  margin: 18px 0 14px;
}

/* 详情页操作按钮：保存图片（左）+ 分享名片（右） */
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions .btn {
  height: 54px;
  border-radius: 15px;
  font-size: 16px;
}

.btn-poster {
  flex: 0 0 40%;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.2px;
}

.btn-poster:active {
  background: #f4f5f7;
  border-color: #d8dce3;
}

.btn-share {
  flex: 1;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(244, 86, 42, 0.3);
}

@media (max-width: 760px) {
  .detail-title {
    font-size: 20px;
    margin: 14px 0 12px;
  }

  .detail-actions .btn {
    height: 52px;
    font-size: 15.5px;
  }
}

/* ---------- Banner 完整显示（不裁切，两侧用同图虚化填充） ---------- */
.banner {
  background: #eff1f4;
}

.banner-slide {
  overflow: hidden;
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: -30px;
  z-index: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.05) brightness(1.02);
  opacity: 0.45;
}

.banner-slide img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

/* ---------- Banner 铺满（覆盖式裁剪，不留虚化边） ---------- */
.banner {
  background: #eff1f4;
}

.banner-slide::before {
  display: none;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- 分享弹窗 ---------- */
.share-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 80;
  backdrop-filter: blur(2px);
}

.share-mask.show {
  display: flex;
}

.share-box {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.18s ease;
}

.share-box h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
}

.share-box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-link {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfc;
  font-size: 13px;
  color: var(--ink-2);
  outline: none;
}

.share-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- 多电话：一行一个 ---------- */
.phones {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.phone-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-decoration: none;
  padding: 2px 0;
}

.phone-item::before {
  content: '';
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background-color: currentColor;
  opacity: 0.75;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.2a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/></svg>");
  mask: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.2a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/></svg>");
}

@media (max-width: 760px) {
  .phone-item {
    font-size: 15px;
  }
}

/* ---------- 电话图标左移，号码与地址文字左对齐 ---------- */
.phones {
  margin-left: -17px;
}

.phone-item {
  gap: 5px;
}

.phone-item::before {
  width: 12px;
  height: 12px;
}

@media (max-width: 760px) {
  .phones {
    margin-left: -17px;
  }
}

/* ---------- 认领 / 信息报错 ---------- */
.btn-claim {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: none;
  border-radius: 15px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
  transition: 0.15s;
}

.btn-claim:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.claim-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
  backdrop-filter: blur(2px);
}

.claim-mask.show {
  display: flex;
}

.claim-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop 0.18s ease;
}

.claim-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.claim-box p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.claim-box img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.claim-empty {
  padding: 34px 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.claim-empty span {
  color: #b9bec7;
  font-size: 12px;
}

.claim-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.claim-close {
  position: absolute;
  right: 6px;
  top: 2px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #b9bec7;
  cursor: pointer;
}

@media (max-width: 760px) {
  .btn-claim {
    height: 50px;
    font-size: 15.5px;
  }
}

/* ---------- 详情页顶部：无返回按钮，图片贴近顶部 ---------- */
.detail {
  padding: 12px 16px 24px;
}

.detail .detail-cover {
  margin-top: 0;
}

/* ---------- 后台名片 ID 标签 ---------- */
.id-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #eef1f6;
  color: #5b6472;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  vertical-align: 1px;
}

/* ================= 底部三按钮导航 ================= */
[hidden] {
  display: none !important;
}

body:not(.admin-body) {
  padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(20, 22, 26, 0.06);
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 5px;
  font-size: 11.5px;
  line-height: 1.2;
  color: #8a909a;
  text-decoration: none;
  transition: color 0.15s;
}

.tab-item.on {
  color: var(--primary);
  font-weight: 600;
}

.tab-item svg {
  transition: transform 0.15s;
}

.tab-item.on svg {
  transform: translateY(-1px);
}

@media (min-width: 780px) {
  .tabbar {
    justify-content: center;
    gap: 8px;
  }
  .tab-item {
    flex: 0 0 150px;
  }
}

/* ================= 创建名片 ================= */
.form-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 22px 16px 30px;
}

.form-head h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.form-head p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-sm);
}

.f-label {
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.f-label:first-child {
  margin-top: 0;
}

.f-label i {
  color: var(--primary);
  font-style: normal;
}

.f-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  font-size: 15px;
  outline: none;
  transition: 0.15s;
}

textarea.f-input {
  height: auto;
  padding: 11px 13px;
  line-height: 1.6;
  resize: vertical;
}

select.f-input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.f-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244, 86, 42, 0.1);
}

.photo-pick {
  position: relative;
  border: 1px dashed #d7dbe3;
  border-radius: 14px;
  background: #fafbfc;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
}

.photo-pick.has {
  border-style: solid;
  border-color: var(--line);
  background: #fff;
}

.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.photo-empty svg {
  color: #c2c8d2;
}

.photo-empty em {
  font-style: normal;
  font-size: 11.5px;
  color: #b9bec7;
}

.photo-preview {
  display: block;
  width: 100%;
  height: auto;
}

.photo-change {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(20, 22, 26, 0.55);
  color: #fff;
  font-size: 11.5px;
}

/* 表单内联校验：输入框标红 + 字段下方说明 */
.f-input.bad,
.f-input.bad:focus {
  border-color: #e5484d;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.1);
}

.photo-pick.bad {
  border-color: #e5484d;
  border-style: solid;
  background: #fff7f7;
}

.f-err {
  display: none;
  margin: 7px 2px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #c92a2a;
}

.f-err.show {
  display: block;
  animation: fErrIn 0.18s ease-out;
}

.f-alert {
  display: none;
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecec;
  color: #c92a2a;
  font-size: 13px;
  line-height: 1.6;
}

.f-alert.show {
  display: block;
  animation: fErrIn 0.18s ease-out;
}

/* 有错误提示时，紧跟着的下一个字段标题不要贴太近 */
.f-err.show + .f-label {
  margin-top: 14px;
}

@keyframes fErrIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.f-submit {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(244, 86, 42, 0.26);
  transition: 0.15s;
}

.f-submit:active {
  transform: translateY(1px);
}

.f-submit:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.f-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ================= 提交成功 ================= */
.done-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 30px;
}

.done-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.done-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e9f9f0;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.done-card h1 {
  margin: 0 0 8px;
  font-size: 21px;
}

.done-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.done-btn {
  display: block;
  height: 48px;
  line-height: 48px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 10px;
}

.done-btn.main {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(244, 86, 42, 0.24);
}

/* ================= 联系我们 ================= */
/* ---------- 用户中心 ---------- */
.member-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px 30px;
}

.me-hero {
  position: relative;
  padding: 30px 18px 26px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(165deg, #fff5f0 0%, #ffffff 58%);
  border: 1px solid #ffe6db;
  box-shadow: var(--shadow-sm);
}

.me-avatar {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f1f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 32px;
  font-weight: 600;
  color: #9aa1ac;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(244, 86, 42, 0.16);
}

.me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-avatar.plain {
  color: #c3c9d2;
}

.me-avatar.loading {
  background: linear-gradient(100deg, #f1f3f6 30%, #e6e9ee 50%, #f1f3f6 70%);
  background-size: 220% 100%;
  animation: meShine 1.1s linear infinite;
}

@keyframes meShine {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.me-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.me-name.guest {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.me-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* 用户中心顶部三个常用入口：横排卡片 */
.me-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.me-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 5px 13px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: center;
  transition: background 0.16s, transform 0.16s;
}

.me-grid-item:active {
  background: #f7f8fa;
  transform: translateY(1px);
}

.me-grid-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.me-grid-t {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .me-grid-t {
    font-size: 11.5px;
  }
}

.me-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0 14px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: background 0.16s;
}

.me-link:active {
  background: #f7f8fa;
}

/* 同款卡片用在 <button> 上，清掉按钮默认样式 */
button.me-link {
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.me-link-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.me-link-t {
  font-size: 15px;
  font-weight: 600;
}

.me-link-arrow {
  margin-left: auto;
  flex: none;
  color: #c5cad3;
}

/* 年费会员尊享礼遇：纯展示卡片，不含任何交互 */
.vip-perks {
  position: relative;
  margin-top: 14px;
  padding: 16px 14px 15px;
  border-radius: 18px;
  background: linear-gradient(140deg, #2f2519 0%, #4b3823 58%, #563f26 100%);
  border: 1px solid rgba(232, 200, 135, 0.22);
  box-shadow: 0 10px 22px rgba(47, 37, 25, 0.2);
  overflow: hidden;
}

/* 右上角一团很淡的金光 */
.vip-perks::after {
  content: '';
  position: absolute;
  top: -52px;
  right: -38px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 135, 0.26), rgba(232, 200, 135, 0) 68%);
  pointer-events: none;
}

.vp-head {
  position: relative;
  z-index: 1;
  display: block;
}

/* 标题做成整条金色横幅，左右与下方四列对齐 */
.vp-title {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.6px;
  text-align: center;
  white-space: nowrap;
  color: #f9dfae;
  background: linear-gradient(180deg, rgba(232, 200, 135, 0.24), rgba(232, 200, 135, 0.08));
  border: 1px solid rgba(232, 200, 135, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.vp-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.vp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.vp-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #e8c887;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(232, 200, 135, 0.24);
}

.vp-t {
  font-size: 12px;
  line-height: 1.3;
  color: #f0dcc0;
  text-align: center;
  white-space: nowrap;
}

/* 窄屏：四列很紧，字号收一点避免「免费下午茶」顶到边 */
@media (max-width: 359px) {
  .vip-perks {
    padding: 15px 10px 14px;
  }

  .vp-grid {
    gap: 3px;
  }

  .vp-title {
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 7px 8px;
  }

  .vp-t {
    font-size: 11px;
  }
}

@media (min-width: 760px) {
  .vip-perks {
    margin-top: 16px;
    padding: 20px 18px 18px;
    border-radius: 20px;
  }

  .vp-title {
    font-size: 18px;
    padding: 10px 12px;
    border-radius: 15px;
    letter-spacing: 0.8px;
  }

  .vp-grid {
    margin-top: 20px;
    gap: 10px;
  }

  .vp-ic {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .vp-t {
    font-size: 13px;
  }
}

/* 用户卡片右上角的消息铃铛：默认灰色，有未读变红并在右上角显示条数 */
.me-bell {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a9afb9;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eef0f3;
  transition: color 0.18s, background-color 0.18s, border-color 0.18s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.me-bell:active {
  transform: scale(0.94);
}

.me-bell.on {
  color: #f4442e;
  background: #fff1ed;
  border-color: #ffd7cc;
}

.me-bell-ic {
  display: block;
}

.me-bell.on .me-bell-ic {
  animation: bellShake 2.6s ease-in-out infinite;
}

@keyframes bellShake {
  0%,
  86%,
  100% {
    transform: rotate(0);
  }
  89% {
    transform: rotate(-11deg);
  }
  92% {
    transform: rotate(9deg);
  }
  95% {
    transform: rotate(-6deg);
  }
  98% {
    transform: rotate(3deg);
  }
}

.me-bell-num {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #f4442e;
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 0 0 2px #fff;
}

/* 底部「用户中心」红点 */
.tab-item {
  position: relative;
}

.tab-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4442e;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- 消息中心页 ---------- */
.msg-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.msg-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
}

.msg-head h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.msg-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-item {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.msg-item.new {
  border-color: #ffd9c9;
  background: linear-gradient(180deg, #fff9f5 0%, #ffffff 70%);
}

.msg-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.msg-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.msg-empty {
  padding: 66px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.contact-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 16px 30px;
}

.contact-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.contact-hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 16px;
  box-shadow: var(--shadow-sm);
}

.c-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f2f5;
  font-size: 14.5px;
}

.c-label {
  flex: 0 0 44px;
  color: var(--muted);
}

.c-value {
  flex: 1;
  color: var(--ink);
  word-break: break-all;
}

.c-value a {
  color: var(--primary);
}

.c-body {
  padding: 14px 0;
  border-bottom: 1px solid #f1f2f5;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
}

.c-body p {
  margin: 0 0 8px;
}

.c-body p:last-child {
  margin-bottom: 0;
}

.c-empty {
  padding: 26px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.c-qr {
  padding: 18px 0 20px;
  text-align: center;
}

.c-qr img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
}

.c-qr span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 后台：待审核角标 ---------- */
.nav-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
}

.pill.warn {
  background: #fff3e8;
  color: #b96a20;
}

/* ================= 微信内分享引导（card.php） ================= */
.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  background: rgba(12, 14, 18, 0.78);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #fff;
  padding: 0 34px;
}

.wx-guide.show {
  display: block;
}

.wx-guide-arrow {
  position: absolute;
  top: 2px;
  right: 20px;
  font-size: 48px;
  line-height: 1;
  color: #ffd166;
  animation: wxArrow 1.15s ease-in-out infinite;
}

.wx-guide-text {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  padding: 0 30px;
  text-align: center;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.wx-guide-text b {
  color: #ffd166;
  font-size: 19px;
  padding: 0 2px;
}

@keyframes wxArrow {
  0%, 100% {
    transform: translate(-5px, 5px);
    opacity: 0.55;
  }
  50% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* ================= 后台分页 ================= */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--line);
}

.pg-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pg-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pg-btn.num.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pg-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.pg-gap {
  color: #9aa0a8;
  padding: 0 2px;
}

/* ================= 前台无限下拉 ================= */
.load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 10px;
  color: #8a909a;
  font-size: 13px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e2e5ea;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.list-end {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px 0 8px;
  color: #b3b8c0;
  font-size: 12.5px;
}

/* 供需市场的上拉加载条（在 .mk-list 外面，因为 .mk-list 是两列 flex） */
.mk-more,
.mk-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 18px;
  color: #8a909a;
  font-size: 13px;
}

.mk-end {
  color: #b3b8c0;
  font-size: 12.5px;
}

/* 下拉刷新提示气泡 */
.ptr {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 120;
  transform: translate(-50%, 0);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.84);
  color: #fff;
  font-size: 12.5px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.ptr::before {
  content: '↓';
  margin-right: 5px;
  opacity: 0.85;
}

.ptr.show {
  opacity: 1;
}

/* ---------- 匿名评论 ---------- */
.cmt {
  margin-top: 26px;
}

.cmt-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.cmt-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.cmt-count {
  font-size: 12.5px;
  color: var(--muted);
}

.cmt-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 8px;
  box-shadow: var(--shadow-sm);
}

.cmt-input {
  display: block;
  width: 100%;
  min-height: 46px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.cmt-input::placeholder {
  color: #a8aeb8;
}

.cmt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cmt-tip {
  font-size: 12px;
  color: var(--muted);
}

.cmt-send {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}

.cmt-send:active {
  background: var(--primary-dark);
  transform: translateY(1px);
}

.cmt-send:disabled {
  opacity: 0.6;
}

.cmt-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmt-item {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.cmt-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cmt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmt-avatar.anon {
  background: #f2f4f7;
  color: #9aa1ac;
  border: 1px solid #e6e9ee;
}

.cmt-avatar.sm {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.cmt-main {
  flex: 1;
  min-width: 0;
}

.cmt-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.cmt-meta b {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.cmt-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}

.cmt-empty {
  padding: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

/* ---------- 后台评论管理 ---------- */
.cmt-admin-row {
  align-items: flex-start;
}

.cmt-admin-row .list-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.55;
  word-break: break-word;
  margin-bottom: 3px;
}

.cmt-admin-row .list-sub {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5;
  word-break: break-word;
}

.cmt-admin-row .icon-btn {
  margin-top: 2px;
}

.cmt-card-link {
  color: var(--primary);
  text-decoration: none;
}

.cmt-card-link:hover {
  text-decoration: underline;
}

/* 评论管理：名片筛选标签、名片行里的评论按钮 */
.h2-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}

.cmt-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 5px 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  white-space: nowrap;
}

.cmt-scope b {
  font-weight: 600;
}

.cmt-scope-x {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(244, 86, 42, 0.13);
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.cmt-scope-x:hover {
  background: rgba(244, 86, 42, 0.24);
}

.icon-btn.cmt-btn {
  position: relative;
  color: var(--muted);
}

.icon-btn.cmt-btn:hover {
  color: var(--primary);
}

.icon-btn.cmt-btn.has {
  color: var(--primary);
  border-color: rgba(244, 86, 42, 0.32);
  background: #fff8f5;
}

.btn-danger-ghost {
  color: #d93025;
  border-color: #f3ccc7;
}

.btn-danger-ghost:hover {
  background: #fff5f4;
  border-color: #eab3ac;
}

/* ---------- 名片海报 ---------- */
.poster-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 10, 14, 0.94);
}

.poster-mask.show {
  display: flex;
}

.poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.poster-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 12px;
  background: #fff;
}

.poster-wrap.loading .poster-img {
  opacity: 0.35;
}

.poster-tip {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
}

.poster-actions {
  display: flex;
  gap: 10px;
}

.poster-btn {
  min-width: 104px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.poster-btn.ghost {
  background: rgba(255, 255, 255, 0.16);
}

.poster-btn:active {
  opacity: 0.85;
}

/* ---------- 后台数据概览：趋势图与说明 ---------- */
.stat-sub {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.panel-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 数据备份列表 ---------------- */
.bk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.bk-row:last-child {
  border-bottom: 0;
}

.bk-day {
  flex: 0 0 122px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.bk-day i {
  font-style: normal;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 6px;
}

.bk-links {
  flex: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bk-links a {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid rgba(244, 86, 42, 0.25);
  border-radius: 6px;
  padding: 2px 9px;
  line-height: 1.6;
  transition: background 0.15s ease;
}

.bk-links a:hover {
  background: var(--primary-soft);
}

.bk-size {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend .dot.primary {
  background: #f4562a;
}

.legend .dot.blue {
  background: #2563eb;
}

.trend-wrap {
  padding: 10px 12px 6px;
}

.chart-empty {
  padding: 36px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 用户管理 ---------------- */
.wx-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #eceff3;
  font-size: 12.5px;
  color: #5b6472;
}

.wx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9c0cb;
  flex: none;
}

.wx-dot.on {
  background: #22a35a;
  box-shadow: 0 0 0 3px rgba(34, 163, 90, 0.14);
}

.wx-line-sub {
  margin-left: auto;
  color: #98a0ac;
  font-size: 12px;
}

.wx-flag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 19px;
  font-weight: 600;
  background: #f2f4f7;
  color: #6b7280;
  border: 1px solid #e3e7ee;
}

.wx-flag.on {
  background: #e8f7ec;
  color: #1a7f37;
  border-color: #c9ebd3;
}

.cfg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cfg-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.cfg-f .input,
.cfg-f select {
  height: 40px;
}

.cfg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cfg-msg {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f6f7f9;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.cfg-msg.ok {
  background: #eef9f1;
  color: #1a7f37;
}

.cfg-msg.warn {
  background: #fff6e8;
  color: #9a5b00;
}

.cfg-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px dashed #e3d7cf;
  background: #fffdfa;
  color: #6b5b52;
  font-size: 12.5px;
  line-height: 1.75;
}

.cfg-tip strong {
  display: block;
  color: #a83a12;
  font-size: 13px;
  margin-bottom: 4px;
}

.cfg-tip code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #f5efe9;
  color: #8a4b2a;
  font-size: 12px;
}

.cfg-tip .cfg-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.u-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f2f5;
  flex-wrap: wrap;
}

.u-row:last-child {
  border-bottom: none;
}

.u-row:hover {
  background: #fafbfc;
}

.u-ava {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid #ffdccd;
  color: #a83a12;
  font-size: 15px;
  font-weight: 600;
}

.u-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-main {
  flex: 1 1 240px;
  min-width: 0;
}

.u-main .list-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.u-tag {
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.u-tag.wx {
  background: #e8f7ec;
  color: #1a7f37;
  border-color: #c9ebd3;
}

.u-tag.anon {
  background: #f2f4f7;
  color: #6b7280;
  border-color: #e3e7ee;
}

.u-num {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}

.u-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-msg b {
  color: #e0453a;
  font-weight: 600;
}

/* ---------- 发消息弹窗 ---------- */
.msg-to {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #f7f8fa;
  border: 1px solid #eceff3;
  border-radius: 10px;
}

.msg-to img,
.msg-to-ph {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.msg-to-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecf1;
  color: #8b93a0;
  font-size: 14px;
  font-weight: 600;
}

.msg-to-nm {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.msg-to-id {
  margin-left: auto;
  font-size: 12px;
  color: #8a909a;
}

.msg-hist {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e8eaef;
  max-height: 210px;
  overflow-y: auto;
}

.msg-hist-t {
  font-size: 12px;
  color: #8a909a;
  margin-bottom: 8px;
}

.msg-h-row {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #f8f9fb;
  border-radius: 8px;
}

.msg-h-c {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-h-m {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  color: #98a0ac;
}

.msg-h-del {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #e0453a;
  font-size: 11.5px;
  cursor: pointer;
}

.u-cell {
  flex: 0 0 auto;
  text-align: right;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.u-cell b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .cfg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .u-cell {
    text-align: left;
  }
}

/* ---------------- 评论身份（微信昵称头像 / 匿名） ---------------- */
.cmt-id {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.cmt-id:empty {
  display: none;
}

.cmt-who {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.cmt-who b {
  color: var(--ink-2);
  font-weight: 600;
}

.cmt-who.anon b {
  color: var(--muted);
}

.cmt-anon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cmt-anon input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.cmt-tip {
  margin-left: auto;
}

.cmt-meta b.anon {
  color: var(--muted);
  font-weight: 500;
}

/* 后台评论行的发布者 */
.cmt-from {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.cmt-from b {
  font-weight: 600;
}

.cmt-from b.anon {
  color: var(--muted);
  font-weight: 500;
}

.cmt-av-tiny {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.cmt-av-tiny img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmt-av-tiny.anon {
  background: #f2f4f7;
  color: #9aa1ac;
  border: 1px solid #e6e9ee;
}

/* ================= 供需市场 ================= */
.mk-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 6px 0 90px;
}

.mk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 6px;
}

.mk-head h1 {
  flex: none;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* 标题后的搜索框：占满剩余宽度，两个图标都不参与压缩 */
.mk-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mk-search.act {
  border-color: rgba(244, 86, 42, 0.45);
  box-shadow: 0 0 0 3px rgba(244, 86, 42, 0.08);
}

.mk-search svg {
  flex: none;
  margin-right: 5px;
  color: #9aa1ac;
}

.mk-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}

.mk-search input::placeholder {
  color: #a8aeb8;
}

.mk-clr {
  flex: none;
  display: none;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border: none;
  border-radius: 50%;
  background: #eceff4;
  color: #8a909a;
  font-size: 12px;
  line-height: 1;
}

.mk-clr.on {
  display: grid;
}

.mk-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border-radius: 50%;
  color: var(--ink-2);
}

.mk-back:active {
  background: #eff1f5;
}

.mk-pub {
  flex: none;
  margin-left: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(244, 86, 42, 0.28);
}

.mk-pub:active {
  background: var(--primary-dark);
}

.mk-pub.ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(244, 86, 42, 0.35);
  box-shadow: none;
}

.mk-sub {
  margin: 0 0 10px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mk-sub b {
  color: var(--primary);
  font-weight: 600;
}

/* 窄屏（iPhone SE 等）收紧头部，保证搜索框不被挤没 */
@media (max-width: 359px) {
  .mk-head {
    gap: 7px;
  }

  .mk-head h1 {
    font-size: 17px;
  }

  .mk-pub {
    padding: 0 10px;
    font-size: 12px;
  }
}

.mk-seg {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.mk-seg button {
  flex: 1;
  height: 33px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  transition: all 0.15s;
}

.mk-seg button.on {
  background: var(--primary-soft);
  border-color: rgba(244, 86, 42, 0.4);
  color: var(--primary);
  font-weight: 600;
}

/* 两列瀑布流：左右各自成列，卡片只占自身高度（不再被同行拉齐） */
.mk-list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 16px;
}

.mk-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-list .mk-empty {
  flex: 1 1 100%;
  margin: 0;
}

.mk-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 9px 11px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
}

.mk-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.mk-text.open {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.mk-tag {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 4px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.mk-tag.need {
  background: var(--primary-soft);
  color: var(--primary);
}

.mk-tag.offer {
  background: #e9f6ef;
  color: #128a54;
}

.mk-time {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
}

/* 置顶信息：左侧橙条 + 淡橙底，扫一眼就能区分 */
.mk-item.is-top {
  background: #fffaf6;
  border-color: rgba(244, 86, 42, 0.3);
  box-shadow: inset 3px 0 0 var(--primary), 0 1px 2px rgba(20, 22, 26, 0.04);
}

.mk-pin {
  flex: 0 0 auto;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mk-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mk-phone {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0;
}

.mk-del {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #9aa1ac;
  font-size: 10.5px;
}

.mk-del:active {
  color: #e0453c;
  border-color: rgba(224, 69, 60, 0.4);
}

.mk-empty {
  margin: 0 16px;
  padding: 52px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.mk-empty strong {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 2px;
}

.mk-empty a {
  color: var(--primary);
  font-weight: 600;
}

/* 发布弹窗 */
.mk-mask {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 22, 26, 0.5);
  backdrop-filter: blur(2px);
}

.mk-box {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: mkUp 0.22s ease;
}

@keyframes mkUp {
  from {
    transform: translateY(18px);
    opacity: 0.6;
  }
}

.mk-box-head {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.mk-box-head h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}

.mk-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f2f4f7;
  color: #8a909a;
  font-size: 17px;
  line-height: 1;
}

.mk-choose {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mk-choose button {
  flex: 1;
  height: 42px;
  padding: 0 6px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.25;
}

.mk-choose button.on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.mk-ta,
.mk-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}

.mk-ta {
  min-height: 96px;
  resize: none;
  line-height: 1.7;
  margin-bottom: 10px;
}

.mk-input {
  height: 46px;
}

.mk-ta:focus,
.mk-input:focus {
  border-color: rgba(244, 86, 42, 0.5);
  background: #fff;
}

/* 字数提示 */
.mk-meta {
  margin: -4px 2px 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.mk-meta.ok {
  color: #128a54;
}

/* 超出字数上限 */
.mk-meta.over {
  color: #e5484d;
  font-weight: 600;
}

/* 校验失败：输入框标红 + 说明文字 */
.mk-ta.bad,
.mk-input.bad {
  border-color: #e5484d;
  background: #fff7f7;
}

.mk-err {
  display: none;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdecec;
  color: #c92a2a;
  font-size: 12.5px;
  line-height: 1.5;
}

.mk-err.show {
  display: block;
  animation: mkErrIn 0.18s ease-out;
}

@keyframes mkErrIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mk-submit {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.mk-submit:disabled {
  opacity: 0.6;
}

.mk-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.6;
}

/* ================= 后台 · 供需管理 ================= */
.mk-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.mk-row:last-child {
  border-bottom: none;
}

/* 已置顶的那一行，左边加一条橙线 */
.mk-row.is-top {
  box-shadow: inset 2px 0 0 var(--primary);
  background: #fffcf9;
}

.mk-topflag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  line-height: 16px;
  font-weight: 600;
}

.mk-row-main {
  flex: 1;
  min-width: 0;
}

.mk-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.mk-row-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}

.mk-row-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= 收藏商家 ================= */
/* 详情页左侧按钮：未收藏是描边心，收藏后心形填充橙色 */
.btn-fav {
  flex: 0 0 40%;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.2px;
}

.btn-fav:active {
  background: #f4f5f7;
  border-color: #d8dce3;
}

.btn-fav.on {
  background: var(--primary-soft);
  border-color: rgba(244, 86, 42, 0.42);
  color: var(--primary);
}

.btn-fav.on svg {
  fill: currentColor;
}

/* 我收藏的商家：一行一家，左侧封面、中间名称地址、右侧取消 */
.fav-count {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.fav-list {
  padding-bottom: 6px;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
}

.fav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 auto;
  min-width: 0;
}

.fav-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f7;
  display: grid;
  place-items: center;
  color: #b6bcc6;
  font-size: 11px;
}

.fav-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fav-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-time {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.fav-del {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #9aa1ac;
  font-size: 12px;
  line-height: 1.2;
}

.fav-del:active {
  color: #e0453c;
  border-color: rgba(224, 69, 60, 0.4);
}

/* ---------- 微信登录门禁（创建名片 / 发布供需） ---------- */
.wxg-mask {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(16, 20, 28, 0.46);
  animation: wxgFade 0.18s ease;
}

@keyframes wxgFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wxg-box {
  width: 100%;
  max-width: 320px;
  padding: 26px 22px 16px;
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: wxgRise 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes wxgRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wxg-ic {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #eaf8ee;
  color: var(--green);
  display: grid;
  place-items: center;
}

.wxg-t {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.wxg-p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.wxg-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7f9;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.wxg-main {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wxg-main:active {
  background: var(--primary-dark);
}

.wxg-ghost {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- banner 左上角滚动访问提示（单行） ---------- */
.bn-live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(15, 20, 30, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  color: #e5352b;
  line-height: 1.35;
  white-space: nowrap;
}

.bn-live-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5352b;
  animation: bnPulse 1.5s ease-in-out infinite;
}

@keyframes bnPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.32;
    transform: scale(0.72);
  }
}

.bn-live-name {
  flex: 0 1 auto;
  min-width: 2em;
  max-width: 7.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bn-live-name.swap {
  animation: bnSwap 0.34s ease;
}

@keyframes bnSwap {
  from {
    opacity: 0;
    transform: translateY(85%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bn-live-txt {
  flex: none;
  color: #c9534a;
  font-weight: 500;
}

/* 「今天已有 N 人访问」接在同一行后面，用一道细分隔线隔开 */
.bn-live-num {
  flex: none;
  margin-left: 1px;
  padding-left: 7px;
  border-left: 1px solid rgba(229, 53, 43, 0.22);
  color: #9c625c;
  font-size: 11px;
  font-weight: 500;
}

.bn-live-num b {
  margin: 0 1px;
  color: #e5352b;
  font-size: 12px;
  font-weight: 700;
}

/* 桌面宽屏下 banner 很大，提示条适当放大才协调 */
@media (min-width: 760px) {
  .bn-live {
    top: 18px;
    left: 18px;
    gap: 7px;
    padding: 9px 15px 10px;
    border-radius: 14px;
    font-size: 15px;
  }

  .bn-live-dot {
    width: 8px;
    height: 8px;
  }

  .bn-live-name {
    max-width: 10em;
  }

  .bn-live-txt {
    font-size: 15px;
  }

  .bn-live-num {
    padding-left: 10px;
    font-size: 14px;
  }

  .bn-live-num b {
    font-size: 15.5px;
  }
}

/* 后台名片列表 · 手机端改成两行，避免标题被右侧的时间/浏览量/按钮挤没 */
@media (max-width: 760px) {
  #cardList .list-row {
    flex-wrap: wrap;
    row-gap: 7px;
    padding: 11px 14px;
  }

  #cardList .list-thumb {
    width: 54px;
    height: 38px;
  }

  #cardList .list-main {
    flex: 1 1 96px;
    min-width: 96px;
  }

  #cardList .pill.card-time {
    min-width: 0;
    margin-left: auto;
  }

  /* 浏览量 + 操作按钮整组落到第二行，整体靠右 */
  #cardList .list-acts {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
}
