/* ==========================================================================
   银龄百事达 · 网页端样式
   和小程序同一套配色（主色 #0FA958），但按网页阅读习惯重排：
   字号更大、行距更松、点击区域不小于 48px，方便老人和家属在手机上用。
   ========================================================================== */

:root {
  --green: #0fa958;
  --green-dark: #0b7f42;
  --green-deep: #075c30;
  --green-soft: #e7f7ef;
  --green-line: #c9ecda;

  --orange: #e8730f;
  --orange-soft: #fff3e6;
  --red: #d93636;
  --red-soft: #fdecec;

  --ink: #17201b;
  --ink-2: #4a5651;
  --ink-3: #7d8984;
  --line: #e6ebe8;
  --bg: #f3f6f4;
  --card: #ffffff;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow: 0 1px 2px rgba(23, 32, 27, 0.04), 0 8px 24px rgba(23, 32, 27, 0.06);
  --shadow-lift: 0 2px 6px rgba(23, 32, 27, 0.06), 0 16px 40px rgba(15, 169, 88, 0.14);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #e9eeeb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 桌面端：居中一个手机宽的阅读栏，两侧留白 */
#app {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.05), 0 0 60px rgba(23, 32, 27, 0.08);
  padding-bottom: calc(78px + var(--safe-bottom));
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------------------------- 顶部栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar.dark {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-bottom: 0;
  color: #fff;
}

.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  color: inherit;
  transition: background 0.15s;
}

.icon-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.topbar.dark .icon-btn:active {
  background: rgba(255, 255, 255, 0.16);
}

/* 首页品牌顶栏：上口号 / 下站名两行居中（logo 在下面 hero 里）。
   只有 dark（首页）用，白底内页顶栏仍是单标题，不受影响。 */
.topbar.dark {
  height: 64px;
}

.topbar-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

/* 圆形 logo 落在首页绿色大卡片（hero）右上角那圈浅色圆弧里。
   图片四角已做透明，绿底上是一枚干净圆徽章，不会露白方块。
   z-index 要压住 hero::after 的半透明圆弧，别被蒙一层白。 */
.hero-logo {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  white-space: nowrap;
}

/* 320px 窄屏：口号优先缩小，站名不能被挤没；hero 徽章同时收小 */
@media (max-width: 360px) {
  .topbar.dark { padding: 0 8px; }
  .topbar.dark .topbar-brand { gap: 6px; }
  .hero-logo { width: 50px; height: 50px; right: 14px; top: 14px; }
  .brand-slogan { font-size: 10.5px; letter-spacing: 0; }
  .brand-name { font-size: 16px; letter-spacing: 1px; }
}

/* ---------------------------------------------------------------- 通用容器 */
.page {
  animation: fade 0.22s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pad {
  padding: 0 16px;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-more {
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}

/* ---------------------------------------------------------------- 首页 Hero */
.hero {
  position: relative;
  padding: 22px 16px 26px;
  background: linear-gradient(150deg, #14c268 0%, var(--green) 42%, var(--green-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -110px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.88;
  letter-spacing: 0.4px;
}

.hero-title {
  position: relative;
  margin: 10px 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.3;
}

.hero-sub {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 92%;
}

/* 两张大卡片：我要服务 / 我要咨询 */
.entry-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(6, 60, 32, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.entry-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(6, 60, 32, 0.14);
}

.entry-emoji {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 15px;
  background: var(--green-soft);
}

.entry-card.accent .entry-emoji {
  background: var(--orange-soft);
}

.entry-body {
  flex: 1;
  min-width: 0;
}

.entry-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.entry-desc {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.entry-arrow {
  font-size: 20px;
  color: var(--ink-3);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- 四板块 */
.channel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 4px 12px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 32, 27, 0.04);
  transition: transform 0.15s;
}

.channel-item:active {
  transform: scale(0.96);
}

.channel-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 13px;
  background: var(--green-soft);
}

.channel-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-2);
  /* 五个字的「银龄不倒翁」在 320 窄屏会折成两行，最后单挂一个「翁」 */
  white-space: nowrap;
}

/* 320px 四列每列约 66px，5 字名要缩到 11.5px 才不会挤出卡片 */
@media (max-width: 360px) {
  .channel-name { font-size: 11.5px; letter-spacing: -0.5px; }
}

/* 后台尚未填链接的板块：显示成不可点的「待上线」，绝不变成跳回本页的死链 */
.channel-item--pending { background: #f5f8f5; box-shadow: none; opacity: .78; }
.channel-item--pending .channel-emoji { background: #e7eee8; filter: grayscale(.4); }
.channel-pending { font-size: 10px; color: #89978c; letter-spacing: 0; }

/* 社区服务四宫格下方的独立 CTA：申请成为银龄互助员（与四个兄弟应用区分开） */
.volunteer-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 16px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #e8f6ec, #f3fbf5);
  border: 1px solid rgba(46, 155, 87, 0.25);
  box-shadow: 0 1px 2px rgba(23, 32, 27, 0.04);
  transition: transform 0.15s;
}
.volunteer-cta:active { transform: scale(0.98); }
.vc-emoji {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: var(--green);
  flex: 0 0 auto;
}
.vc-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.vc-title { font-size: 14px; font-weight: 700; color: var(--ink-1); }
.vc-sub { font-size: 11.5px; color: var(--ink-3); }
.vc-arrow { font-size: 20px; color: var(--green); flex: 0 0 auto; }

/* 线上商城 CTA：与互助员并排的第二条全宽入口，橙色系和互助员的绿色区分开 */
.mall-cta {
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff3e4, #fffaf1);
  border-color: rgba(232, 146, 58, 0.35);
}
.mall-cta .vc-emoji { background: #e8923a; }
.mall-cta .vc-arrow { color: #e8923a; }

/* ---------------------------------------------------------------- 卡片/列表 */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card {
  margin-top: 12px;
}

.list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  gap: 13px;
  padding: 15px 14px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.list-item:active {
  transform: scale(0.99);
}

/* 服务卡收藏星标：占住右上角，触达区够大（老人手指不精） */
.svc-item {
  position: relative;
  padding-right: 44px;
}

.fav-hint {
  margin: 10px 4px 0;
  font-size: 13px;
  color: var(--ink-3);
}

.fav-star {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #C4C9CF;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fav-star.on {
  color: #F5A623;
}

/* 收藏瞬间的小反馈：缩放一下，比纯变色更有"点到了"的感觉 */
.fav-star:active {
  transform: scale(1.25);
}

.list-emoji {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 13px;
  background: var(--green-soft);
}

.list-body {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.45;
}

.list-desc {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.price {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
}

.tag.gray {
  background: #f0f2f1;
  color: var(--ink-3);
}

.tag.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------------------------------------------------------------- 筛选条 */
.filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all 0.16s;
}

.chip.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 详情页 */
.detail-hero {
  padding: 20px 16px 22px;
  background: linear-gradient(150deg, #14c268 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
}

.detail-emoji {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 30px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.detail-sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.92;
}

.detail-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 500;
}

/* 正文区块 */
.block {
  margin: 14px 16px 0;
  padding: 18px 16px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.block-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--green);
}

.block p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

.block p:last-child {
  margin-bottom: 0;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.bullets li:last-child {
  margin-bottom: 0;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-line);
}

/* 活动信息表 */
.info-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.info-key {
  flex: 0 0 72px;
  color: var(--ink-3);
}

.info-val {
  flex: 1;
  color: var(--ink);
  font-weight: 550;
}

/* 名额进度 */
.quota-bar {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: #eef2ef;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #35d07f, var(--green));
  transition: width 0.4s ease;
}

/* ---------------------------------------------------------------- 表单 */
.form {
  padding: 0 16px;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.field-label .req {
  color: var(--red);
  font-size: 13px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 14px 14px;
  font-size: 16.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  -webkit-appearance: none;
  appearance: none;
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(15, 169, 88, 0.13);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #b3bcb7;
}

.field-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
}

/* 单选组 */
.radio-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.radio {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: all 0.16s;
}

.radio.on {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 650;
}

/* 关注方向多选（完善档案页）：小圆角胶囊，一行两三个，老人点着不费眼 */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 4px;
}

.interest-chip {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: all 0.16s;
}

.interest-chip.on {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 650;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: transform 0.14s, opacity 0.14s, background 0.14s;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #14c268, var(--green-dark));
  box-shadow: 0 8px 22px rgba(15, 169, 88, 0.28);
}

.btn-secondary {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1.5px solid var(--green-line);
}

.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
}

.btn-danger {
  color: var(--red);
  background: #fff;
  border: 1.5px solid #f6d5d5;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14.5px;
  width: auto;
  border-radius: 10px;
}

/* 底部固定操作条 */
.action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  z-index: 40;
}

.action-bar .btn {
  flex: 1;
}

/* ---------------------------------------------------------------- 底部导航 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  z-index: 40;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s;
}

.tab-emoji {
  font-size: 21px;
  line-height: 1.25;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.15s, transform 0.15s;
}

.tab.on {
  color: var(--green);
  font-weight: 650;
}

.tab.on .tab-emoji {
  filter: none;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 12px);
  max-width: 80%;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(23, 32, 27, 0.9);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  background: rgba(190, 40, 40, 0.94);
}

/* 弹窗 */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 24, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
  animation: fade 0.18s ease;
}

.sheet {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + var(--safe-bottom));
  animation: rise 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 88vh;
  overflow-y: auto;
}

@keyframes rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

.sheet-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

/* ---------------------------------------------------------------- 空状态 */
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-3);
}

.empty-emoji {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-text {
  font-size: 15px;
  line-height: 1.7;
}

/* 骨架屏 */
.skeleton {
  padding: 16px;
}

.sk-line {
  height: 15px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef1ef 25%, #f6f8f7 50%, #eef1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: 10px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* ---------------------------------------------------------------- 我的页 */
.me-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 24px;
  background: linear-gradient(150deg, #14c268 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
}

.avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 26px;
}

.me-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.me-phone {
  font-size: 14px;
  opacity: 0.86;
  margin-top: 2px;
}

.me-stats {
  display: grid;
  /* 2026-11-07 加了「我的福利」，三格改四格。
     用 repeat(4, 1fr) 而不是写死 n 列，格数变了只改这一个数。 */
  grid-template-columns: repeat(4, 1fr);
  margin: -14px 16px 0;
  padding: 16px 0;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.me-stat {
  text-align: center;
  border-right: 1px solid var(--line);
  /* 四格比三格窄，数字和标签都可能挤。
     加 min-width:0 才能让 grid 项目真正缩下来，否则文字会把格子撑爆。 */
  min-width: 0;
  padding: 0 2px;
}

.me-stat:last-child {
  border-right: 0;
}

.me-stat-num {
  font-size: 21px;
  font-weight: 750;
  color: var(--green-dark);
  letter-spacing: -0.4px;
}

.me-stat-label {
  /* 四格后每格只剩约 78px，「我的福利」四个字按 12.5px 会顶到竖线；
     11.5px + nowrap 刚好放得下，且还不至于小到老人看不清。 */
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
}

/* 我的页分段 */
.seg {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 14px 16px 0;
  background: #eaefec;
  border-radius: 12px;
}

.seg-item {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  border-radius: 9px;
  transition: all 0.16s;
}

.seg-item.on {
  background: #fff;
  color: var(--green-dark);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(23, 32, 27, 0.1);
}

/* 记录卡片 */
.rec {
  padding: 15px 16px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.rec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rec-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.rec-body {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.rec-reply {
  margin-top: 10px;
  padding: 11px 13px;
  background: var(--green-soft);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--green);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--green-deep);
}

.rec-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rec-time {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 福利券：券号要能被老人念出来、被店员敲进去，所以给足字号
   并用等宽字体，避免 O 和 0、l 和 1 看混。
   （生成券号时已经剔掉了 0/O/1/I/L，这里再等宽一层是双保险） */
.vrec-code {
  margin: 6px 0 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.vrec-code b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 1.5px;
  color: var(--green-dark);
}

/* ---------------------------------------------------------------- 咨询页 */
.contact-big {
  margin: 16px;
  padding: 22px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #14c268, var(--green-dark));
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 169, 88, 0.26);
}

.contact-phone {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
}

.contact-note {
  font-size: 13.5px;
  opacity: 0.88;
}

/* FAQ 手风琴 */
.faq {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-q .caret {
  flex: 0 0 auto;
  color: var(--ink-3);
  transition: transform 0.2s;
  font-size: 13px;
}

.faq.open .caret {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 16px 15px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.faq.open .faq-a {
  display: block;
}

/* ---------------------------------------------------------------- 页脚 */
.footer {
  margin: 26px 16px 8px;
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: #fff;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

.footer strong {
  color: var(--ink-2);
  font-weight: 600;
}

.mode-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 600;
}

/* 店员管理后台入口：低调一行按钮，手机上也能点到（网站最底部） */
.footer-admin { margin-top: 14px; }
.footer-admin-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line, #e6ebe8);
  border-radius: 12px;
  background: #f6faf7;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-admin-btn:active { background: #eef5f0; }
.footer-admin-ico { font-size: 20px; line-height: 1; }
.footer-admin-txt { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.footer-admin-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.footer-admin-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.footer-admin-arrow { color: var(--ink-3); font-size: 22px; flex: none; }

/* ---------------------------------------------------------------- 合规告知页 / 同意栏 / 注销 */
.legal {
  margin: 14px 16px 0;
  padding: 18px 16px 20px;
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.legal h3 {
  font-size: 16px;
  color: var(--ink-1);
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}
.legal h3:first-child { margin-top: 4px; }
.legal p { margin: 0 0 10px; }
.legal b { color: var(--ink-1); font-weight: 600; }
.legal-lead {
  background: var(--green-light);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-1);
}
.legal-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 登记页"同意隐私政策"勾选行 */
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.agree-row input[type=checkbox] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--green);
}
.agree-row a { color: var(--green); text-decoration: none; font-weight: 600; }

/* 未登录表单（留言/预约）底部的"提交即同意"提示 */
.agree-note {
  margin: 12px 16px 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.agree-note a { color: var(--green); text-decoration: none; font-weight: 600; }

/* "我的"页底部的合规链接行 */
.me-legal {
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 4px 0 14px;
  font-size: 13.5px;
}
.me-legal a { color: var(--green); text-decoration: none; font-weight: 600; }

/* "我的"页底部：扫码关注四个平台。放大层复用 ui.js 的 sheet。 */
.follow-sec { margin: 26px 0 0; padding: 0 16px; }
.follow-head { margin-bottom: 12px; text-align: center; }
.follow-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.follow-sub { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.follow-card {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; padding: 10px 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); box-shadow: var(--shadow);
  font: inherit; color: inherit; text-align: center; cursor: pointer;
}
.follow-card:active { transform: scale(0.985); }
.follow-badge {
  padding: 3px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 12px; font-weight: 700; line-height: 1.5;
}
.follow-img {
  display: block; width: 100%; height: 148px;
  margin: 8px 0 6px; object-fit: contain; background: #fff;
}
.follow-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.follow-desc { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.follow-lb { text-align: center; }
.follow-lb-img {
  display: block; width: 100%; max-height: 62vh;
  margin: 0 auto 12px; object-fit: contain; background: #fff;
}
.follow-lb-tip { margin-bottom: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 360px) {
  .follow-sec { padding: 0 12px; }
  .follow-grid { gap: 8px; }
  .follow-img { height: 128px; }
  .follow-name { font-size: 13px; }
  .follow-desc { font-size: 11px; }
}

/* 注销账号按钮：比退出登录更"危险"，但仍是次按钮，避免误触 */
.btn-danger-ghost {
  width: 100%;
  border: 1px solid var(--red, #e35d5d);
  color: var(--red, #e35d5d);
  background: #fff;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-danger-ghost:active { background: #fdeaea; }

/* ---------------------------------------------------------------- 小工具 */
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spacer {
  flex: 1;
}

.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }

.dim {
  color: var(--ink-3);
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------------------------- 语音输入 */
.voice-row {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px dashed var(--green-line);
  border-radius: var(--r-md);
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.voice-btn:active {
  transform: scale(0.99);
}

.voice-btn .voice-ico {
  font-size: 20px;
}

/* 录音中：红色 + 呼吸光圈，老人一眼看出"正在听" */
.voice-btn.on {
  border-style: solid;
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
  animation: voice-pulse 1.5s ease-in-out infinite;
}

.voice-btn[data-state='busy'] {
  opacity: 0.65;
  cursor: progress;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 54, 54, 0.22); }
  50% { box-shadow: 0 0 0 12px rgba(217, 54, 54, 0); }
}

.voice-hint {
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- 档案卡 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
  text-decoration: none;
}

.profile-card.todo {
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.pc-ico {
  font-size: 24px;
  line-height: 1;
}

.pc-body {
  flex: 1;
  min-width: 0;
}

.pc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.profile-card.todo .pc-title {
  color: #8a4b06;
}

.pc-desc {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  /* 缺的项要能看全，最多两行，超出再省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-go {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.profile-card.todo .pc-go {
  color: #8a4b06;
}

/* 统计卡原本靠 -14px 贴在绿色头部下面，中间插了档案卡就不能再上移 */
.profile-card + .me-stats {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- 完善档案页 */
.pv-head {
  margin: 14px 16px 0;
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.pv-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.pv-sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.pv-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--green-soft);
  overflow: hidden;
}

.pv-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #29c07a, var(--green));
  transition: width 0.4s ease;
}

.pv-count {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: right;
}

.form-group {
  margin: 4px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ---------------------------------------------------------------- 管理后台 */
/* 后台是操作台，不按适老化排：信息密度优先，桌面上放宽到 1080 */
body.admin-mode #app {
  max-width: 1080px;
  background: #fff;
  box-shadow: 0 0 60px rgba(23, 32, 27, 0.08);
}

.page.bare {
  padding: 0 0 40px;
}

.adm-loading,
.adm-error {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}

.adm-error {
  color: var(--red);
}

.adm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.adm-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.adm-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

.adm-logout {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.adm-logout:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--line);
}

.adm-tab {
  padding: 9px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.adm-tab.on {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.adm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 10px;
}

.adm-count {
  font-size: 13px;
  color: var(--ink-3);
}

.adm-list {
  padding: 0 24px;
}

.adm-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.adm-row.muted {
  opacity: 0.55;
}

.adm-row-main {
  flex: 1;
  min-width: 0;
}

.adm-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-row-meta {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.adm-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.adm-tag.edited {
  background: var(--orange-soft);
  color: var(--orange);
}

.adm-tag.new {
  background: var(--green-soft);
  color: var(--green-dark);
}

.adm-row-ops {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.adm-op {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.adm-op:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.adm-op.danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.adm-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.adm-section-title {
  padding: 22px 24px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
}

.adm-foot {
  padding: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* 登录 */
.adm-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82vh;
  gap: 16px;
  padding: 20px;
}

.adm-login-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.adm-login-title {
  font-size: 20px;
  font-weight: 800;
}

.adm-login-sub {
  margin: 4px 0 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.adm-login-tip {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.adm-login-tip code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 11.5px;
}

.adm-back {
  font-size: 13.5px;
  color: var(--ink-3);
  text-decoration: none;
}

/* 编辑表单 */
.adm-form {
  padding: 20px 24px 40px;
  max-width: 760px;
}

.adm-field {
  margin-bottom: 18px;
}

.adm-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.adm-req {
  color: var(--red);
}

/* 表单里的小分区：比如「今日天气（可选）」把人工覆盖和常规字段隔开，
   不隔开的话运营会以为天气也得天天填 */
.adm-sep {
  margin: 22px 0 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.adm-sep-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.adm-sep-s {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}

.adm-input,
.adm-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.adm-textarea {
  resize: vertical;
  min-height: 90px;
}

.adm-textarea.tall {
  min-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.adm-input:focus,
.adm-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 169, 88, 0.12);
}

.adm-input[readonly] {
  background: var(--bg);
  color: var(--ink-3);
}

.adm-hint {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

.adm-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg);
}

.adm-mini {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.adm-mini:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.adm-img {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adm-img-prev {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 11.5px;
  overflow: hidden;
}

.adm-img-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-img-ops {
  display: flex;
  gap: 8px;
}

.adm-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .adm-head,
  .adm-toolbar,
  .adm-list,
  .adm-form,
  .adm-foot,
  .adm-section-title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .adm-tabs {
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: auto;
  }

  .adm-row {
    flex-wrap: wrap;
  }

  .adm-row-ops {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---- 后台「用户数据」页 ---- */
.adm-data-sec { margin-bottom: 22px; }
.adm-data-title {
  font-weight: 700; font-size: 15px; margin: 16px 0 8px; color: #0b3d2e;
}
.adm-data-num { font-weight: 400; font-size: 13px; color: #6b7a73; margin-left: 6px; }
.adm-data-hint { font-size: 13px; color: #5b6b63; line-height: 1.8; }
.adm-data-hint a { color: #0b3d2e; text-decoration: underline; }
.adm-dt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e3e8e5; border-radius: 8px; }
.adm-dt { border-collapse: collapse; width: 100%; font-size: 12px; white-space: nowrap; }
.adm-dt th, .adm-dt td { border-bottom: 1px solid #e9eeeb; padding: 7px 10px; text-align: left; vertical-align: top; }
.adm-dt th { background: #f2f6f3; color: #0b3d2e; font-weight: 600; }
.adm-dt td { color: #33443c; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.adm-dt tr:nth-child(even) td { background: #fafcfb; }
/* 用户表的会员操作列：钉在最右边，表格横向滚动时也能点到 */
.adm-dt-op {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.12);
  text-align: center;
  white-space: nowrap;
}

/* 关注分析：排行条 */
.ins-rank { display: flex; flex-direction: column; gap: 12px; }
.ins-row {
  border: 1px solid #e3e8e5; border-radius: 8px; padding: 10px 12px; background: #fff;
}
.ins-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ins-name { font-size: 14px; font-weight: 650; color: #0b3d2e; }
.ins-count { font-size: 12px; color: #6b7a73; white-space: nowrap; }
.ins-bar { height: 8px; background: #eef3f0; border-radius: 999px; overflow: hidden; }
.ins-fill { height: 100%; background: linear-gradient(90deg, #58b98a, #2f9463); border-radius: 999px; }
.ins-people { margin-top: 6px; font-size: 12px; color: #566159; line-height: 1.7; word-break: break-all; }
.adm-dt tr:nth-child(even) .adm-dt-op { background: #fafcfb; }
.adm-dt th.adm-dt-op { background: #f2f6f3; }
.adm-dt-op .btn { padding: 4px 10px; font-size: 12px; }
.adm-on-mark { display: inline-block; margin-left: 6px; font-size: 11.5px; color: #0b7a40; }
.adm-on-mark--warn { color: #b36b00; }
/* 用户数据：批量设为会员 */
.adm-dt-chk { width: 34px; text-align: center !important; }
.adm-dt-chk input { width: 16px; height: 16px; cursor: pointer; accent-color: #0b7a40; }
.mem-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; background: #eaf6ee; border: 1px solid #bfe3cc; border-radius: 8px; }
.mem-batch-count { font-size: 13px; color: #1b6b45; font-weight: 600; margin-right: 4px; }
/* 板块使用：强调"具体是谁用的" */
.usage-people-hint { margin: 0 0 12px; padding: 10px 12px; background: #eaf6ee; border-left: 4px solid #1b7a4b; border-radius: 6px; font-size: 13px; color: #2c5f42; line-height: 1.6; }
.usage-people-hint b { color: #15663c; }
/* 内容审批：通过按钮醒目，一点即生效 */
.btn-approve { background: #0b7a40; border-color: #0b7a40; color: #fff; font-weight: 600; }
.btn-approve:hover { background: #096636; }
/* 板块数据：测评结果卡片 */
.assess-sec { margin-bottom: 18px; }
.assess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.assess-card { border: 1px solid #d7e8dd; border-radius: 10px; padding: 12px 14px; background: #fff; }
.assess-person { font-size: 14px; color: #1f3b2e; }
.assess-person b { font-size: 15px; }
.assess-board { font-size: 12px; color: #7a8a80; margin: 4px 0 8px; }
.assess-score-row { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.assess-score { font-size: 30px; font-weight: 700; color: #0b6b3a; line-height: 1; }
.assess-score--none { color: #9aa8a0; font-weight: 500; }
.assess-unit { font-size: 13px; color: #6b7a72; }
.assess-level { margin-left: 8px; font-size: 13px; font-weight: 600; border-radius: 20px; padding: 2px 10px; }
.assess-good { color: #1b7a4b; background: #e4f5ea; }
.assess-mid { color: #a8700b; background: #fdf1d8; }
.assess-risk { color: #b23b2e; background: #fde9e6; }
.assess-risks { margin-top: 8px; font-size: 12px; color: #6b5140; }
.assess-risk-tag { display: inline-block; background: #fde9e6; color: #a8342a; border-radius: 6px; padding: 2px 7px; margin: 3px 4px 0 0; }
.assess-time { margin-top: 8px; font-size: 11px; color: #9aa69f; }

/* 居民 × 应用使用结果汇总矩阵（用户数据页） */
.ux-sec { margin-bottom: 20px; }
.ux-matrix th, .ux-matrix td { white-space: normal; vertical-align: top; }
.ux-matrix th { min-width: 96px; }
.ux-matrix .ux-name { min-width: 108px; position: sticky; left: 0; background: #f2f6f3; z-index: 2; }
.ux-matrix th.ux-name { z-index: 3; }
.ux-matrix td.ux-name { background: #fff; }
.ux-matrix tr:nth-child(even) td.ux-name { background: #fafcfb; }
.ux-matrix .ux-name b { color: #0b3d2e; }
.ux-phone { font-size: 11px; color: #8a978f; }
.ux-untagged { display: inline-block; margin-top: 3px; font-size: 10.5px; color: #b36b00; background: #fdf1d8; border-radius: 4px; padding: 1px 5px; }
.ux-matrix .ux-fav { min-width: 110px; font-size: 12px; color: #456; }
.ux-cell { min-width: 96px; font-size: 12.5px; }
.ux-cell.ux-none { color: #bcc6c0; }
.ux-level { display: inline-block; border-radius: 12px; padding: 2px 8px; font-weight: 600; line-height: 1.4; }
.ux-level.ux-good { color: #1b7a4b; background: #e4f5ea; }
.ux-level.ux-mid { color: #a8700b; background: #fdf1d8; }
.ux-level.ux-risk { color: #b23b2e; background: #fde9e6; }
.ux-when { margin-top: 3px; font-size: 10.5px; color: #9aa69f; }
/* 板块列已合并进「用户数据」表：表头用浅绿区分基础信息，单元格允许多行不截断 */
.adm-dt th.ux-app-col { background: #e8f2ec; color: #1b6b45; min-width: 92px; white-space: normal; }
.adm-dt td.ux-cell { white-space: normal; max-width: none; overflow: visible; text-overflow: clip; min-width: 92px; }
.adm-sync-result {
  margin: 10px 0 14px; padding: 10px 12px; border-radius: 8px;
  background: #eef7f1; color: #0b3d2e; font-size: 13px; line-height: 1.8;
}
.adm-sync-result.bad { background: #fff1f0; color: #a12b22; }
.adm-sync-result a { color: inherit; font-weight: 600; }
.csv-export-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.csv-export-tip { margin-top: 8px; color: #5a6b62; font-size: 12px; }

/* 数据总览：KPI 卡 + 近 7 天趋势 */
.adm-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.adm-kpi { background: #fff; border: 1px solid #e3e8e5; border-radius: 10px; padding: 12px 14px; }
.adm-kpi-label { font-size: 12px; color: #6b7a73; }
.adm-kpi-num { font-size: 26px; font-weight: 700; color: #0b7a40; line-height: 1.3; margin-top: 4px; }
.adm-kpi-unit { font-size: 12px; font-weight: 500; color: #6b7a73; margin-left: 4px; }
.adm-subsec { margin: 16px 0 8px; font-size: 12.5px; color: #6b7a73; font-weight: 600; }
.adm-trend { display: flex; flex-direction: column; gap: 10px; }
.adm-trend-row { display: grid; grid-template-columns: 44px 1fr 48px; gap: 8px; align-items: center; }
.adm-trend-date { font-size: 12px; color: #6b7a73; }
.adm-trend-bar { height: 8px; background: #eef3f0; border-radius: 999px; overflow: hidden; }
.adm-trend-fill { height: 100%; background: linear-gradient(90deg, #58b98a, #2f9463); border-radius: 999px; }
.adm-trend-num { font-size: 12px; color: #0b3d2e; text-align: right; white-space: nowrap; }
.adm-trend-detail { grid-column: 2 / 4; font-size: 11.5px; color: #8a968f; }
@media (max-width: 560px) {
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   银龄百事达会员（.mem-card 是「我的」页的入口卡，.m* 是会员页）
   金色 + 深绿：金色表示"会员身份"，绿色延续主色。
   适老化：正文 16px 起，权益名称 17px，点击区 ≥ 48px。
   ================================================================ */

/* ---------- 首页会员卡（.mem-card 现在挂在首页两个主入口下面） ---------- */
.mem-card {
  position: relative;
  display: block;
  margin: 14px 16px 0;
  padding: 20px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(140deg, #0f9c55 0%, #0a7a42 55%, #08602f 100%);
  border: 1.5px solid rgba(240, 200, 106, 0.55);
  box-shadow: 0 10px 26px rgba(8, 96, 47, 0.24);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.mem-glow {
  position: absolute;
  top: -60px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 168, 0.3) 0%, rgba(255, 233, 168, 0) 70%);
  pointer-events: none;
}
.mem-card > *:not(.mem-glow) { position: relative; }

.mem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mem-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #ffe9a8;
  background: rgba(255, 233, 168, 0.18);
  border: 1px solid rgba(255, 233, 168, 0.5);
}
.mem-free {
  padding: 3px 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0a5c30;
  background: linear-gradient(135deg, #ffe9a8, #f0c86a);
}
.mem-on {
  padding: 3px 11px;
  border-radius: 12px;
  font-size: 12px;
  color: #ffe9a8;
  border: 1px solid rgba(255, 233, 168, 0.55);
}

.mem-title {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #fff6dc;
  letter-spacing: 0.5px;
}

.mem-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 8px;
}
.mem-perk {
  width: calc(50% - 2px);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.94);
}

.mem-pri {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.mem-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
}
.mem-tip { font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.mem-btn {
  padding: 7px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0a5c30;
  background: linear-gradient(135deg, #ffe9a8, #f0c86a);
}

/* ---------- 会员权益页 ---------- */
.mhero {
  position: relative;
  padding: 26px 20px 52px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(150deg, #12b863 0%, #0b8f4e 46%, #0a6b3c 100%);
  color: #fff;
  overflow: hidden;
}
.mhero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}
.mhero-mark {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
}
.mhero-title {
  position: relative;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff6dc;
}
.mhero-sub { position: relative; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.86); }

.mchip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 16px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.mchip .mnum { font-size: 22px; font-weight: 700; color: #ffe9a8; line-height: 1; }
.mchip .munit { font-size: 12px; color: #ffe9a8; }
.mchip .mtip { font-size: 12.5px; color: #fff; margin-left: 8px; }
.mchip.on { align-items: center; font-size: 12.5px; color: #ffe9a8; }
.mchip.on b { margin-right: 5px; }

.mhero-line { position: relative; margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

/* 第一张卡上移盖住头部下沿；负 margin 落在容器上，里面的 .msec 本身不能带 margin-top，
   否则标题会被自己盖住（踩过一次：.msec-head 被卡面上沿压掉半行）。 */
.mwrap { padding: 0 16px; margin-top: -30px; position: relative; z-index: 1; }

.msec {
  background: #fff;
  border-radius: 16px;
  padding: 16px 15px 4px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.msec-head { display: flex; align-items: center; gap: 7px; }
.msec-head i {
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, #12b863, #0b8f4e);
}
.msec-head span { font-size: 17px; font-weight: 700; color: var(--ink); }
.msec-desc { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 12px 11px; }

.mperk {
  display: flex;
  gap: 9px;
  padding: 12px 11px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbf8 0%, #fffdf6 100%);
  border: 1px solid #eadfc0;
}
.mperk-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c86a, #d9a73c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.mperk-main { flex: 1; min-width: 0; }
.mperk-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mperk-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.mperk-badge {
  font-size: 11px;
  color: #a5781f;
  background: #fbf0d2;
  border-radius: 4px;
  padding: 1px 6px;
}
.mperk-desc { margin-top: 5px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.mperk-note {
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid #eadfc0;
  font-size: 12px;
  line-height: 1.65;
  color: #8a8377;
}

.mpri { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f1; }
.mpri:last-of-type { border-bottom: none; }
.mpri-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.mpri-main { flex: 1; min-width: 0; }
.mpri-title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.mpri-desc { margin-top: 3px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

.mprotect {
  margin: 4px 0 14px;
  padding: 13px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}
.mprotect-head { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; }
.mprotect-body { font-size: 13.5px; line-height: 1.75; color: #2f5c43; }
.mprotect-body.sub { margin-top: 6px; font-size: 12.5px; color: #4e7a62; }
.mprotect-body b { color: var(--green-dark); }

.mrule { margin: 8px 0 0; padding: 0 0 0 18px; }
.mrule li { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 4px; }

.mact { padding: 6px 4px 4px; }
.mact-done {
  height: 50px;
  border-radius: 25px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mact-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.mact-row { text-align: center; margin-top: 10px; }
.mact-row a { font-size: 14px; color: var(--green); text-decoration: none; padding: 8px 14px; display: inline-block; }

.mfoot {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #a6adb2;
  text-align: justify;
}

/* ---------- 办理三步块（只放小助手码，线上零支付） ---------- */
.mstep {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2efe8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.mstep-no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12b863, #0b8f4e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mstep-main { flex: 1; min-width: 0; }
.mstep-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.mstep-desc { margin-top: 5px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.mact-steps { display: flex; flex-direction: column; gap: 12px; }
.mact-step {
  background: #fff;
  border: 1px solid #e2efe8;
  border-radius: 14px;
  padding: 14px 14px 16px;
}
.mact-step-head { display: flex; align-items: center; gap: 8px; }
.mact-step-head i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12b863, #0b8f4e);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mact-step-head span { font-size: 15px; font-weight: 700; color: var(--ink); }
.mact-step-desc { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.mact-qr {
  margin-top: 12px;
  padding: 14px;
  border: 2px solid #c9ecda;
  border-radius: 12px;
  background: #fbfefc;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mact-qr img { width: 210px; height: 210px; display: block; background: #fff; border-radius: 6px; }
.mact-qr-tip { margin-top: 10px; font-size: 12.5px; color: var(--green-dark); font-weight: 600; }
/* 凭据示意块：现在填的是手机号，不再有卡号。
   去掉等宽字体和 2px 字距——那是给字母数字混排的卡号用的，
   纯数字手机号加等宽反而显挤。 */
.mact-code {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #c9ecda;
  border-radius: 12px;
  background: #fbfefc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mact-code-label { font-size: 12.5px; color: var(--ink-3); }
.mact-code b {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--green-dark);
}
.mact-id {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mact-copy {
  border: 1px solid #c9ecda;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 12px;
  font-size: 12.5px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ==========================================================================
   生活页（生活常识 + 养老权益与财富安心）
   ========================================================================== */
.life-hero {
  background: linear-gradient(160deg, #0fa958 0%, #0b7f42 100%);
  padding: 26px 20px 34px;
  color: #fff;
  border-radius: 0 0 24px 24px;
}
.life-h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.life-sub {
  font-size: 14px;
  opacity: 0.88;
  margin-top: 6px;
  line-height: 1.6;
}

/* 今日一句：贴在头部下沿，负 margin 让它像从绿底长出来 */
.life-tip {
  display: block;
  background: var(--card);
  border-left: 4px solid var(--green);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 169, 88, 0.14);
  color: inherit;
  text-decoration: none;
}
.life-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.life-tip-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
  padding: 2px 8px;
}
/* 天气头：日期 城市 天气 气温。字号比正文大一档，
   "今天几度"是老人打开页面最先想知道的，不该和穿搭建议一样大 */
.life-tip-wx {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}
.life-tip-emoji { font-size: 22px; line-height: 1; }
.life-tip-head {
  font-size: 18.5px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.life-tip-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 7px;
  font-weight: 500;
}
/* 细则（带伞、护关节）小一号、淡一点：主句已经说完最要紧的了 */
.life-tip-detail {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 5px;
}
.life-tip-more {
  font-size: 13px;
  color: var(--green);
  font-weight: 650;
  margin-top: 7px;
}

.life-col {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.life-col-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex-shrink: 0;
}
.life-col-body { flex: 1; min-width: 0; }
.life-col-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.life-col-name { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.life-col-badge {
  font-size: 11px;
  color: #a4650a;
  background: var(--orange-soft);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
.life-col-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 4px;
}
.life-col-arrow { font-size: 20px; color: #c2cbc6; flex-shrink: 0; }

.life-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f3fbf6;
  border: 1px solid #dcefe4;
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  color: inherit;
  text-decoration: none;
}
.life-right-emoji { font-size: 21px; line-height: 1.2; flex-shrink: 0; }
.life-right-body { flex: 1; min-width: 0; }
.life-right-name { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.life-right-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-top: 3px; }
.life-right-title {
  font-size: 13px;
  color: var(--green-dark);
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cfe6d8;
}

/* 物价参考卡下面的今日菜价肉价块（也用在栏目详情页顶部） */
.life-price {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 12px 14px 10px;
  margin: -2px 0 10px;
}
.life-price-h { font-size: 13.5px; font-weight: 700; color: var(--green-dark); }
.life-price-h small { font-weight: 400; color: var(--ink-3); font-size: 11px; margin-left: 6px; }
.life-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin-top: 6px;
}
.life-price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed #e4efe8;
  font-size: 13px;
}
.life-price-item:nth-last-child(-n+2) { border-bottom: none; }
.life-price-item .n { color: var(--ink-2); flex: none; }
.life-price-item .p { color: var(--ink); font-weight: 650; white-space: nowrap; }
.life-price-item .p i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 400;
  margin: 0 1px 0 2px;
}
.life-price-note {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 6px;
  border-top: 1px dashed #e4efe8;
  padding-top: 6px;
}

.life-note {
  background: #f7f8f8;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 18px;
}
.life-note-t { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.life-note p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #8a9096;
  margin: 8px 0 0;
}

/* 生活栏目详情：长文阅读，行距放到 1.85，段距拉大 */
.life-dhead {
  padding: 24px 20px 22px;
  border-radius: 0 0 20px 20px;
}
.life-dhead-emoji { font-size: 34px; line-height: 1; }
.life-dhead-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -0.3px;
}
.life-dhead-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; }
.life-dhead-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.life-dhead-badge {
  font-size: 11px;
  color: #a4650a;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  padding: 1px 7px;
}
.life-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 15px;
}
/* 小标题是段首那半句，跟正文同一段排，所以用 strong 而不是 h3（h3 会独占一行） */
.life-para-head {
  font-size: 16.5px;
  font-weight: 750;
  color: var(--green-dark);
}

/* ================================================================
   2026-11-07 会员页重排：1 加小助手 / 2 注册会员 / 3 领福利
   ================================================================ */

/* 小标题前的数字圆点。
   注意 .msec-head i 原本是那根 4px 竖条（width:4px;height:17px），
   这里要整根替换成 22px 的圆，所以选择器要写 .msec-head i.mnum-i
   把特异性提上来，否则被上面那条压住，圆点会变成一条竖线。 */
.msec-head i.mnum-i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  line-height: 22px;
  text-align: center;
  flex: none;
}

/* ---- 第 2 步：注册状态卡 ---- */
.mreg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, #12b863, #0b8f4e);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(11, 143, 78, 0.18);
}
.mreg.done {
  background: #f0faf4;
  border: 1px solid #c9ecda;
  box-shadow: none;
}
.mreg-main { flex: 1; min-width: 0; }
.mreg-title { font-size: 16px; font-weight: 700; }
.mreg.done .mreg-title { color: #14322a; }
.mreg-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}
.mreg.done .mreg-sub { color: #5a6b63; }
.mreg-arrow { flex: none; font-size: 20px; color: rgba(255, 255, 255, 0.85); }
.mreg.done .mreg-arrow { color: #9ab0a6; }

/* ---- 第 3 步：可点的福利卡 ---- */
.mperk--tap {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mperk--tap:hover { box-shadow: 0 4px 12px rgba(20, 50, 42, 0.09); }
.mperk--tap:active { transform: scale(0.99); }
.mperk-owned {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 5px;
  background: #e6f7ee;
  color: #0b7a40;
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
/* 四选一：领过任意一张后，其余三张打灰标，避免老人以为还能各领一张 */
.mperk-locked {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 5px;
  background: #f0f1f0;
  color: #8a908c;
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
.mperk-cta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: #0b7a40;
}
.mperk-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff9e8;
  color: #8a6a00;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}
.mperk-hint a { color: #0b7a40; font-weight: 650; }

/* ================================================================
   福利券弹窗
   ================================================================ */
.vc-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  z-index: 2000;
}

.vc-card {
  width: 100%;
  max-width: 330px;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: vcIn 0.18s ease-out;
}

@keyframes vcIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.vc-top {
  padding: 18px 18px 20px;
  background: linear-gradient(135deg, #12b863, #0b8f4e);
  color: #fff;
  position: relative;
}
/* 底边打一排白点，看起来像张票根 */
.vc-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 8px,
    transparent 8px, transparent 16px);
}
.vc-top-label { font-size: 11.5px; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.86); }
.vc-top-name { margin-top: 6px; font-size: 21px; font-weight: 800; line-height: 1.35; }

.vc-body { padding: 14px 18px 4px; }
.vc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f3f1;
}
.vc-row:last-child { border-bottom: none; }
.vc-k { flex: none; font-size: 12.5px; color: var(--ink-3); }
.vc-v { font-size: 13.5px; font-weight: 650; color: var(--ink); text-align: right; word-break: break-all; }
.vc-v.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 800;
  color: #0b7a40;
  letter-spacing: 2px;
}
.vc-v.on { color: #0b7a40; }
.vc-tip {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6faf8;
  font-size: 12px;
  color: #5a6b63;
  line-height: 1.75;
}

.vc-foot { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.vc-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #12b863, #0b8f4e);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.vc-btn.ghost { background: #f2f5f3; color: #4a5a52; }

/* ================================================================
   官方政策速递（2026-11-07）：权益卡内嵌政府网最新政策
   ================================================================ */
/* 外层 .life-right 从直接横排改为上下两段：
   上段 main 是原布局（emoji+文字+箭头），下段是政策条目。 */
.life-right {
  display: block;
  padding: 0;
}
.life-right-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 10px;
  text-decoration: none;
  color: inherit;
}
.life-right-news {
  border-top: 1px dashed #cbe5d6;
  margin: 0 14px;
  padding: 8px 0 10px;
}
.life-right-news-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.life-news-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 0;
  text-decoration: none;
}
.life-news-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-dark);
  position: relative;
  top: -2px;
}
.life-news-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.life-news-item:active .life-news-title,
.life-news-item:hover .life-news-title { color: var(--green-dark); }
.life-news-meta {
  flex: none;
  font-size: 11px;
  color: var(--ink-3);
  max-width: 118px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 后台 · 应用内容（五个外接应用的统一编辑器） ---- */
.adm-appchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.adm-appchip {
  padding: 8px 13px; border: 1px solid #e0ded8; border-radius: 10px;
  background: #fff; color: #3d4a44; font-size: 13.5px; cursor: pointer;
  font-family: inherit; line-height: 1.3;
}
.adm-appchip.on { background: #2E7D5B; border-color: #2E7D5B; color: #fff; }
.adm-appnote {
  font-size: 12.5px; color: #6b6b62; background: #f7f6f1;
  border-radius: 9px; padding: 9px 11px; margin-bottom: 12px; line-height: 1.65;
}
.adm-applink a { color: #2E7D5B; word-break: break-all; }
.adm-crumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: #8a8a80; margin-bottom: 10px;
}
.adm-crumb-cur { color: #3d4a44; }
.adm-secgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.adm-sec {
  border: 1px solid #e6e4dd; border-radius: 12px; background: #fff;
  padding: 12px 13px; display: flex; flex-direction: column; gap: 8px;
}
.adm-sec-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.adm-sec-emoji { font-size: 17px; }
.adm-sec-name { font-size: 14px; font-weight: 600; color: #253b31; }
.adm-sec-meta { font-size: 12.5px; color: #8a8a80; }
.adm-sec-ops { margin-top: auto; }

/* ---------- 语音导览（适老化：可点面积大、字号大、不挡底栏） ---------- */
.vce-banner {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  margin: 0 16px 14px; padding: 14px 14px; min-height: 68px;
  background: #eef7f1; border: 2px solid #b9dec8; border-radius: 14px;
  text-align: left; cursor: pointer; font-family: inherit; color: #1c3a2a;
  -webkit-tap-highlight-color: transparent;
}
.vce-banner:active { background: #dff0e5; }
.vce-banner-icon { font-size: 26px; flex: 0 0 auto; }
.vce-banner-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vce-banner-txt strong { font-size: 17px; font-weight: 700; color: #14502f; }
.vce-banner-txt small { font-size: 13px; color: #4b6a58; line-height: 1.45; }
.vce-banner-go { font-size: 26px; color: #2E7D5B; flex: 0 0 auto; }
.vce-banner-on { background: #e2f3e8; border-color: #7cc49c; }

.vce-toggle {
  position: fixed; right: 14px; bottom: 82px; z-index: 60;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; min-height: 44px; border-radius: 24px;
  background: #fff; color: #14502f; border: 2px solid #7cc49c;
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vce-toggle.vce-on { background: #1f7a4d; color: #fff; border-color: #1f7a4d; }
.vce-toggle-icon { font-size: 17px; }
.vce-toggle:active { transform: scale(.97); }

.vce-sub {
  position: fixed; left: 50%; bottom: 140px; transform: translate(-50%, 8px);
  z-index: 61; max-width: min(90vw, 560px);
  padding: 11px 16px; border-radius: 12px;
  background: rgba(28, 48, 38, .93); color: #fff;
  font-size: 15px; line-height: 1.6; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.vce-sub-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .vce-banner { margin: 0 12px 12px; width: calc(100% - 24px); padding: 12px; }
  .vce-banner-txt strong { font-size: 16px; }
  .vce-toggle { right: 10px; bottom: 78px; padding: 8px 12px; }
  .vce-sub { bottom: 130px; font-size: 14px; }
}

/* ---- 云服务：留言整理助手（只整理措辞，不回答问题） ---- */
.ai-helper { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ai-btn {
  border: 1px solid #b7e3c9; background: #f2fbf5; color: #0b7f42;
  font-size: 16px; line-height: 1.4; padding: 10px 14px; border-radius: 10px;
  cursor: pointer; font-weight: 600;
}
.ai-btn:disabled { opacity: .6; cursor: default; }
.ai-hint { font-size: 14px; color: #7a8a80; }
.ai-result {
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: #f6fbf7; border: 1px solid #d8ecdd;
}
.ai-result[hidden] { display: none; }
.ai-result-head { font-size: 15px; font-weight: 600; color: #0b7f42; margin-bottom: 8px; }
.ai-result-text { font-size: 16px; line-height: 1.8; color: #2f3d35; white-space: pre-wrap; word-break: break-word; }
.ai-result-note { font-size: 14px; color: #7a8a80; margin-top: 10px; line-height: 1.6; }
.ai-result-ops { display: flex; gap: 10px; margin-top: 12px; }
.ai-result-ops .btn { flex: 1; margin: 0; }

/* ---------------------------------------------------------------- 后台：社区服务板块 */
.ca-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.ca-tip { font-size: 13px; color: #7a8a80; line-height: 1.6; margin: 0 0 10px; }
.ca-card { display: block; padding: 12px; margin-bottom: 10px; }
.ca-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.ca-grid .adm-field { margin-bottom: 8px; }
.ca-grid .adm-label { font-size: 12px; }
.ca-grid .adm-input { font-size: 13px; min-height: 38px; padding: 8px 10px; }
.ca-grid .ca-span2 { grid-column: 1 / -1; }
.ca-id { font-size: 11px; color: #8a988e; font-weight: 400; margin-left: 6px; }
.ca-warn { font-size: 12px; color: #b25b26; background: #fff5e9; border-radius: 8px; padding: 6px 9px; margin-top: 4px; }
.ca-ops { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) { .ca-grid { grid-template-columns: 1fr; } }

/* 社区资料：社区社工自己填名称 / 电话 / 二维码 / 服务时间 */
.cp-picker { background: #f2f8f4; border: 1px solid #d7e8dd; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.cp-picker label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #385847; }
.cp-picker .adm-input { min-width: 260px; max-width: 100%; }
.cp-own, .cp-inherit { font-size: 11px; font-weight: 400; border-radius: 20px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.cp-own { color: #1b7a4b; background: #e4f5ea; }
.cp-inherit { color: #8a988e; background: #f0f2f0; }
.cp-qr-row { display: flex; gap: 12px; align-items: flex-start; }
.cp-qr-preview { width: 84px; height: 84px; object-fit: contain; border: 1px solid #e2eae4; border-radius: 10px; background: #fff; flex: none; }
.cp-qr-side { flex: 1; min-width: 0; }
.cp-qr-side input[type="file"] { font-size: 12px; margin-top: 6px; max-width: 100%; }
.cp-archive { margin-top: 22px; border-top: 1px solid #e4ebe6; padding-top: 16px; }
.cp-archive-title { font-size: 14px; font-weight: 600; color: #2c5f42; margin-bottom: 6px; }
.cp-archive-list { margin: 10px 0; }
.cp-archive-list .adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.cp-account { border: 1px solid #d7e8dd; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.cp-account-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cp-account-name b { color: #1b7a4b; margin-right: 6px; }
.cp-entry { margin-top: 10px; background: #eaf6ee; border: 1px solid #bfe3cc; border-radius: 8px; padding: 10px 12px; }
.cp-entry-label { font-size: 12px; color: #2c5f42; margin-bottom: 7px; }
.cp-entry-label b { font-size: 14px; color: #15663c; letter-spacing: .5px; }
.cp-entry-row { display: flex; gap: 8px; align-items: center; }
.cp-entry-row .cp-entry-url { flex: 1; min-width: 0; font-size: 12px; background: #fff; }
.cp-entry-row .btn { flex: none; }
.cp-flash { animation: cpflash 1.6s ease-in-out 2; }
@keyframes cpflash { 0%,100% { box-shadow: 0 0 0 0 rgba(27,122,75,0); } 50% { box-shadow: 0 0 0 4px rgba(27,122,75,.28); } }
@media (max-width: 520px) { .cp-entry-row { flex-direction: column; align-items: stretch; } }
.cp-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 520px) {
  .cp-picker label { flex-direction: column; align-items: stretch; }
  .cp-qr-row { flex-direction: column; }
  .cp-grid4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   银龄有品（网页站内页）
   版式对齐小程序有品首页：品牌横幅 → 四宫格入口 → 邻居分享 → 数据条 → 说明。
   ========================================================================== */
.yp-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 8px;
}

/* 品牌横幅 */
.yp-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #3d9765 0%, #2b7a4c 55%, #226b42 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 122, 76, 0.28);
}
.yp-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.yp-hero-t {
  position: relative;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.4px;
}
.yp-hero-d {
  position: relative;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

/* 四宫格入口 */
.yp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.yp-q {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 12px;
  min-height: 66px;
  text-align: left;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.yp-q:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 1px 2px rgba(23, 32, 27, 0.05);
}
.yp-ic {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  border-radius: 10px;
  background: var(--green-soft);
}
.yp-ic.rec { background: #e7f3ec; }
.yp-ic.tucao { background: #fdf0eb; }
.yp-ic.exp { background: #fdf1e4; }
.yp-ic.shop { background: #eaf2f9; }
.yp-qtext { min-width: 0; }
.yp-qname {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.yp-qdesc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
  white-space: nowrap;
}

/* 表单：滚到可视区时避开吸顶栏 */
.yp-form {
  margin: 2px 0 0;
  scroll-margin-top: 66px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px 14px 6px;
}
#form-box { scroll-margin-top: 66px; }

/* 分享区：标题 / 分段 / 列表 / 数据条 之间统一间距 */
#yp-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 区块标题行 */
.yp-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.yp-sec-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  padding-left: 9px;
  border-left: 3px solid var(--green);
  border-radius: 2px;
}
.yp-refresh {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--green-dark);
  padding: 6px 2px 6px 10px;
}

/* 数据条 */
.yp-stats {
  display: flex;
  text-align: center;
  padding: 14px 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #f3f9f5 0%, #fbf8f1 100%);
  border: 1px solid #e7ebe4;
}
.yp-stat { flex: 1; position: relative; }
.yp-stat + .yp-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}
.yp-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}
.yp-num-label {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 底部说明 */
.yp-tip {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--green-deep);
}

/* 服务合作登记：类别有 8 个，两列排，别按默认 .radio 平分成窄条 */
#shop-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#shop-cats .radio {
  flex: none;
  width: 100%;
  padding: 12px 8px;
  white-space: nowrap;
}
