/* =========================================================
   企业微信 (WeCom) 设计规范 · 统一样式体系
   主色 #2E7BE4 · 扁平化 · iOS 设置风分组列表
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 品牌色 */
  --primary: #2E7BE4;
  --primary-active: #1E5FB4;
  --primary-light: #EAF2FC;
  /* 语义色 */
  --success: #07C160;
  --warning: #FA9D3B;
  --danger: #FA5151;
  --danger-active: #E04040;
  /* 中性色 */
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #555555;
  --text-3: #888888;
  --text-4: #B2B2B2;
  --border: #EBEBEB;
  --border-strong: #E0E0E0;
  --mask: rgba(0, 0, 0, .5);
  /* 尺寸 */
  --nav-h: 44px;
  --tab-h: 50px;
  --radius: 8px;
  --radius-lg: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 4px rgba(0, 0, 0, .04);
  --font: "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; font-size: 17px; }
a { color: inherit; text-decoration: none; }

/* ============ 顶部导航栏 (原生风格) ============ */
.wx-nav {
  position: sticky; top: 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: #F7F7F7;
  border-bottom: 0.5px solid #C9C9C9;
  display: flex; align-items: center;
  font-size: 17px; font-weight: 600; color: #1A1A1A;
}
.wx-nav-inner {
  width: 100%; max-width: 640px; margin: 0 auto;
  height: var(--nav-h); display: flex; align-items: center;
  position: relative; padding: 0 8px;
}
.wx-nav-back {
  width: 40px; height: 100%; display: flex; align-items: center; gap: 2px;
  color: var(--primary); font-size: 16px; flex-shrink: 0;
}
.wx-nav-back svg { width: 12px; height: 20px; }
.wx-nav-title {
  position: absolute; left: 0; right: 0; text-align: center;
  pointer-events: none; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 0 56px; font-weight: 600;
}
.wx-nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
  color: var(--primary); font-size: 16px; flex-shrink: 0; padding-right: 8px;
}
.wx-nav-right:empty { display: none; }

/* ============ 页面容器 ============ */
.wx-page {
  max-width: 640px; margin: 0 auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
  min-height: 100vh; min-height: 100dvh;
}
.wx-page.no-tab { padding-bottom: calc(20px + var(--safe-bottom)); }
.wx-scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wx-scroll-x::-webkit-scrollbar { display: none; }

/* ============ 分组 / 卡片 ============ */
.wx-group {
  background: var(--card);
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.wx-group-title {
  padding: 18px 16px 8px;
  font-size: 14px; color: var(--text-3); font-weight: 400;
}
.wx-group-title:first-child { margin-top: 0; }

/* 单元格 */
.wx-cell {
  display: flex; align-items: center;
  min-height: 56px; padding: 12px 16px;
  background: var(--card); position: relative;
  font-size: 17px;
}
.wx-cell + .wx-cell::before,
.wx-group .wx-cell + .wx-cell::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0;
  border-top: 0.5px solid var(--border);
}
.wx-cell.tap:active { background: #ECECEC; }
.wx-cell .ic {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-right: 12px; color: #fff;
}
.wx-cell .ic.blue { background: #2E7BE4; }
.wx-cell .ic.green { background: #07C160; }
.wx-cell .ic.orange { background: #FA9D3B; }
.wx-cell .ic.purple { background: #7C5CFC; }
.wx-cell .ic.red { background: #FA5151; }
.wx-cell .ic.cyan { background: #14C4C4; }
.wx-cell .label { flex: 1; min-width: 0; }
.wx-cell .label .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.wx-cell .value { color: var(--text-3); font-size: 16px; max-width: 55%; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-cell .arrow { color: #C8C8C8; font-size: 20px; margin-left: 6px; flex-shrink: 0; }
.wx-cell .badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  margin-left: 8px; flex-shrink: 0;
}

/* ============ 按钮 ============ */
.wx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; border: none; border-radius: var(--radius);
  font-size: 17px; font-weight: 600; transition: background .15s, transform .1s;
  width: 100%;
}
.wx-btn:active { transform: scale(.985); }
.wx-btn-primary { background: var(--primary); color: #fff; }
.wx-btn-primary:active { background: var(--primary-active); }
.wx-btn-primary[disabled] { background: #A9C7EE; color: #fff; pointer-events: none; }
.wx-btn-default { background: #F2F2F2; color: var(--text); }
.wx-btn-default:active { background: #E5E5E5; }
.wx-btn-ghost { background: var(--card); color: var(--primary); border: 0.5px solid var(--primary); }
.wx-btn-ghost:active { background: var(--primary-light); }
.wx-btn-danger { background: var(--card); color: var(--danger); border: 0.5px solid var(--danger); }
.wx-btn-danger:active { background: #FDEBEB; }
.wx-btn-row { display: flex; gap: 12px; padding: 16px; }
.wx-btn-sm { height: 34px; font-size: 14px; padding: 0 14px; width: auto; border-radius: 6px; }

/* ============ 宫格入口 ============ */
.wx-grid {
  background: var(--card); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0; margin-top: 12px;
}
.wx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wx-grid-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 6px; transition: background .15s; border-radius: 8px;
}
.wx-grid-item:active { background: #F0F0F0; }
.wx-grid-item .g-ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; margin-bottom: 8px;
}
.wx-grid-item .g-name { font-size: 13px; color: var(--text-2); text-align: center; }

/* ============ 横幅 / Banner ============ */
.wx-banner {
  margin: 12px; border-radius: var(--radius-lg);
  padding: 18px 18px; color: #fff; position: relative; overflow: hidden;
}
.wx-banner.blue { background: linear-gradient(135deg, #3A86EE, #2E7BE4); }
.wx-banner.green { background: linear-gradient(135deg, #1EBF6E, #07C160); }
.wx-banner.gray { background: #9A9A9A; }
.wx-banner .b-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.wx-banner .b-sub { font-size: 13px; opacity: .92; }
.wx-banner .b-stat { display: flex; gap: 20px; margin-top: 14px; }
.wx-banner .b-stat .s-num { font-size: 24px; font-weight: 700; }
.wx-banner .b-stat .s-label { font-size: 12px; opacity: .85; }
.wx-banner .b-btn {
  position: absolute; right: 16px; top: 16px;
  background: rgba(255,255,255,.22); color: #fff; border: none;
  padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 600;
}

/* ============ 分段控件 ============ */
.wx-segment {
  display: flex; background: #EDEDED; border-radius: 9px;
  padding: 3px; margin: 12px 12px 0; gap: 3px;
}
.wx-segment-item {
  flex: 1; text-align: center; padding: 8px 4px; font-size: 14px;
  border-radius: 7px; color: var(--text-2); font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.wx-segment-item.active { background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wx-segment.scroll { overflow-x: auto; display: flex; }

/* ============ 进度条 ============ */
.wx-progress { height: 6px; background: #E5E5E5; border-radius: 6px; overflow: hidden; }
.wx-progress > i { display: block; height: 100%; background: var(--primary); border-radius: 6px;
  transition: width .4s ease; }

/* ============ 头像 ============ */
.wx-avatar {
  width: 48px; height: 48px; border-radius: 8px; background: #C9D6E8; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  flex-shrink: 0; overflow: hidden;
}
.wx-avatar.round { border-radius: 50%; }
.wx-avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.wx-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 标签 / 角标 ============ */
.wx-tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 4px;
  font-size: 12px; font-weight: 500; line-height: 18px;
}
.wx-tag.blue { background: var(--primary-light); color: var(--primary); }
.wx-tag.green { background: #E6F8EE; color: #07A353; }
.wx-tag.orange { background: #FEF2E2; color: #D9821A; }
.wx-tag.red { background: #FDEBEB; color: #E04040; }
.wx-tag.gray { background: #F0F0F0; color: #888; }
.wx-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============ 底部标签栏 ============ */
.wx-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #F7F7F7; border-top: 0.5px solid #C9C9C9;
  display: flex; max-width: 640px; margin: 0 auto;
}
.wx-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: #888; font-size: 11px;
  transition: color .15s;
}
.wx-tab svg { width: 24px; height: 24px; }
.wx-tab.active { color: var(--primary); }
.wx-tab .t-dot {
  position: absolute; top: 4px; right: 50%; margin-right: -16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  border: 1.5px solid #F7F7F7;
}

/* ============ 卡片内区块 ============ */
.wx-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-top: 12px; box-shadow: var(--shadow);
}
.wx-card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; }
.wx-row { display: flex; align-items: center; }
.wx-between { display: flex; align-items: center; justify-content: space-between; }
.wx-muted { color: var(--text-3); font-size: 14px; }
.wx-strong { font-weight: 600; }

/* 用户资料卡 */
.wx-profile {
  background: linear-gradient(135deg, #3A86EE, #2E7BE4);
  margin: 12px; border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 14px; color: #fff;
}
.wx-profile .p-name { font-size: 19px; font-weight: 700; }
.wx-profile .p-sub { font-size: 13px; opacity: .9; margin-top: 4px; }
.wx-profile .p-right { margin-left: auto; text-align: right; }
.wx-profile .p-weight { font-size: 26px; font-weight: 700; }
.wx-profile .p-weight-label { font-size: 12px; opacity: .85; }

/* ============ 横向食谱预览卡 ============ */
.day-card {
  width: 132px; flex-shrink: 0; background: var(--card);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.day-card .d-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.day-card .d-meal { font-size: 12px; color: var(--text-3); display: flex; gap: 4px;
  align-items: center; margin: 3px 0; }
.day-card .d-meal .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* ============ 星级评分 ============ */
.stars { display: inline-flex; align-items: center; gap: 4px; }
.star {
  font-size: 32px; color: #DCDCDC; line-height: 1; padding: 4px;
  transition: transform .12s, color .12s; -webkit-tap-highlight-color: transparent;
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
}
.star:active { transform: scale(.82); }
.star.on { color: #FF9A00; }
.star-num { font-size: 14px; color: var(--text-3); margin-left: 6px; }
.star-num b { color: #FF9A00; font-size: 16px; }

/* ============ 空状态 ============ */
.wx-empty { text-align: center; padding: 70px 24px; color: var(--text-3); }
.wx-empty .e-ic { font-size: 54px; margin-bottom: 14px; }
.wx-empty .e-title { font-size: 16px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.wx-empty .e-desc { font-size: 14px; margin-bottom: 18px; }

/* ============ Toast ============ */
.wx-toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%);
  z-index: 999; padding: 14px 22px; border-radius: 10px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 15px; font-weight: 500;
  max-width: 80%; text-align: center; animation: toastIn .25s ease;
  pointer-events: none; line-height: 1.4;
}
.wx-toast .t-ic { font-size: 34px; margin-bottom: 8px; display: block; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.9); } }

/* ============ 加载中 ============ */
.wx-loading {
  position: fixed; inset: 0; z-index: 998; background: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
}
.wx-spinner {
  width: 30px; height: 30px; border: 3px solid #E0E0E0; border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 弹窗 ============ */
.wx-mask {
  position: fixed; inset: 0; background: var(--mask); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.wx-dialog {
  background: #fff; border-radius: 14px; width: 100%; max-width: 300px;
  padding: 24px 20px 16px; text-align: center; animation: popIn .25s ease;
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } }
.wx-dialog .d-ic { font-size: 40px; margin-bottom: 10px; }
.wx-dialog .d-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.wx-dialog .d-msg { font-size: 14px; color: var(--text-3); margin-bottom: 20px; line-height: 1.4; }
.wx-dialog .d-btns { display: flex; gap: 12px; }
.wx-dialog .d-btns .wx-btn { height: 44px; }

/* ============ 底部动作面板 ============ */
.wx-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: #F2F2F2; border-radius: 14px 14px 0 0;
  padding-bottom: var(--safe-bottom);
  animation: sheetUp .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.wx-sheet-title { text-align: center; font-size: 13px; color: var(--text-3);
  padding: 14px; background: #fff; }
.wx-sheet-item {
  background: #fff; text-align: center; padding: 16px; font-size: 17px;
  color: var(--text); border-top: 0.5px solid var(--border);
}
.wx-sheet-item:active { background: #ECECEC; }
.wx-sheet-item.danger { color: var(--danger); }
.wx-sheet-cancel { background: #fff; text-align: center; padding: 16px;
  font-size: 17px; font-weight: 600; color: var(--text); margin-top: 8px; }
.wx-sheet-cancel:active { background: #ECECEC; }

/* ============ 表单 ============ */
.wx-form { background: var(--card); margin-top: 12px; border-radius: var(--radius); }
.wx-field { display: flex; align-items: center; min-height: 54px; padding: 8px 16px;
  position: relative; }
.wx-field + .wx-field::before { content: ''; position: absolute; top: 0; left: 16px; right: 0;
  border-top: 0.5px solid var(--border); }
.wx-field label { width: 92px; flex-shrink: 0; font-size: 16px; color: var(--text); }
.wx-field input, .wx-field select, .wx-field textarea {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--text); text-align: right; resize: none;
}
.wx-field textarea { text-align: left; padding: 8px 0; }
.wx-field .unit { color: var(--text-3); margin-left: 6px; font-size: 14px; }

/* 开关 */
.wx-switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.wx-switch input { display: none; }
.wx-switch .track { position: absolute; inset: 0; background: #E5E5E5; border-radius: 15px;
  transition: background .2s; }
.wx-switch .track::after { content: ''; position: absolute; top: 2px; left: 2px;
  width: 26px; height: 26px; background: #fff; border-radius: 50%; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.wx-switch input:checked + .track { background: var(--success); }
.wx-switch input:checked + .track::after { transform: translateX(20px); }

/* 图片预览 */
.wx-imgprev { position: fixed; inset: 0; background: #000; z-index: 300;
  display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px;
  animation: fadeIn .2s; }
.wx-imgprev img { max-width: 100%; max-height: 72vh; border-radius: 8px; }
.wx-imgprev .p-name { color: #fff; font-size: 16px; margin-top: 16px; }
.wx-imgprev .p-close { margin-top: 20px; background: rgba(255,255,255,.2); color: #fff;
  border: none; padding: 10px 32px; border-radius: 22px; font-size: 15px; }

/* ============ 结果可视化 ============ */
.rank-row { margin-bottom: 16px; }
.rank-row:last-child { margin-bottom: 0; }
.rank-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; margin-bottom: 6px; }
.rank-head .r-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; flex: 1; min-width: 0; }
.rank-head .r-score { color: var(--primary); font-weight: 700; margin-left: 10px; }
.rank-bar { height: 8px; background: #EEF1F6; border-radius: 8px; overflow: hidden; }
.rank-bar > i { display: block; height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, #5A9BF0, #2E7BE4); transition: width .5s; }
.rank-bar > i.top { background: linear-gradient(90deg, #FFC15A, #FF9A00); }

/* 排行榜奖牌 */
.medal { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700;
  margin-right: 8px; color: #fff; flex-shrink: 0; }
.medal.g1 { background: #FF9A00; } .medal.g2 { background: #9AA7B5; } .medal.g3 { background: #CD7F3A; }

/* ============ 骨架屏 (首屏/列表加载占位，避免 CLS) ============ */
.wx-skeleton { padding: 12px; }
.sk-block { background: var(--card); border-radius: var(--radius); margin-bottom: 12px;
  padding: 16px; overflow: hidden; }
.sk-line { height: 14px; border-radius: 7px; margin: 8px 0;
  background: linear-gradient(90deg, #EEE 25%, #F5F5F5 37%, #EEE 63%);
  background-size: 400% 100%; animation: skShine 1.3s ease infinite; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.sk-avatar { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(90deg, #EEE 25%, #F5F5F5 37%, #EEE 63%);
  background-size: 400% 100%; animation: skShine 1.3s ease infinite; }
@keyframes skShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ============ 懒加载图片 (loading=lazy + 占位底色，防抖动) ============ */
.lazy-img { background: #F0F0F0; min-height: 80px; }
.lazy-img.loaded { background: transparent; }
img.lazy { opacity: 0; transition: opacity .3s; }
img.lazy.loaded { opacity: 1; }

/* ============ 下拉刷新 ============ */
.wx-ptr { height: 0; overflow: hidden; text-align: center; color: var(--text-3);
  font-size: 13px; transition: height .2s; }
.wx-ptr.show { height: 44px; line-height: 44px; }
.wx-ptr .ptr-ic { display: inline-block; }
.wx-ptr.loading .ptr-ic { animation: spin .8s linear infinite; }

/* ============ 全局错误提示条 ============ */
.wx-errorbar { background: #FDEBEB; color: #E04040; font-size: 13px;
  padding: 10px 16px; text-align: center; }
.wx-errorbar button { background: transparent; border: none; color: #E04040;
  text-decoration: underline; font-size: 13px; margin-left: 8px; }

/* ============ 操作结果页 (流程终结反馈) ============ */
.wx-result { text-align: center; padding: 64px 32px 32px; }
.wx-result .r-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff;
  background: var(--success); animation: popIn .3s ease; }
.wx-result.fail .r-ic { background: var(--danger); }
.wx-result .r-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.wx-result .r-desc { font-size: 14px; color: var(--text-3); margin-bottom: 28px; line-height: 1.5; }

/* ============ 离线/降级提示 ============ */
.wx-offline-tip { position: fixed; top: calc(var(--nav-h) + var(--safe-top)); left: 0; right: 0;
  z-index: 150; background: #FFF7E6; color: #D9821A; font-size: 13px;
  text-align: center; padding: 8px; }

/* ============ 触控热区保障 (≥48px) ============ */
.wx-tab, .wx-grid-item, .star, .wx-nav-back, .wx-sheet-item, .wx-btn-sm { min-height: 48px; }

/* ============ 辅助 ============ */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.px12 { padding-left: 12px; padding-right: 12px; }
.hidden { display: none !important; }
.txt-center { text-align: center; }
.divider { height: 0.5px; background: var(--border); margin: 0 16px; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ PC 端适配（企业微信 PC 内嵌浏览器 / 系统浏览器） ============ */
@media (min-width: 720px) {
  body { background: #EDEDED; }
  .wx-nav, .wx-tabbar, .wx-page { max-width: 480px; }
  .wx-page {
    background: #F5F5F5; margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04);
    min-height: 100vh; min-height: 100dvh;
  }
  /* 管理后台在 PC 上放宽，利用横向空间 */
  .admin-wide .wx-page { max-width: 960px; }
  .admin-wide .wx-nav { max-width: 960px; }
  .admin-wide .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (min-width: 720px) {
    .admin-wide .grid-2 > * { margin-top: 0; }
  }
}
