/* ==========================================================================
   童趣宝妈天地 —— 设计系统
   移动端优先，桌面端居中显示为手机画幅
   ========================================================================== */

:root {
  /* 品牌色：清爽宝妈粉 */
  --primary: #ff6f9c;
  --primary-dark: #f2558b;
  --primary-soft: #ffe9f1;
  --primary-faint: #fff6fa;

  /* 宝宝蓝 */
  --baby: #57a6f0;
  --baby-dark: #3a8fe0;
  --baby-soft: #e8f3fd;

  /* 中性色（干净浅灰底，更通透） */
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #2a2a30;
  --text-2: #6c6c78;
  --text-3: #a6a6b2;
  --line: #eef0f3;
  --line-strong: #e3e6ea;

  /* 功能色 */
  --danger: #f0556a;
  --success: #2fbf8f;
  --warning: #f5a623;

  /* 形状 */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  /* 轻量中性阴影，更轻盈干净 */
  --shadow-sm: 0 2px 10px rgba(40, 40, 60, .05);
  --shadow: 0 10px 28px rgba(40, 40, 60, .08);
  --shadow-lg: 0 18px 44px rgba(40, 40, 60, .12);

  --navbar-h: 52px;
  --tabbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  background: #eceef2;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); }
a { color: inherit; text-decoration: none; }

/* 手机画幅容器 ---------------------------------------------------------- */
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(120, 80, 100, .12);
}

/* 页面 ------------------------------------------------------------------ */
.page {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  animation: pageIn .26s ease;
}
.page--plain { padding-bottom: calc(var(--safe-b) + 24px); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* 顶部导航 -------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(253, 247, 249, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar__title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.navbar__btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  flex-shrink: 0;
}
.navbar__btn:active { background: var(--primary-soft); }
.navbar__action {
  flex-shrink: 0;
  min-width: 34px;
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0 4px;
  text-align: right;
}

/* 顶部大标题区（衣橱首页） ------------------------------------------------ */
.hero {
  padding: 18px 16px 16px;
  background: linear-gradient(160deg, var(--primary-soft) 0%, var(--bg) 100%);
}
.hero--baby { background: linear-gradient(160deg, var(--baby-soft) 0%, var(--bg) 100%); }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__title { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.hero__sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* 分段控制器（宝妈 / 宝宝） ----------------------------------------------- */
.seg {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.seg__item {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .22s;
  white-space: nowrap;
}
.seg__item--on { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(255, 123, 169, .38); }
.seg__item--on.is-baby { background: var(--baby); box-shadow: 0 3px 10px rgba(95, 176, 240, .38); }

/* 搜索框 ---------------------------------------------------------------- */
.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.search input { flex: 1; border: none; outline: none; background: none; }
.search input::placeholder { color: var(--text-3); }

/* 横向标签滚动 ----------------------------------------------------------- */
.scroller {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s;
}
.chip--on {
  background: var(--text);
  color: #fff;
  font-weight: 600;
}
.chip__count {
  display: inline-block;
  margin-left: 5px;
  opacity: .6;
  font-size: 11px;
}

/* 卡片 ------------------------------------------------------------------ */
.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.section {
  margin: 16px;
}
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.section__title { font-size: 15px; font-weight: 700; }
.section__more { font-size: 12px; color: var(--primary-dark); font-weight: 600; }

/* 今日推荐 -------------------------------------------------------------- */
.rec-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
.rec-scroll::-webkit-scrollbar { display: none; }
.rec-card {
  flex-shrink: 0;
  width: 152px;
  padding: 10px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.rec-card__imgs { display: flex; gap: 5px; }
.rec-card__imgs > div {
  flex: 1;
  aspect-ratio: 3/4;
  border-radius: var(--r-sm);
  background: var(--primary-faint) center/cover no-repeat;
}
.rec-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.rec-card__label { font-size: 12px; color: var(--text-2); }

/* 衣物网格 -------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 16px 16px;
}
.cloth {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.cloth:active { transform: scale(.96); }
.cloth__img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--primary-faint) center/cover no-repeat;
}
.cloth__tag {
  position: absolute; left: 6px; top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.cloth__body { padding: 7px 8px 9px; }
.cloth__name {
  font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cloth__meta {
  display: flex; align-items: center; gap: 4px;
  margin-top: 3px;
  font-size: 10px; color: var(--text-3);
}
.dot-color {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .1);
  flex-shrink: 0;
}

/* 空状态 ---------------------------------------------------------------- */
.empty {
  padding: 54px 32px;
  text-align: center;
  color: var(--text-3);
}
.empty__icon {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.empty__title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty__desc { font-size: 12px; margin-top: 6px; line-height: 1.6; }

/* 悬浮按钮 -------------------------------------------------------------- */
.fab {
  position: fixed;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(244, 86, 139, .42);
  z-index: 70;
  transition: transform .18s;
}
.fab:active { transform: scale(.92); }

/* 回到顶部悬浮按钮 ------------------------------------------------------- */
.backtop {
  position: fixed;
  left: max(16px, calc(50vw - 240px + 16px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--primary-dark);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  z-index: 72;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.backtop.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:active { transform: scale(.92); }

/* 底部标签栏 ------------------------------------------------------------- */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 80;
}
.tabbar__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 10px;
  transition: color .2s;
}
.tabbar__item--on { color: var(--primary-dark); font-weight: 700; }
.tabbar__item--on svg { transform: translateY(-1px); }

/* 按钮 ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: all .18s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 111, 156, .26);
}
.btn--primary:active { background: var(--primary-dark); }
.btn--ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.btn--soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn--danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(240, 85, 106, .3); }
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* 表单 ------------------------------------------------------------------ */
.form { padding: 4px 16px 24px; }
.field { margin-bottom: 16px; }
.field__label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.field__label i {
  font-style: normal;
  color: var(--danger);
}
.field__hint { font-size: 11px; color: var(--text-3); margin-top: 6px; }

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.input:focus, .textarea:focus { border-color: var(--primary); }
.textarea { resize: none; min-height: 88px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }

/* 图片上传 -------------------------------------------------------------- */
.uploader {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r);
  border: 1.5px dashed var(--line-strong);
  background: #fff center/contain no-repeat;
  display: grid; place-items: center;
  color: var(--text-3);
  overflow: hidden;
}
.uploader--filled { border-style: solid; border-color: var(--line); background-size: contain; }
.uploader__tip { text-align: center; font-size: 12px; line-height: 1.8; }
.uploader__change {
  position: absolute; right: 10px; bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

/* 选项组（分类 / 衣橱） --------------------------------------------------- */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all .18s;
}
.option--on {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-weight: 600;
}

/* 颜色选择 -------------------------------------------------------------- */
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform .18s;
  position: relative;
}
.color-dot--on {
  transform: scale(1.14);
  box-shadow: 0 0 0 2px var(--primary);
}

/* 详情页 ---------------------------------------------------------------- */
.detail-hero {
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff center/contain no-repeat;
}
.detail-body { padding: 16px; margin-top: -20px; position: relative; }
.detail-panel {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.detail-title { font-size: 19px; font-weight: 800; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
}
.badge--baby { background: var(--baby-soft); color: var(--baby-dark); }
.badge--plain { background: #f5f0f3; color: var(--text-2); }

.info-list { margin-top: 18px; border-top: 1px solid var(--line); }
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-row__k { color: var(--text-2); }
.info-row__v { font-weight: 600; max-width: 62%; text-align: right; }

/* 试衣间 ---------------------------------------------------------------- */
.tryon-stage {
  position: relative;
  margin: 12px 16px 0;
  padding: 16px 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #fff 0%, var(--primary-faint) 100%);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}
.tryon-stage--baby { background: linear-gradient(170deg, #fff 0%, var(--baby-soft) 100%); }

.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r);
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, .7) center/contain no-repeat;
  display: grid; place-items: center;
  transition: all .2s;
}
.slot--filled { border-style: solid; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.slot__label {
  position: absolute; left: 8px; top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 10px;
  color: var(--text-2);
  font-weight: 600;
}
.slot__empty { font-size: 12px; color: var(--text-3); }
.slot__off {
  position: absolute; right: 6px; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}

.tryon-toolbar {
  display: flex; gap: 8px;
  padding: 14px 16px 4px;
}
.tryon-toolbar .btn { flex: 1; padding: 0 8px; font-size: 13px; }

/* 买同款（搜同款 / 赚佣金） ------------------------------------------ */
.buy-same {
  margin: 4px 16px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f0 100%);
  border: 1px solid #ffe0d6;
  border-radius: 14px;
}
.buy-same__title {
  font-size: 13px; font-weight: 600; color: #7c2d12;
  margin-bottom: 10px;
}
.buy-same__btns { display: flex; gap: 10px; }
.buy-same__btns .btn { flex: 1; font-size: 13px; font-weight: 600; }
.btn--taobao {
  background: #ff5000; color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(255, 80, 0, .28);
}
.btn--taobao:active { background: #e64600; }
.btn--pdd {
  background: #e02e24; color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(224, 46, 36, .26);
}
.btn--pdd:active { background: #c4271f; }
.buy-same__note {
  margin-top: 9px; font-size: 11px; line-height: 1.5;
  color: #b45309; opacity: .85;
}

/* 搜同款结果列表（最多 20 件），逐件可复制，只有关闭才收起 */
.buy-list {
  margin: 8px 16px 0;
  border: 1px solid #ffe0d6;
  border-radius: 14px;
  background: #fffdfb;
  overflow: hidden;
}
.buy-list--loading { padding: 12px; }
.buy-list__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px; font-weight: 600; color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f0 100%);
}
.buy-list__close {
  border: none; background: transparent; color: #9a3412;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.buy-list__close:active { background: rgba(156,52,18,.12); }
.buy-list__items { padding: 4px 12px 10px; }
.buy-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f3e7e1;
}
.buy-item:first-child { border-top: none; }
.buy-item__img {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 8px; background-color: #f4f4f5;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.buy-item__info { flex: 1; min-width: 0; }
.buy-item__title {
  font-size: 12.5px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.buy-item__price { margin-top: 3px; font-size: 13px; font-weight: 700; color: #e02e24; }
.buy-item .btn { flex: 0 0 auto; }
.buy-group + .buy-group { margin-top: 4px; border-top: 1px solid #f3e7e1; }
.buy-group__title { font-size: 12.5px; font-weight: 700; color: #b45309; padding: 8px 12px 0; }

.picker-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 0;
}
.picker-strip {
  display: flex; gap: 10px;
  padding: 10px 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.picker-strip::-webkit-scrollbar { display: none; }
.picker-item {
  flex-shrink: 0;
  width: 68px;
}
.picker-item__img {
  width: 68px; height: 88px;
  border-radius: var(--r-sm);
  background: #fff center/cover no-repeat;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .18s;
}
.picker-item--on .picker-item__img { border-color: var(--primary); }
.picker-item__name {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-2);
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* AI 试穿结果 ------------------------------------------------------------ */
.ai-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: var(--r);
  background: linear-gradient(120deg, #fff0f6, #f0f4ff);
  box-shadow: var(--shadow-sm);
}
.ai-banner__text { flex: 1; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.ai-banner__title { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-banner__note { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--primary-dark, #e0457b); }

.ai-result {
  margin: 12px 16px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.ai-result img { width: 100%; }

/* 社区 ------------------------------------------------------------------ */
.tabs-line {
  display: flex; gap: 22px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: var(--navbar-h); z-index: 50;
}
.tabs-line__item {
  position: relative;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.tabs-line__item--on { color: var(--text); font-weight: 700; }
.tabs-line__item--on::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.post {
  margin: 12px 16px;
  padding: 14px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.post__head { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-soft) center/cover no-repeat;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 700;
}
.avatar--lg { width: 62px; height: 62px; font-size: 24px; }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.post__name { font-size: 14px; font-weight: 700; }
.post__time { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.post__text { margin-top: 10px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

.post__imgs { margin-top: 10px; display: grid; gap: 5px; }
.post__imgs--1 { grid-template-columns: 1fr; }
.post__imgs--2 { grid-template-columns: repeat(2, 1fr); }
.post__imgs--3 { grid-template-columns: repeat(3, 1fr); }
.post__imgs > div {
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  background: var(--primary-faint) center/cover no-repeat;
}
.post__imgs--1 > div { aspect-ratio: 4/3; }

.post__foot {
  display: flex; align-items: center; gap: 20px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-2);
}
.post__act { display: flex; align-items: center; gap: 5px; transition: transform .16s; }
.post__act:active { transform: scale(.9); }
.post__act--on { color: var(--danger); font-weight: 600; }

/* 关联搭配小条 */
.post__outfit {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--primary-faint);
  color: var(--primary-dark);
  font-size: 12px; font-weight: 600;
  transition: background .18s;
}
.post__outfit:active { background: var(--primary-soft); }

/* 评论 ------------------------------------------------------------------ */
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment__body { flex: 1; min-width: 0; }
.comment__name { font-size: 12px; color: var(--text-2); font-weight: 600; }
.comment__text { font-size: 13px; margin-top: 3px; line-height: 1.55; word-break: break-word; }
.comment__time { font-size: 10px; color: var(--text-3); margin-top: 4px; }

.comment-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 480px;
  padding: 10px 16px calc(10px + var(--safe-b));
  display: flex; gap: 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 80;
}
.comment-bar input {
  flex: 1;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--bg);
  outline: none;
}

/* 潮评君 ---------------------------------------------------------------- */
.cpx-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--primary, #ff7aa2);
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #ff7aa2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.cpx-btn:active { background: var(--primary-soft, #fff0f5); }

.cpx-mask {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .4);
  z-index: 200;
}
.cpx-sheet {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + var(--safe-b));
  animation: cpx-up .2s ease;
}
@keyframes cpx-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cpx-sheet__title { font-size: 15px; font-weight: 800; margin-bottom: 14px; text-align: center; }
.cpx-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cpx-style {
  height: 46px;
  border: 1px solid var(--line, #eee);
  border-radius: 12px;
  background: var(--bg, #f6f7f9);
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #222);
  cursor: pointer;
}
.cpx-style:active { border-color: var(--primary, #ff7aa2); color: var(--primary, #ff7aa2); }
.cpx-custom { display: flex; gap: 8px; margin-top: 12px; }
.cpx-custom input {
  flex: 1; height: 40px; padding: 0 14px;
  border: 1px solid var(--line, #eee); border-radius: 999px;
  background: var(--bg, #f6f7f9); outline: none; font-size: 14px;
}
.cpx-cancel {
  width: 100%; height: 44px; margin-top: 14px;
  border: none; border-radius: 12px;
  background: var(--bg, #f6f7f9);
  font-size: 15px; color: var(--text-2, #888); cursor: pointer;
}

/* 个人中心 -------------------------------------------------------------- */
.profile-head {
  padding: 20px 16px 24px;
  background: linear-gradient(165deg, var(--primary-soft) 0%, var(--bg) 100%);
}
.profile-row { display: flex; align-items: center; gap: 14px; }
.profile-name { font-size: 19px; font-weight: 800; }
.profile-bio { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

.stat-row {
  display: flex;
  margin: 0 16px;
  padding: 16px 0;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-top: -12px;
  position: relative;
}
.stat { flex: 1; text-align: center; }
.stat__n { font-size: 19px; font-weight: 800; }
.stat__l { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.stat--click { cursor: pointer; }
.stat--click:active { opacity: .6; }

/* 个人主页次数区（试衣/搭子/绘画本/潮评君） */
.quota-title { font-size: 12px; color: var(--text-2); margin: 14px 16px 0; font-weight: 600; }
.quota-row { margin-top: 8px; }

/* 会员个人主页 */
.up-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.up-tag {
  font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.up-follow { margin-left: 10px; flex: none; }
.up-feed-title {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  margin: 4px 16px 8px; padding-left: 9px; border-left: 3px solid var(--accent);
}

.menu { margin: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.menu__item:last-child { border-bottom: none; }
.menu__item:active { background: var(--primary-faint); }
.menu__icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  flex-shrink: 0;
}
.menu__text { flex: 1; }
.menu__arrow { color: var(--text-3); }

/* 全局提示 -------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  max-width: 76%;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(38, 28, 34, .88);
  color: #fff;
  font-size: 13px;
  text-align: center;
  z-index: 3000;
  animation: toastIn .2s ease;
  backdrop-filter: blur(6px);
  line-height: 1.5;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.mask {
  position: fixed; inset: 0;
  background: rgba(40, 26, 34, .42);
  z-index: 2000;
  display: grid; place-items: center;
  animation: fadeIn .18s ease;
  padding: 24px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dialog {
  width: 100%; max-width: 300px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: dialogIn .22s cubic-bezier(.3, 1.3, .6, 1);
}
@keyframes dialogIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.dialog__body { padding: 24px 20px 18px; text-align: center; }
/* 佣金明细等长列表：弹窗正文可滚动，避免看不到全部 */
.dialog--scroll { max-width: 340px; }
.dialog--scroll .dialog__body {
  max-height: 72vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  padding: 18px 16px;
}
.dialog__title { font-size: 16px; font-weight: 700; }
.dialog__desc { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.dialog__foot { display: flex; border-top: 1px solid var(--line); }
.dialog__btn {
  flex: 1;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.dialog__btn + .dialog__btn { border-left: 1px solid var(--line); }
.dialog__btn--primary { color: var(--primary-dark); }
.dialog__btn--danger { color: var(--danger); }

.dialog__form { padding: 20px; text-align: left; }
.dialog__form .input { margin-bottom: 10px; }

/* 自助办卡对话框 */
.self-cards { max-height: 56vh; overflow-y: auto; margin: 4px -2px 0; padding: 2px; }
.self-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.self-card:last-child { margin-bottom: 0; }
.self-card--on { border-color: var(--primary); background: var(--primary-faint); }
.self-card__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.self-card__price {
  position: absolute; top: 12px; right: 14px;
  font-size: 16px; font-weight: 800; color: var(--primary-dark);
}
.self-card__row { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.self-card__gift { font-size: 12px; color: var(--primary-dark); margin-top: 4px; }
.self-card__check {
  position: absolute; bottom: 10px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.self-card--on .self-card__check { background: var(--primary); border-color: var(--primary); }

/* 加载 ------------------------------------------------------------------ */
.loading-mask {
  position: fixed; inset: 0;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(2px);
  z-index: 2500;
  display: grid; place-items: center;
}
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--lg { width: 46px; height: 46px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-box {
  padding: 24px 30px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.loading-box .spinner { margin: 0 auto 12px; }
.loading-box__text { font-size: 13px; color: var(--text-2); }

.skeleton {
  background: linear-gradient(90deg, #f3ecef 25%, #faf5f7 50%, #f3ecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.center-loading { padding: 60px 0; display: grid; place-items: center; }
.list-end { text-align: center; padding: 18px 0 8px; font-size: 11px; color: var(--text-3); }

/* 底部安全操作条 ---------------------------------------------------------- */
.bottom-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 480px;
  padding: 10px 16px calc(10px + var(--safe-b));
  display: flex; gap: 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 80;
}

/* 图片查看器 ------------------------------------------------------------- */
.viewer {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 3500;
  display: grid; place-items: center;
  animation: fadeIn .18s;
}
.viewer img { max-width: 100%; max-height: 88vh; object-fit: contain; }

/* 工具类 ---------------------------------------------------------------- */
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* 发布页图片网格 --------------------------------------------------------- */
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  background: #fff center/cover no-repeat;
  box-shadow: var(--shadow-sm);
}
.pp-thumb__del {
  position: absolute; right: 4px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}

/* 桌面端提示 ------------------------------------------------------------- */
@media (min-width: 900px) {
  body::before {
    content: '童趣宝妈天地 · 建议在手机中打开体验';
    position: fixed;
    left: 40px; top: 40px;
    font-size: 13px;
    color: #a99;
    letter-spacing: 1px;
  }
}

/* 会员中心 -------------------------------------------------------------- */
.vip-banner {
  margin: 16px;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #3a2a4f, #5a3f7a);
  color: #fff;
  box-shadow: var(--shadow);
}
.vip-banner--on { background: linear-gradient(135deg, var(--success), #2fa978); }
.vip-banner__title { font-size: 17px; font-weight: 800; }
.vip-banner__sub { font-size: 12px; opacity: .85; margin-top: 6px; line-height: 1.5; }

.vip-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 16px; }
.vip-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  display: flex; flex-direction: column;
}
.vip-card__tag {
  position: absolute; top: -10px; right: 14px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.vip-card__name { font-size: 15px; font-weight: 800; }
.vip-card__price { font-size: 26px; font-weight: 800; color: var(--primary-dark); margin-top: 8px; }
.vip-card__price .yen { font-size: 15px; margin-right: 1px; }
.vip-card__unit { font-size: 12px; color: var(--text-2); font-weight: 500; margin-left: 2px; }
.vip-card__desc { font-size: 11px; color: var(--text-2); margin-top: 6px; line-height: 1.5; flex: 1; }
.vip-card .btn { margin-top: 14px; }

.vip-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7a5fc0, #8a5fc0);
  padding: 2px 8px; border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* 订单列表 -------------------------------------------------------------- */
.order-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-row__plan { font-size: 14px; font-weight: 700; }
.order-row__no { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.order-row__right { text-align: right; }
.order-row__amt { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.order-row__status { font-size: 11px; color: var(--success); margin-top: 2px; }

/* 管理后台（演示） ----------------------------------------------------- */
.adm-gate {
  max-width: 340px;
  margin: 12vh auto 0;
  padding: 28px 24px;
  text-align: center;
}
.adm-gate__icon { color: var(--primary); display: grid; place-items: center; }
.adm-gate__title { font-size: 20px; font-weight: 800; margin-top: 10px; }
.adm-gate__desc { font-size: 13px; color: var(--text-2); margin: 6px 0 18px; }
.adm-gate .input { margin-bottom: 14px; text-align: center; }
.adm-gate__err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }
.adm-gate__tip { font-size: 11px; color: var(--text-3); margin-top: 16px; line-height: 1.6; }

.adm-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 4px;
}
.adm-bar__title { font-size: 15px; font-weight: 800; }

.adm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 6px 16px 0;
}
.adm-stat {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.adm-stat__n { font-size: 19px; font-weight: 800; color: var(--text); }
.adm-stat__l { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.adm-stat--ok .adm-stat__n { color: var(--success); }
.adm-stat--click { cursor: pointer; transition: transform .08s ease, opacity .1s ease; }
.adm-stat--click:active { opacity: .85; transform: scale(.98); }
.adm-stat--click .adm-stat__l { color: var(--primary-dark); }
.adm-stat--empty { opacity: .55; }

/* 拼单核销 · 统计明细弹框 */
.gb-detail__head { padding: 16px 16px 8px; font-size: 16px; font-weight: 700; text-align: center; }
.gb-detail__body { max-height: 60vh; overflow-y: auto; overflow-x: hidden; padding: 0 12px 12px; }
.gb-detail__body .adm-table-wrap { margin: 0; border-radius: var(--r-md); overflow-x: auto; }
.adm-table.gb-detail__table { font-size: 12px; width: max-content; min-width: 100%; white-space: nowrap; }
.gb-detail__table .cell-nowrap { white-space: nowrap; }
.gb-detail__table .col-time { min-width: 150px; width: 150px; white-space: nowrap; }
.settle-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.adm-subtitle { padding: 14px 16px 6px; font-weight: 700; font-size: 14px; color: var(--text-1); }
.gb-detail__empty { padding: 30px 16px; text-align: center; color: var(--text-2); font-size: 13px; }
.gb-detail .dialog__foot { justify-content: center; }

.adm-chips { padding: 10px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chip {
  font-size: 11px;
  background: var(--primary-faint);
  color: var(--primary-dark);
  padding: 4px 10px; border-radius: 999px;
  font-weight: 600;
}

.adm-table-wrap {
  margin: 0 16px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
  text-align: left;
  padding: 11px 12px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.adm-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table .center { text-align: center; }

/* 结算中心 / 宽表格：横向滑动（不影响其它 adm-table-wrap 表现） */
.adm-table-wrap--scroll { overflow-x: auto; overflow-y: hidden; }
.adm-table.settle-table { width: max-content; min-width: 100%; white-space: nowrap; }

/* 概览分页 / 导出 */
.adm-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 4px;
  flex-wrap: wrap;
}
.adm-pager__info {
  font-size: 12px;
  color: var(--text-3);
  margin-right: auto;
}
.adm-pager .btn[disabled] { opacity: .45; pointer-events: none; }

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.tag--ok { background: rgba(47, 169, 120, .14); color: var(--success); }
.tag--off { background: var(--bg); color: var(--text-3); }

/* 后台多 Tab */
.adm-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.adm-tab {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
}
.adm-tab--active { background: var(--primary); color: #fff; }
.adm-tab__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e8537a;
  margin-left: 5px;
  vertical-align: middle;
}
.tag--warn { background: rgba(185, 119, 10, .14); color: #b9770a; }

/* 待对接商家（超管后台红点来源） */
.mch-pend-list { padding: 2px 0 6px; }
.mch-pend {
  border: 1.5px solid rgba(185, 119, 10, .4);
  background: rgba(185, 119, 10, .05);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 8px 16px;
}
.mch-pend__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mch-pend .btn { margin-top: 10px; }

/* 搜索栏 */
.adm-search { display: flex; gap: 8px; padding: 12px 16px 4px; }
.adm-search .input { flex: 1; }
.adm-list-count { font-size: 12px; color: var(--text-3); padding: 8px 16px 0; }

/* 社区帖子卡片 */
.adm-post {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 10px 16px 0;
  padding: 12px;
}
.adm-post__head { display: flex; align-items: center; justify-content: space-between; }
.adm-post__user { font-weight: 700; font-size: 14px; }
.adm-post__text { font-size: 13px; color: var(--text); margin-top: 6px; line-height: 1.5; word-break: break-all; }
.adm-post__imgs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.adm-post__img {
  width: 64px; height: 64px; border-radius: var(--r-sm);
  background-size: cover; background-position: center; background-color: var(--bg);
}
.adm-post__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* 衣橱图片网格 */
.adm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 10px 16px 0;
}
.adm-cell {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 8px; display: flex; flex-direction: column; align-items: center;
}
.adm-cell__img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-sm);
  background-size: cover; background-position: center; background-color: var(--bg);
}
.adm-cell__img--empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 12px; }
.adm-cell__name { font-size: 12px; font-weight: 700; margin-top: 6px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-cell__meta { font-size: 11px; color: var(--text-3); margin: 2px 0 8px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn--xs { font-size: 11px; padding: 4px 10px; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:active { opacity: .85; }

/* 云存储面板 */
.adm-storage-note {
  margin: 12px 16px 0; padding: 12px;
  background: var(--bg); border-radius: var(--r-md);
  font-size: 12px; color: var(--text-2); line-height: 1.6;
}
.adm-storage-actions { padding: 16px; }

.btn--sm {
  height: 30px; padding: 0 14px;
  font-size: 13px; font-weight: 600;
  border-radius: 999px;
}

/* 通用按钮补充 ---------------------------------------------------------- */
.btn--block { width: 100%; }
.btn--ghost { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.btn--ok { background: var(--success); color: #fff; }
.btn--ok:active { opacity: .85; }

.section__title {
  font-size: 14px; font-weight: 800;
  padding: 14px 16px 6px;
  color: var(--text);
}

.tag--soft { background: var(--primary-faint); color: var(--primary-dark); }

/* 乐园 quick 网格 -------------------------------------------------------- */
.mch-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 0 16px;
}
.mch-tile {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: transform .14s;
}
.mch-tile:active { transform: scale(.97); }
.mch-tile__ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
}

/* 近期动态 --------------------------------------------------------------- */
.mch-acts {
  padding: 0 16px;
}
.mch-act {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mch-act:last-child { border-bottom: none; }
.mch-act__main { font-size: 14px; }
.mch-act__sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.mch-act__amt { font-weight: 800; }
.mch-act__amt--in { color: var(--success); }
.mch-act__amt--out { color: var(--danger); }

/* 经营概况：今日 / 累计 业务面板 ------------------------------------------- */
.biz-block { margin: 6px 16px 0; }
.biz-block__h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 800; padding: 12px 2px 8px; color: var(--text);
}
.biz-block__date { font-size: 12px; font-weight: 600; color: var(--text-2); }
.biz-block__more { font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.biz-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.biz-cell {
  background: #fff; border-radius: var(--r);
  padding: 12px 2px; text-align: center; box-shadow: var(--shadow-sm);
}
.biz-cell__n { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.1; }
.biz-cell__l { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.biz-cell__s { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.biz-cell--income { background: var(--primary-faint); }
.biz-cell--income .biz-cell__n { color: var(--primary-dark); }
.biz-sub { font-size: 11px; color: var(--text-2); padding: 8px 2px 2px; text-align: center; }
.biz-amt { color: var(--primary-dark); font-weight: 800; }
.biz-block__date--link { color: var(--primary-dark); font-weight: 700; cursor: pointer; }

/* 经营统计：周期筛选 ------------------------------------------------------ */
.stat-filter {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0; padding: 10px 12px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.stat-filter__l { font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.stat-filter__sel {
  flex: 1; min-width: 0; min-height: 44px; height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 700; line-height: 44px;
  -webkit-appearance: none; appearance: none;
  background: #fff;
}
.adm-table tr.is-tap { cursor: pointer; }
.adm-table tr.is-tap:active { background: var(--primary-faint); }

/* 经营明细：日期切换 + 流水行操作 ----------------------------------------- */
.rec-daynav {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 16px 0; padding: 8px 6px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.rec-daynav__t { font-size: 14px; font-weight: 800; color: var(--text); }
.rec-daynav__btn {
  font-size: 12px; font-weight: 700; color: var(--primary-dark);
  background: transparent; border: none; padding: 6px 10px; cursor: pointer;
}
.rec-daynav__btn.is-off { color: var(--text-3); opacity: .5; }
.rec { display: flex; align-items: flex-start; gap: 10px; }
.rec__body { flex: 1; min-width: 0; }
.rec__note {
  font-size: 11px; color: var(--primary-dark);
  background: var(--primary-faint); border-radius: 8px;
  padding: 4px 8px; margin-top: 6px; display: inline-block;
  max-width: 100%; word-break: break-all;
}
.rec__ops { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* 乐园 · 经营明细 四标签（办卡/续卡/划卡/收入） */
.rec-tabs { display: flex; gap: 6px; margin: 10px 14px 2px; }
.rec-tab {
  flex: 1; padding: 7px 0; font-size: 13px; line-height: 1;
  border: none; background: #f2f3f5; color: var(--text-2);
  border-radius: 8px; transition: background .15s, color .15s;
}
.rec-tab.is-on { background: #23262e; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.rec-tab__n { display: inline-block; margin-left: 4px; font-size: 11px; line-height: 14px; padding: 0 5px; border-radius: 7px; background: rgba(0,0,0,.08); color: inherit; opacity: .85; }
.rec-tab.is-on .rec-tab__n { background: rgba(255,255,255,.25); }
.rec-list { padding: 6px 14px 10px; }
.mch-act.rec.rec--link { align-items: center; cursor: pointer; }
.mch-act.rec.rec--link:active { background: var(--primary-faint); }
.rec__chev { color: var(--text-3); font-size: 18px; margin-left: 8px; flex-shrink: 0; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 999px; }
.btn--danger-ghost { background: rgba(233, 88, 88, .1); color: var(--danger); }
.tag--warn { background: rgba(240, 160, 60, .16); color: #c47b12; }

/* 家长查卡 · 我的全部流水（按 全部/日/月/年 筛选） */
.flt-bar { display: flex; gap: 6px; margin: 8px 0 2px; }
.flt-btn {
  flex: 1; padding: 7px 0; font-size: 13px; line-height: 1;
  border: none; background: #f2f3f5; color: var(--text-2);
  border-radius: 8px; transition: background .15s, color .15s;
}
.flt-btn.is-on { background: var(--accent); color: #fff; font-weight: 700; }
.flt-picker { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.flt-picker .input--sm { flex: 1; height: 34px; font-size: 13px; }
.flt-picker .btn { height: 34px; }

/* 会员行 ----------------------------------------------------------------- */
.pg-mrow {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pg-mrow__main { flex: 1; min-width: 0; }
.pg-mrow__name { font-size: 15px; font-weight: 700; }
.pg-mrow__name .muted { font-size: 12px; font-weight: 500; color: var(--text-2); }
.pg-mrow__tags { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.pg-mrow__arrow { color: var(--text-3); flex-shrink: 0; }

.pg-search {
  display: flex; gap: 8px;
  padding: 12px 16px;
  background: var(--bg);
  position: sticky; top: var(--navbar-h); z-index: 40;
}
.pg-search .input { flex: 1; }
.pg-mlist { background: #fff; }

/* 会员管理：分类、排序、头像、元信息 ---------------------------------------- */
.pg-home-search { padding: 12px 16px 0; background: var(--bg); }
.pg-search--home { position: static; padding: 0; }
.pg-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.pg-cats::-webkit-scrollbar { display: none; }
.pg-cat {
  flex-shrink: 0;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; color: var(--text-2); border: 1px solid var(--line);
  font-size: 12px; white-space: nowrap;
}
.pg-cat--on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pg-sortbar {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
/* 导入 / 导出 / 模版 工具条 */
.pg-iebar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 16px; background: #fff;
}
.pg-iebar .btn { flex: 1; white-space: nowrap; font-size: 13px; }
.pg-sort {
  padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--text-2); border: 1px solid var(--line);
  font-size: 13px;
}
.pg-sort--on { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary-soft); }
.pg-mrow__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.pg-mrow__meta {
  margin-top: 5px; font-size: 12px; color: var(--text-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.pg-mrow__card-name {
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 1px 6px; border-radius: var(--r-sm); font-size: 11px;
}

/* 详情卡 ----------------------------------------------------------------- */
.pg-dcard {
  margin: 14px 16px;
  padding: 18px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.pg-dcard__name { font-size: 19px; font-weight: 800; }
.pg-dcard__phone { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.pg-dcard__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.pg-dcard__note { margin-top: 8px; font-size: 12px; color: var(--text-2); line-height: 1.5; }

.pg-sec { margin: 18px 0; }
.pg-sec__h {
  font-size: 14px; font-weight: 800;
  padding: 4px 16px 10px;
}

.pg-cards { padding: 0 16px; display: grid; gap: 10px; }
.pg-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.pg-card--off { border-left-color: var(--text-3); opacity: .7; }
.pg-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-card__name { font-size: 15px; font-weight: 700; }
.pg-card__val { font-size: 16px; font-weight: 800; color: var(--primary-dark); margin-top: 8px; }
.pg-card__acts { margin-top: 12px; display: flex; gap: 8px; }

/* 卡种列表 --------------------------------------------------------------- */
.pg-tlist { background: #fff; }
.pg-tpl {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.pg-tpl__main { flex: 1; min-width: 0; }
.pg-tpl__name { font-size: 15px; font-weight: 700; }
.pg-tpl__desc { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.pg-tpl__acts { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* 自主办卡项开关 */
.pg-tpl__switch { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.pg-tpl__swlabel { font-size: 10px; color: var(--text-3); line-height: 1; white-space: nowrap; }
.sw { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--text-3); opacity: .45; transition: background .2s, opacity .2s;
}
.sw__track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
.sw--on .sw__track { background: var(--primary); opacity: 1; }
.sw--on .sw__track::after { transform: translateX(18px); }

/* 家长查卡 --------------------------------------------------------------- */
.pg-self { padding-bottom: 24px; }
.pg-intro {
  margin: 14px 16px;
  padding: 14px 16px;
  background: var(--primary-faint);
  color: var(--primary-dark);
  font-size: 13px; line-height: 1.6;
  border-radius: var(--r-lg);
}

/* 底部选项弹窗 ----------------------------------------------------------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding-bottom: var(--safe-b);
  animation: sheetIn .24s cubic-bezier(.3, 1.1, .5, 1);
  max-height: 70vh; overflow-y: auto;
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet__head {
  text-align: center;
  padding: 16px;
  font-size: 14px; font-weight: 700;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.sheet__item {
  width: 100%; text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.sheet__item:active { background: var(--primary-faint); }
.sheet__label { font-size: 15px; font-weight: 600; }
.sheet__sub { font-size: 12px; color: var(--text-2); }
.sheet__cancel { text-align: center; color: var(--text-2); font-weight: 600; border-bottom: none; }

/* 散客消费：常用项目快捷选择 --------------------------------------------- */
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pg-chip {
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--text-1);
}
.pg-chip:active { background: var(--primary-faint); border-color: var(--primary); color: var(--primary-dark); }

/* 文字链接（商家登录等） */
.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.link:active { opacity: .7; }

/* 顶部滚动广告位 --------------------------------------------------------- */
.adroll {
  width: 100%;
  overflow: hidden;
  background: #11131a;
  white-space: nowrap;
  line-height: 0;
}
.adroll__track {
  display: inline-flex;
  align-items: center;
  animation: adrollScroll 22s linear infinite;
}
@keyframes adrollScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.adroll__item {
  height: 88px;
  width: 150px;
  margin-right: 8px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #222;
  display: block;
  flex: 0 0 auto;
}

/* 家长查卡底部：乐园地址 + 微信联系 --------------------------------------- */
.pg-contact {
  margin: 16px 16px 0;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.pg-contact__row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--text-1); margin-bottom: 12px;
}
.pg-contact__row svg { flex: 0 0 auto; margin-top: 1px; color: var(--primary); }

/* 多字段表单对话框 ------------------------------------------------------- */
.dialog--form { width: 100%; max-width: 440px; }
.dialog__formsc {
  max-height: 62vh; overflow-y: auto;
  padding: 4px 0 10px; text-align: left;
}
.form-field { margin: 12px 0; }
.form-field__label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.form-field .input { width: 100%; }
.form-images {
  display: flex; flex-wrap: wrap; gap: 8px;
  min-height: 40px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px;
}
.form-images__empty { color: var(--text-2); font-size: 12px; padding: 6px 2px; }
.form-img { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.form-img__thumb { width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #eee; }
.form-img__del {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e23; color: #fff; border: none; font-size: 14px; line-height: 1;
}
.form-images__bar { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

/* 员工账号管理 ------------------------------------------------------------- */
.mch-cards { display: grid; gap: 10px; }
.mch-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.mch-card__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mch-card__acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.mch-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.mch-card__top .muted { margin-left: auto; }

/* 管理员身份徽标（超管 / 商家） */
.adm-role { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
.adm-role--super { background: #FBEAF0; color: #993556; }
.adm-role--merchant { background: #E1F5EE; color: #0F6E56; }

.adm-form-head {
  font-size: 17px; font-weight: 800;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.adm-form-body { padding: 14px 16px; }
.adm-form-row { margin-bottom: 14px; }
.adm-form-row label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.adm-form-row .input { width: 100%; }

.perm-group { margin-bottom: 14px; }
.perm-group__title {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.perm-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.perm-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  cursor: pointer; user-select: none;
}
.perm-item input { flex-shrink: 0; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.tag--ok { background: #e6f7ed; color: #1a7f47; }
.tag--gray { background: #f0f0f0; color: #888; }

/* 员工权限弹窗（参考图样式） -------------------------------------------- */
.adm-perm-section {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}
.adm-perm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.adm-perm-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
}
.adm-perm-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.adm-perm-clone {
  width: auto;
  min-width: 140px;
  max-width: 190px;
  font-size: 12px;
  padding: 6px 8px;
  height: 34px;
}
.adm-perm-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
}
.adm-perm-all input { margin: 0; }
.adm-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
}



/* ===== 管理 Tab（仅管理员可见） ===================================== */
.tabbar--6 .tabbar__item { font-size: 9.5px; }
.tabbar--6 .tabbar__item svg { width: 21px; height: 21px; }

.mg-hero {
  padding: calc(var(--safe-t) + 18px) 16px 18px;
  background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 55%, #ff99ac 100%);
  color: #fff;
  border-radius: 0 0 22px 22px;
}
.mg-hero__row { display: flex; align-items: center; justify-content: space-between; }
.mg-hero__t { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.mg-hero__s { font-size: 12px; opacity: .92; margin-top: 3px; }
.mg-hero__out {
  height: 30px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.24); color: #fff;
  font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255,255,255,.4);
}
.mg-stats { display: flex; gap: 10px; margin-top: 16px; }
.mg-stat {
  flex: 1; background: rgba(255,255,255,.2); border-radius: 14px;
  padding: 10px 6px; text-align: center;
}
.mg-stat__n { font-size: 17px; font-weight: 800; }
.mg-stat__l { font-size: 11px; opacity: .9; margin-top: 2px; }

.mg-body { padding: 16px 14px calc(var(--tabbar-h) + var(--safe-b) + 20px); }
.mg-sec-t { font-size: 13px; color: var(--text-3); font-weight: 700; margin: 2px 0 10px 4px; }
.mg-tile {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 15px 14px;
  margin-bottom: 12px; text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.mg-tile__ic {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.mg-tile--a .mg-tile__ic { background: linear-gradient(135deg,#ff8fa3,#ff5d8f); }
.mg-tile--b .mg-tile__ic { background: linear-gradient(135deg,#7ec8f5,#3b8ee8); }
.mg-tile--c .mg-tile__ic { background: linear-gradient(135deg,#a5d6a7,#4caf7d); }
.mg-tile__body { flex: 1; min-width: 0; }
.mg-tile__t { display: block; font-size: 15.5px; font-weight: 700; color: var(--text-1); }
.mg-tile__d { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.mg-tile__arrow { color: var(--text-3); flex-shrink: 0; }
.mg-note {
  margin-top: 14px; font-size: 11.5px; color: var(--text-3);
  line-height: 1.7; padding: 0 4px;
}

/* ===== 试衣会员管理 ================================================= */
.tm-wrap { padding: 12px 14px 26px; }
.tm-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.tm-stat {
  flex: 1; background: #fff; border-radius: 13px; padding: 10px 4px;
  text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.tm-stat b { display: block; font-size: 17px; font-weight: 800; color: var(--text-1); }
.tm-stat span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }

.tm-search { display: flex; gap: 8px; margin-bottom: 10px; }
.tm-search .input { flex: 1; min-width: 0; }
.tm-search .btn { height: 42px; padding: 0 18px; flex-shrink: 0; }

.tm-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.tm-chips::-webkit-scrollbar { display: none; }
.tm-chip {
  flex-shrink: 0; height: 30px; padding: 0 13px; border-radius: 999px;
  background: #fff; color: var(--text-2); font-size: 12.5px;
  border: 1px solid var(--line);
}
.tm-chip--on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.tm-chip__n {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-3);
  font-size: 10px;
  text-align: center;
  vertical-align: middle;
}
.tm-chip--on .tm-chip__n { background: rgba(255,255,255,0.25); color: #fff; }

.tm-sorts { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.tm-sorts__l { font-size: 12px; color: var(--text-3); }
.tm-sort {
  height: 27px; padding: 0 11px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--text-2);
}
.tm-sort--on { background: rgba(255,107,138,.1); border-color: var(--primary); color: var(--primary-dark); font-weight: 700; }

.tm-list { display: flex; flex-direction: column; gap: 9px; }
.tm-row {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.tm-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#ffd3dd,#ffb0c4);
  color: #b4335a; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tm-row__main { flex: 1; min-width: 0; }
.tm-row__top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tm-row__name { font-size: 15px; font-weight: 700; color: var(--text-1); }
.tm-row__sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.tm-row__meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-2); margin-top: 5px;
}
.tm-row__arrow { color: var(--text-3); flex-shrink: 0; }
.tm-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 6px;
  background: #f1f2f5; color: var(--text-2);
}
.tm-tag--b { background: rgba(59,142,232,.13); color: #2b6fbb; }
.tm-tag--v { background: rgba(255,169,64,.18); color: #b3701a; }
.tm-tag--p { background: rgba(76,175,125,.16); color: #2e7d55; }
.tm-tag--g { background: #f1f2f5; color: var(--text-3); }
.tm-more { text-align: center; font-size: 12px; color: var(--text-3); padding: 14px 0; }

.tm-detail { font-size: 13.5px; }
.tm-d-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.tm-d-row span { color: var(--text-3); flex-shrink: 0; }
.tm-d-row b { color: var(--text-1); text-align: right; word-break: break-all; }
.tm-d-blk { padding: 10px 0 4px; }
.tm-d-t { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.tm-mini {
  display: inline-block; font-size: 11.5px; padding: 2px 8px;
  background: #f4f5f8; border-radius: 7px; margin: 0 5px 5px 0; color: var(--text-2);
}
.tm-dim { font-size: 12px; color: var(--text-3); }

/* 广告图可点击跳转（空链接时不会渲染 <a>，保持纯展示） */
.adroll__link { display: inline-block; line-height: 0; -webkit-tap-highlight-color: transparent; }
.adroll__link:active { opacity: .85; }
.adroll__link { position: relative; }
/* 社区广告 CTA 浮层按钮：覆盖在图片底部中央，点击穿透到整图（继承跳转与点击埋点） */
.adroll__cta {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: inline-block; padding: 3px 10px; font-size: 11px; line-height: 1.4;
  color: #fff; background: rgba(255, 90, 95, .92); border-radius: 999px;
  white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); pointer-events: none;
}
/* 社区广告数据报表 */
.dialog--wide { width: 86%; max-width: 420px; }
.adstat-list { max-height: 52vh; overflow-y: auto; margin: 6px 0 2px; }
.adstat-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 4px; border-bottom: 1px solid var(--line, #eee); font-size: 13px;
}
.adstat-row span:first-child { color: var(--accent, #ff5a5f); font-weight: 600; }

/* 试衣页：试穿按钮下方的剩余次数 */
.ai-banner__right { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.ai-quota { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* 会员中心：试衣套餐额度卡片 */
.vip-quota {
  background: #fff; border-radius: 16px; padding: 16px 14px;
  text-align: center; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.vip-quota__n { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.vip-quota__l { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.vip-quota__tip { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }

/* ============================================================
   视觉刷新 · 简约清爽（2026-08-07）
   ============================================================ */

/* 顶部导航更通透 */
.navbar { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }

/* 底部标签栏更利落 */
.tabbar { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); }

/* 分段控制器选中态 */
.seg__item--on { box-shadow: 0 4px 12px rgba(255, 111, 156, .3); }
.seg__item--on.is-baby { box-shadow: 0 4px 12px rgba(87, 166, 240, .3); }

/* 横向标签选中态 */
.chip--on { background: var(--primary-soft); color: var(--primary-dark); border-color: transparent; font-weight: 700; }

/* 区块标题 */
.section__title { letter-spacing: .3px; }

/* 悬浮按钮 */
.fab { background: var(--primary); box-shadow: 0 10px 22px rgba(255, 111, 156, .32); }

/* 空状态图标更柔和 */
.empty__icon { color: var(--primary); }

/* 买同款区块：清爽化 */
.buy-same { background: var(--primary-faint); border: 1px solid var(--line); border-radius: var(--r); }
.buy-same__title { color: var(--text); }
.buy-same__note { color: var(--text-3); opacity: 1; }

/* AI 试穿结果关闭按钮 */
.ai-result { position: relative; }
.ai-result__close {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(2px);
  transition: transform .15s;
}
.ai-result__close:active { transform: scale(.9); }

/* ===== 遛娃搭子模块 ===== */
.section__desc { padding: 2px 16px 4px; font-size: 12px; line-height: 1.6; }
.buddy-tip { padding: 12px 16px 24px; font-size: 11px; line-height: 1.7; }

/* 中心首页 */
.buddy-hero {
  margin: 16px;
  padding: 18px 16px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--baby) 0%, #6db4f3 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.buddy-hero__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.buddy-hero__title { font-size: 18px; font-weight: 800; }
.buddy-hero__sub { font-size: 12px; opacity: .92; margin-top: 4px; line-height: 1.5; }
.buddy-quota { margin-top: 16px; text-align: center; }
.buddy-quota__n { font-size: 40px; font-weight: 800; line-height: 1; }
.buddy-quota__l { font-size: 12px; opacity: .9; margin-top: 4px; }
.buddy-quota__bar { margin: 12px 0 0; height: 7px; border-radius: 999px; background: rgba(255,255,255,.32); overflow: hidden; }
.buddy-quota__fill { height: 100%; border-radius: 999px; background: #fff; transition: width .3s; }

.buddy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 16px 0; }
.buddy-tile {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; transition: transform .14s; position: relative;
}
.buddy-tile:active { transform: scale(.97); }
.buddy-tile__ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--baby-soft); color: var(--baby-dark); margin-bottom: 2px;
}
.buddy-tile__title { font-size: 14px; font-weight: 700; color: var(--text); }
.buddy-tile__sub { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.buddy-tile__arrow { position: absolute; right: 10px; top: 10px; color: var(--text-3); }

/* 收到的匹配邀请横幅 */
.buddy-invite-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px 0; padding: 12px 14px;
  background: linear-gradient(135deg, #fff1f0, #fff7ed);
  border: 1px solid #ffd8cf; border-radius: var(--r-lg);
  color: #c2410c; cursor: pointer;
}
.buddy-invite-banner:active { transform: scale(.99); }
.buddy-invite-banner__t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.buddy-invite-banner__t b { font-size: 14px; }
.buddy-invite-banner__a { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* 收到的邀请行高亮 */
.buddy-row--invite { background: #fff7ed; border-left: 3px solid var(--primary); }

.buddy-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 16px 0; }
.buddy-plans .vip-card.is-system { opacity: .92; }
.buddy-plans .vip-card__price .yen { font-size: 15px; margin-right: 1px; }

/* 栏 */
.buddy-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.buddy-bar__q { font-size: 12px; color: var(--text-2); }
.buddy-bar__q b { color: var(--baby-dark); font-size: 14px; }

/* 匹配候选卡 */
.buddy-list { padding: 8px 0 16px; }
.buddy-card { margin: 12px 16px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.buddy-card__head { display: flex; align-items: center; gap: 10px; }
.buddy-card__name { font-size: 15px; font-weight: 700; }
.buddy-score { margin-left: auto; text-align: center; font-size: 10px; color: var(--baby-dark); font-weight: 600; }
.buddy-score__n { font-size: 20px; font-weight: 800; line-height: 1.1; }
.buddy-card__reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.buddy-card__acts { display: flex; gap: 8px; margin-top: 14px; }

/* 匹配列表行 */
.buddy-matches { padding: 4px 0 16px; }
.buddy-row { display: flex; align-items: center; gap: 11px; margin: 10px 16px; padding: 12px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.buddy-row__main { flex: 1; min-width: 0; }
.buddy-row__name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.buddy-row__acts { display: flex; gap: 8px; flex-shrink: 0; }

/* 资料建档 */
.bp-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.bp-switch__t { font-size: 14px; font-weight: 600; }
.bp-baby { padding: 12px; margin-bottom: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.bp-baby__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.bp-baby__del { color: var(--danger); display: grid; place-items: center; width: 26px; height: 26px; }

/* 聊天 */
.page--chat { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 66px); }
.page--chat .comment-bar {
  bottom: calc(var(--tabbar-h) + var(--safe-b));
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
}
.buddy-ice { margin: 12px 16px 0; padding: 12px 14px; background: linear-gradient(120deg, #e8f3fd, #f3eaff); border-radius: var(--r); }
.buddy-ice__label { font-size: 11px; font-weight: 700; color: var(--baby-dark); margin-bottom: 4px; }
.buddy-ice__text { font-size: 13px; color: var(--text); line-height: 1.6; }
.buddy-ice__btn { font-size: 12px; color: var(--baby-dark); font-weight: 600; background: none; padding: 4px 0; }
.buddy-ice__btns { display: flex; gap: 16px; margin-top: 6px; }
.buddy-msgs { padding: 14px 16px; }
.buddy-msgs__hint { text-align: center; padding: 20px 0; }
.msg { max-width: 78%; margin-bottom: 12px; padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; line-height: 1.55; word-break: break-word; }
.msg--mine { margin-left: auto; background: var(--baby); color: #fff; }
.bubble__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.bubble__img { aspect-ratio: 1/1; border-radius: 8px; background-size: cover; background-position: center; background-color: #eee; }

/* 组队广场 */
.buddy-plaza-list { padding: 4px 0 16px; }
.buddy-plaza { margin: 12px 16px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.buddy-plaza__head { display: flex; align-items: center; gap: 8px; }
.buddy-plaza__name { font-size: 14px; font-weight: 700; }
.buddy-plaza__text { margin-top: 10px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.buddy-plaza__imgs { display: grid; gap: 5px; margin-top: 10px; }
.buddy-plaza__imgs.imgs-1 { grid-template-columns: 1fr; }
.buddy-plaza__imgs.imgs-2 { grid-template-columns: repeat(2, 1fr); }
.buddy-plaza__imgs.imgs-3 { grid-template-columns: repeat(3, 1fr); }
.buddy-plaza__img { aspect-ratio: 1/1; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--bg); }

/* 邀请裂变榜 */
.rank-hero {
  margin: 16px;
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffb36b 0%, #ff7aa2 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.rank-hero__title { font-size: 15px; font-weight: 800; opacity: .95; }
.rank-hero__stat { display: flex; gap: 12px; margin-top: 14px; }
.rank-hero__item { flex: 1; text-align: center; background: rgba(255,255,255,.16); border-radius: var(--r); padding: 12px 8px; }
.rank-hero__n { font-size: 28px; font-weight: 800; line-height: 1; }
.rank-hero__l { font-size: 11px; opacity: .92; margin-top: 4px; }

.rank-code { margin: 12px 16px 4px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.rank-code__l { font-size: 12px; color: var(--text-2); font-weight: 600; }
.rank-code__row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rank-code__val { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--baby-dark); background: var(--bg); padding: 8px 12px; border-radius: var(--r); text-align: center; }
.rank-code__tip { margin-top: 10px; line-height: 1.5; }

.rank-apply { margin: 12px 16px 4px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px dashed #ffd8cf; }
.rank-apply__l { font-size: 12px; color: var(--text-2); font-weight: 600; }
.rank-apply__row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rank-apply__row .input { flex: 1; text-transform: uppercase; letter-spacing: 1px; }

.rank-list { padding: 8px 0 4px; }
.rank-row { display: flex; align-items: center; gap: 10px; margin: 8px 16px; padding: 12px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.rank-row__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rank-row__avatar--ph { display: grid; place-items: center; background: var(--baby-soft); color: var(--baby-dark); }
.rank-row__main { flex: 1; min-width: 0; }
.rank-row__name { font-size: 14px; font-weight: 700; }
.rank-row__sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rank-row__count { text-align: center; font-size: 11px; color: var(--text-3); }
.rank-row__count b { display: block; font-size: 20px; color: var(--baby-dark); font-weight: 800; line-height: 1.1; }

.rank-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--bg); color: var(--text-2); font-weight: 800; font-size: 13px; }
.rank-badge--1 { background: linear-gradient(135deg,#ffd76b,#ff9f1c); color: #fff; }
.rank-badge--2 { background: linear-gradient(135deg,#d7e3ee,#9fb6c9); color: #fff; }
.rank-badge--3 { background: linear-gradient(135deg,#f3c9a6,#cf9b6f); color: #fff; }

/* 个人主页 · 搭子资料模块 */
.up-buddy { margin: 12px 16px 0; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.up-buddy__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.up-buddy__head svg { color: var(--baby-dark); }
.up-buddy__loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.up-buddy__loc svg { color: var(--baby-dark); }
.up-buddy__babies { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.up-buddy__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.up-buddy__chips .chip--sm { padding: 4px 10px; font-size: 12px; background: var(--baby-soft); color: var(--baby-dark); border-color: transparent; }
.up-buddy--empty { background: linear-gradient(180deg, #fff, var(--baby-soft)); }
.up-buddy__empty { font-size: 13px; color: var(--text-2); margin: 4px 0 12px; line-height: 1.6; }

/* 小尺寸标签 */
.chip--sm { padding: 4px 10px; font-size: 12px; background: #fff; }

/* ===================== 拼单优惠系统 ===================== */
.gb-card { margin: 10px 16px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--baby-soft); }
.gb-card__top { display: flex; align-items: center; gap: 8px; }
.gb-card__title { font-size: 15px; font-weight: 800; }
.gb-card__type { font-size: 12px; color: #fff; background: var(--baby-dark); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.gb-card__price { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 8px; font-size: 14px; }
.gb-card__base { color: var(--text-3); }
.gb-card__save { color: var(--baby-dark); font-weight: 700; }
.gb-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gb-card__acts { display: flex; gap: 8px; margin-top: 10px; }

.gb-coupon { margin: 10px 16px; padding: 14px; background: linear-gradient(180deg,#fff,var(--baby-soft)); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px dashed var(--baby-dark); }
.gb-coupon--used { opacity: .6; border-style: solid; border-color: var(--border, #eee); }
.gb-coupon--adm { background: #fff; border: 1px solid var(--border, #eee); }
.gb-coupon__head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; }
.gb-coupon__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 14px; }
.gb-coupon__code { margin-top: 8px; font-size: 13px; color: var(--text-2); word-break: break-all; }
.gb-coupon__code b { color: var(--text); letter-spacing: .5px; }
.gb-coupon__warn { margin-top: 10px; font-size: 13px; color: #fff; background: #e24b4a; border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.gb-coupon__qr { margin-top: 12px; display: flex; flex-direction: column; align-items: center; }
.gb-coupon__qr-img { display: flex; align-items: center; justify-content: center; width: 156px; height: 156px; padding: 6px; background: #fff; border: 1px solid var(--border, #eee); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.gb-coupon__qr-tip { font-size: 11px; color: var(--text-2); margin-top: 6px; }
.gb-coupon__status { margin-top: 12px; padding: 18px 12px; text-align: center; font-size: 13px; color: var(--text-2); background: rgba(0,0,0,.04); border-radius: var(--r-md); }
.gb-coupon--used .gb-coupon__status { color: #999; }
.gb-coupon__qr-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 8px; text-align: center; font-size: 12px; color: #999; line-height: 1.5; }

/* —— 暖妈推荐官（推广大使）卡片：乐园TAB 家长查卡下方 —— */
.mom-card { margin: 12px 16px 4px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(135deg, #fff5f7 0%, #fff0f4 100%); border: 1px solid #ffd9e3; }
.mom-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mom-card__title { font-size: 15px; font-weight: 700; color: #e8537a; }
.mom-card__badge { font-size: 11px; color: #d23b6a; background: #ffe3ec; border-radius: 999px; padding: 2px 8px; }
.mom-card__code { font-size: 13px; color: var(--text-1); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mom-card__code b { font-size: 16px; letter-spacing: 1px; color: #333; }
.mom-card__row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mom-card__earn { font-size: 13px; color: var(--text-1); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mom-card__earn b { color: #e8537a; font-size: 16px; }
.mom-card__tip { font-size: 11px; color: #a8745f; line-height: 1.6; opacity: .85; }
/* 自定义弹窗内的键值行（入驻凭据 / 佣金明细） */
.dialog__kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 2px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; }
.dialog__kv:last-child { border-bottom: none; }
.dialog__kv b { color: #e8537a; }
.c-red { color: #e4393c; }

/* 商家后台 · 拼单活动卡片 */
.gb-adm-card { border: 1px solid #e6e6e6; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.gb-adm-card__top { display: flex; align-items: center; gap: 8px; }
.gb-adm-card__top b { font-size: 15px; font-weight: 700; }
.gb-adm-card__acts { display: flex; gap: 8px; margin-top: 10px; }

/* 商家后台 · 拼单核销台 */
.gb-redeem { display: flex; gap: 8px; padding: 12px 16px; }
.gb-redeem .input { flex: 1; }
.btn--icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; padding: 0; color: var(--brand, #ff6f9c); background: var(--primary-faint, #fff0f5); }
.btn--icon:active { background: #ffe1ee; }
.gb-redeem__confirm { padding: 0 16px 12px; }
.gb-wd { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* 摄像头扫码（拼单核销台） --------------------------------------------------- */
.gb-scan { background: rgba(0,0,0,.9); }
.gb-scan__box { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100%; max-width: 360px; padding: 16px; }
.gb-scan__title { color: #fff; font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.gb-scan__view { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #000; border-radius: 12px; overflow: hidden; }
.gb-scan__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gb-scan__frame { position: absolute; inset: 14%; border: 2px dashed rgba(255,255,255,.85); border-radius: 10px; pointer-events: none; }
.gb-scan__tip { color: #ffd9e7; font-size: 12px; text-align: center; padding: 12px 4px 4px; line-height: 1.5; }
.gb-scan__foot { display: flex; gap: 10px; justify-content: center; padding-top: 8px; }
.gb-scan__foot .btn { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }

/* 门店标签（合作商家/景区可多家） */
.gb-card__stores { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.gb-card__stores .tag { margin-right: 6px; }

/* 组队广场 · 拼单专区（顶部多条轮播切换广告条） */
.gb-marquee { display: flex; align-items: stretch; margin: 10px 12px 4px; height: 44px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg,#ff5e8a,#ff9a5a); box-shadow: var(--shadow-sm); }
.gb-marquee__label { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; background: rgba(0,0,0,.12); white-space: nowrap; }
.gb-carousel { position: relative; flex: 1; height: 100%; overflow: hidden; }
.gb-carousel__slide { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 26px; color: #fff; font-size: 13px; white-space: nowrap; cursor: pointer; opacity: 0; transform: translateY(100%); transition: transform .45s ease, opacity .45s ease; pointer-events: none; }
.gb-carousel__slide.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.gb-carousel__slide.is-prev { opacity: 0; transform: translateY(-100%); }
.gb-carousel__slide b { font-weight: 800; }
.gb-carousel__slide .gb-card__type { color: #fff; }
.gb-marquee__save { background: #fff; color: #ff3b6b; border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: 12px; }
.gb-marquee__extra { opacity: .9; }
.gb-marquee__fire { font-size: 14px; line-height: 1; }
/* 拼单广告条 · 左右切换箭头 */
.gb-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0,0,0,.2); color: #fff; font-size: 18px; line-height: 22px; text-align: center; padding: 0; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; }
.gb-carousel__nav:hover { opacity: 1; background: rgba(0,0,0,.35); }
.gb-carousel__nav--prev { left: 3px; }
.gb-carousel__nav--next { right: 3px; }
/* 我的拼单 · 可拼单活动 下拉弹框（尽量少占页面） */
.gb-camp-wrap { position: relative; margin: 12px 12px 4px; z-index: 45; }
.gb-collapse { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 14px; background: linear-gradient(180deg,#fff,var(--baby-soft,#fff7f9)); border: 1px solid var(--baby-soft,#ffe3ec); border-radius: var(--r-lg,14px); font-weight: 700; cursor: pointer; }
.gb-collapse__right { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.gb-collapse__n { color: var(--brand,#ff5e8a); font-weight: 800; }
.gb-collapse__arrow { transition: transform .2s ease; font-size: 13px; }
.gb-collapse.is-open .gb-collapse__arrow { transform: rotate(180deg); }
.gb-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid var(--border,#eee); border-radius: var(--r-lg,14px); box-shadow: var(--shadow-lg,0 8px 30px rgba(0,0,0,.12)); overflow: hidden; }
.gb-pop[hidden] { display: none; }
.gb-pop__mask { position: fixed; inset: 0; z-index: 40; background: transparent; }
.gb-pop__body { position: relative; z-index: 51; padding: 10px; max-height: 62vh; overflow: auto; }
.gb-pop__hint { margin-bottom: 8px; }
.gb-pop__body .gb-card { margin-bottom: 8px; }
.gb-pop__body .gb-card:last-child { margin-bottom: 0; }
/* 组队广场 · 遛娃局 我要去 / 删除 / 仅看我发的 */
.buddy-plaza__acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.buddy-plaza__interest { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 10px; background: var(--baby-soft, #fff5f8); border-radius: 12px; cursor: pointer; }
.buddy-plaza__interest:active { opacity: .8; }
.bpa-stack { display: flex; align-items: center; }
.bpa-av { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background-size: cover; background-position: center; background-color: var(--brand, #ff5e8a); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-left: -6px; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bpa-av:first-child { margin-left: 0; }
.bpa-more { flex: 0 0 auto; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; background: #ffe1ec; color: var(--brand, #ff5e8a); font-size: 10px; font-weight: 700; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.buddy-plaza__interest-txt { font-size: 13px; color: var(--text-2); font-weight: 600; }
.bpa-me { font-size: 11px; font-weight: 700; color: #fff; background: var(--brand, #ff5e8a); border-radius: 999px; padding: 1px 7px; }
.gb-interest { max-width: 340px; }
.gb-interest__title { padding: 16px 18px 12px; }
.gb-interest__list { max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bpa-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.bpa-item:active { background: var(--primary-faint, #fff0f5); }
.bpa-item__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bpa-item__name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.bpa-item__sub { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.bpa-item__sub i { font-style: normal; opacity: .5; }
.bpa-item__tags { flex: 0 0 auto; display: flex; gap: 4px; }
.bpa-item__tag { font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.bpa-item__tag--city { color: #fff; background: var(--brand, #ff5e8a); }
.bpa-item__tag--age { color: #c47d00; background: #fff3d6; }
.bpa-item__me { font-size: 11px; font-weight: 700; color: #fff; background: var(--brand, #ff5e8a); border-radius: 999px; padding: 1px 8px; }
.bpa-empty { padding: 24px 18px; text-align: center; font-size: 13px; color: var(--text-2); }
.buddy-minebar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; }
.buddy-minebar .link { color: var(--brand, #ff5e8a); font-size: 13px; cursor: pointer; }
.buddy-minebar .link:active { opacity: .7; }

/* 我的拼单团（M2 邀请好友） */
.gb-team { margin: 10px 16px; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--baby-soft); }
.gb-team--done { border-color: var(--success, #2bb673); background: linear-gradient(180deg,#fff,#f1fff7); }
.gb-team__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-team__top b { font-size: 15px; font-weight: 800; }
.gb-team__progress { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.gb-team__acts { margin-top: 10px; }

/* 我的拼单 · 加入拼单码 */
.gb-join { display: flex; gap: 8px; margin: 12px 16px; }
.gb-join .input { flex: 1; }

/* 核销结果卡片：本次消费次数 / 卡剩余次数 */
.cr-member { font-size: 13px; color: var(--text-2, #6b7280); margin-bottom: 10px; }
.cr-rows { display: flex; flex-direction: column; gap: 10px; }
.cr-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg, #f5f6fa); border-radius: 12px; }
.cr-row > span { font-size: 14px; color: var(--text-2, #6b7280); }
.cr-row > b { font-size: 19px; font-weight: 800; color: var(--text, #1a1a1a); }
.cr-minus { color: var(--danger, #e23) !important; }
.cr-ok { color: var(--success, #2bb673) !important; }
/* 微信订阅消息推送状态提示 */
.cr-push { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; }
.cr-push--ok { background: rgba(43, 182, 115, .1); color: var(--success, #2bb673); }
.cr-push--tip { background: var(--bg, #f5f6fa); color: var(--text-2, #6b7280); }

/* 微信订阅通知授权引导弹窗 */
.sub-tip { font-size: 13px; color: var(--text-2, #6b7280); line-height: 1.9; }
.sub-tip b { color: var(--text, #1a1a1a); }
.sub-list { margin: 12px 0 4px; padding: 12px 14px; background: var(--bg, #f5f6fa); border-radius: 12px; font-size: 13px; color: var(--text-2, #6b7280); line-height: 2; }

/* 商家入驻费卡片（真实收款闭环） */
.mch-fee { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.9; }
.mch-fee--ok { background: rgba(43,182,115,.1); color: #2bb673; }
.mch-fee--warn { background: rgba(245,158,11,.1); color: #b45309; }
.mch-fee--pay { background: #fff7ed; border: 1px solid #fdba74; }
.mch-fee__t { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.mch-fee__d { color: #6b7280; margin: 4px 0 10px; }
.mch-fee .btn { margin-top: 2px; }

/* ==========================================================================
   童语故事 · 绘本样式
   ========================================================================== */

/* 创建页 */
.story-section { margin-bottom: 24px; }
.story-section__title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.story-section__sub { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }

.story-avatar {
  width: 200px; height: 200px; margin: 0 auto; border-radius: 16px;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden; border: 2px solid #fce7f3;
}
.story-avatar__change {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  padding: 8px; font-size: 13px; width: 100%;
}
.story-avatar--empty {
  width: 200px; height: 200px; margin: 0 auto; border-radius: 16px;
  border: 2px dashed #fbcfe8; background: #fdf2f8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: #9ca3af; font-size: 14px;
}
.story-avatar--empty:active { background: #fce7f3; }
.story-avatar__icon { font-size: 32px; color: #ec4899; display: flex; gap: 4px; align-items: center; }
.story-avatar__hint { font-size: 12px; color: #d1d5db; }

.story-input { font-family: inherit; line-height: 1.6; }
.story-input:focus { border-color: #f9a8d4; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,.1); }

.story-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.story-chip {
  padding: 6px 12px; border: 1px solid #fce7f3; border-radius: 20px;
  background: #fff; color: #6b7280; font-size: 12px; cursor: pointer;
}
.story-chip:active { background: #fce7f3; border-color: #ec4899; color: #ec4899; }

.story-tips { padding: 12px; background: #f9fafb; border-radius: 12px; font-size: 12px; color: #9ca3af; line-height: 1.8; }

.story-btn-create {
  width: 100%; padding: 14px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 20px;
}
.story-btn-create:disabled { background: #e5e7eb; color: #9ca3af; }
.story-btn-create:active:not(:disabled) { transform: scale(.98); }

/* 加载中 */
.story-loading__book { font-size: 56px; text-align: center; animation: story-bounce 1.4s ease-in-out infinite; }
@keyframes story-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* 结果页 */
.story-result { text-align: center; padding: 32px 16px; }
.story-result__icon { font-size: 48px; margin-bottom: 12px; }
.story-result__title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.story-result__sub { font-size: 14px; color: #6b7280; }
.story-preview { display: flex; gap: 10px; margin-top: 20px; overflow-x: auto; padding-bottom: 8px; }
.story-preview__item { flex: 0 0 140px; text-align: center; }
.story-preview__item.is-failed { opacity: .5; }
.story-preview__item img { height: 140px; object-fit: cover; }
.story-preview__placeholder { height: 140px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; }
.story-preview__text { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.4; }

/* 通用按钮 */
.story-btn { padding: 10px 20px; border-radius: 20px; font-size: 14px; cursor: pointer; border: none; }
.story-btn--primary { background: #ec4899; color: #fff; }
.story-btn--ghost { background: #fff; color: #6b7280; border: 1px solid #e5e7eb; }
.story-btn--danger { background: #fff; color: #ef4444; border: 1px solid #fecaca; }

/* 阅读页 */
.story-viewer { padding: 16px; }
.story-page-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 16px;
}
.story-page-card__image {
  width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: #f9fafb;
}
.story-page-card__noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.story-page-card__text { padding: 16px 20px 20px; }
.story-page-card__num { font-size: 12px; color: #ec4899; font-weight: 600; margin-bottom: 8px; }
.story-page-card__content { font-size: 16px; line-height: 1.8; color: #374151; }

/* 翻页导航 */
.story-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.story-nav__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #fff; font-size: 20px; color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.story-nav__btn.is-disabled { opacity: .3; }
.story-nav__dots { display: flex; gap: 6px; }
.story-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; cursor: pointer; }
.story-dot--active { background: #ec4899; width: 20px; border-radius: 4px; }

/* 操作栏 */
.story-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* 列表页 */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.story-card {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer; position: relative;
}
.story-card:active { transform: scale(.98); }
.story-card__cover { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; background-color: #f9fafb; }
.story-card__cover--empty { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #e5e7eb; }
.story-card__badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.story-card__badge--warn { background: #fef3c7; color: #92400e; }
.story-card__badge--error { background: #fee2e2; color: #991b1b; }
.story-card__title { font-size: 14px; font-weight: 600; color: #1a1a1a; padding: 8px 10px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-card__meta { font-size: 11px; color: #9ca3af; padding: 0 10px 10px; }
