  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  html,body { height:100%; overscroll-behavior:none; }
  body {
    font-family:"PingFang SC","Microsoft YaHei",sans-serif;
    background:#87ceeb; display:flex; flex-direction:column;
    height:100dvh; overflow:hidden; font-size:16px; color:#3e2723;
    user-select:none; -webkit-user-select:none;
  }

  /* ===== 顶部资源栏 ===== */
  .topbar {
    flex-shrink:0; display:flex; align-items:center; gap:6px;
    padding:8px 10px; padding-top:calc(8px + env(safe-area-inset-top));
    background:linear-gradient(180deg,#66a644,#7ec850);
    box-shadow:0 2px 8px rgba(0,0,0,.15); z-index:20;
  }
  .user-chip {
    display:flex; align-items:center; gap:6px; background:rgba(255,255,255,.92);
    border-radius:20px; padding:4px 12px 4px 6px; font-weight:800; font-size:14px; max-width:34vw;
  }
  .user-chip .av { width:30px; height:30px; border-radius:50%; background:#ffe0b2; display:flex; align-items:center; justify-content:center; font-size:18px; }
  .user-chip .nm { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* 等级徽标（2026-09-16）：紧贴昵称，不再塞进第二行被 max-width 截掉 */
  .user-chip .chiplv {
    flex-shrink:0; margin-left:1px; padding:0 6px; border-radius:8px;
    background:linear-gradient(135deg,#8d6e63,#5d4037); color:#ffe0b2;
    font-size:11px; font-weight:900; line-height:16px; letter-spacing:.2px;
  }
  .res { flex:1; display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
  /* 种树页资源栏排成两行（2026-09-16 峰宇需求：闪豆·杏树·杏花·杏果·杏仁 按此序，肥料放最后）
     用 grid 固定 4 列 → 7 项正好 4+3 两行，不会随字号/屏宽变成三行。
     只作用于行为赚页（.res-farm），其他页的 .res 保持原样不受影响。 */
  .res-farm {
    display:grid; grid-template-columns:repeat(4,minmax(0,auto));
    justify-content:end; align-content:center; gap:3px 5px;
  }
  .res-farm .r { padding:3px 7px; font-size:12.5px; }
  .res-farm .r small { font-size:10.5px; }
  .res .r {
    background:rgba(255,255,255,.92); border-radius:14px; padding:4px 9px;
    font-size:13px; font-weight:800; white-space:nowrap;
  }
  .res .r small { font-weight:600; color:#795548; }

  /* ===== 中央舞台 ===== */
  .stage { flex:1; position:relative; overflow:hidden; background:linear-gradient(180deg,#8ed0f0 0%,#b8e4f7 45%,#d9f2c8 70%,#a8d878 100%); }
  .sun { position:absolute; top:4%; right:6%; font-size:44px; filter:drop-shadow(0 0 14px #ffe082); animation:sunspin 24s linear infinite; }
  @keyframes sunspin { to { transform:rotate(360deg); } }
  .cloud { position:absolute; font-size:34px; opacity:.9; animation:drift 46s linear infinite; }
  .cloud.c2 { top:16%; left:-60px; animation-duration:64s; animation-delay:-20s; font-size:26px; }
  .cloud.c1 { top:7%; left:-60px; }
  @keyframes drift { from { transform:translateX(0); } to { transform:translateX(calc(100vw + 120px)); } }
  .hills { position:absolute; bottom:22%; left:0; right:0; height:12%; }
  .hills svg { width:100%; height:100%; display:block; }
  .ground {
    position:absolute; bottom:0; left:0; right:0; height:24%;
    background:linear-gradient(180deg,#c8a15a,#a97b3f);
    border-top:5px solid #8d6e4a;
  }
  .ground::before {
    content:""; position:absolute; top:-5px; left:0; right:0; height:14px;
    background:repeating-linear-gradient(90deg,#7cb342 0 18px,#8bc34a 18px 36px);
    border-radius:0 0 40% 40%/0 0 12px 12px;
  }

  /* 树容器 */
  .tree-wrap {
    position:absolute; left:50%; bottom:19%; transform:translateX(-50%);
    width:min(72vw,320px); aspect-ratio:100/108; z-index:5;
  }
  .tree-wrap svg { width:100%; height:100%; display:block; filter:drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
  .tree-wrap.grown svg { animation:sway 5s ease-in-out infinite; transform-origin:50% 100%; }
  @keyframes sway { 0%,100%{ transform:rotate(-1.2deg);} 50%{ transform:rotate(1.2deg);} }
  .stage-label {
    position:absolute; top:calc(4% + 40px); left:10px; transform:none;
    max-width:60vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    background:rgba(255,255,255,.94); border-radius:16px; padding:6px 14px;
    font-weight:900; font-size:13.5px; box-shadow:0 2px 8px rgba(0,0,0,.12); z-index:6;
    cursor:pointer;
  }
  .stage-label .up-hint { color:#e65100; }
  .quick-bar { position:absolute; top:10px; left:10px; display:flex; gap:8px; z-index:15; }
  .qchip {
    position:relative; border:none; background:rgba(255,255,255,.94); border-radius:16px;
    padding:6px 11px; font-size:12.5px; font-weight:900; color:#4e342e;
    box-shadow:0 2px 6px rgba(0,0,0,.15); display:flex; align-items:center; gap:3px;
  }
  .qchip:active { transform:scale(.94); }
  .bdg {
    position:absolute; top:-5px; right:-5px; background:#e53935; color:#fff; border-radius:9px;
    font-size:9.5px; font-weight:900; min-width:16px; height:16px; line-height:16px; padding:0 4px; display:none;
    box-shadow:0 1px 4px rgba(229,57,53,.5);
  }
  .bdg.show { display:block; }
  .plot-nav {
    position:absolute; bottom:8px; left:0; right:0; display:flex; align-items:center;
    justify-content:center; gap:14px; z-index:8;
  }
  .plot-nav button {
    border:none; background:rgba(255,255,255,.94); width:44px; height:44px; border-radius:50%;
    font-size:20px; font-weight:900; color:#5d4037; box-shadow:0 2px 8px rgba(0,0,0,.18);
  }
  .plot-dots { display:flex; gap:7px; align-items:center; background:rgba(255,255,255,.85); border-radius:14px; padding:7px 12px; }
  .pdot { width:11px; height:11px; border-radius:50%; background:#c5b39a; }
  .pdot.on { background:#e65100; transform:scale(1.28); }
  .tree-dots { position:absolute; bottom:196px; left:0; right:0; display:flex; justify-content:center; gap:5px; z-index:8; flex-wrap:wrap; padding:0 14px; }
  .tdot { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.65); border:1px solid rgba(93,64,55,.35); }
  .tdot.has { background:#fff; }
  .tdot.fruit { background:#fb8c00; }
  .tdot.on { outline:2.5px solid #e65100; outline-offset:1px; }
  .tdot .lv { position:absolute; top:-9px; left:50%; transform:translateX(-50%); font-size:7.5px; font-weight:900; color:#e65100; font-style:normal; line-height:1; text-shadow:0 1px 1px rgba(255,255,255,.8); }
  .tdot { position:relative; }

  /* 进度条 */
  /* 顶部状态条：与太阳同一条线（原位于底部操作条上方，会与按钮重叠） */
  /* 2026-09-16 峰宇需求：①文字+条尽量置顶 ②条稍短 ③更醒目。
     旧问题：top:4% 要越过半个天空才看到；0% 时整条纯白、与天空同色 → 等于隐身；
             文字只有 text-shadow，白字压在亮天空上基本糊掉。 */
  .prog-wrap {
    position:absolute; top:6px; left:10px; right:106px; transform:none;
    width:auto; z-index:9;
  }
  .prog-outer {
    height:18px; background:rgba(255,255,255,.96); border-radius:12px; overflow:hidden;
    border:2px solid #ef6c00;                       /* 橙色描边：0% 时也一眼看出这是进度条 */
    box-shadow:0 2px 8px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.6), inset 0 1px 3px rgba(0,0,0,.12);
    position:relative;
  }
  .prog-inner {
    height:100%; border-radius:12px; transition:width .35s;
    background:linear-gradient(90deg,#ffe082,#ffb300 45%,#f4511e);
    background-size:200% 100%; animation:progSheen 2.6s linear infinite;
    box-shadow:0 0 10px rgba(255,152,0,.8);
  }
  /* 0% 时不播流光、不留光晕（空条上比进度还亮会误导成"已满"） */
  .prog-inner[style*="width: 0%"], .prog-inner[style*="width:0%"] { animation:none; box-shadow:none; }
  @keyframes progSheen { 0%{background-position:0% 0;} 100%{background-position:200% 0;} }
  .prog-pct {
    position:absolute; right:7px; top:50%; transform:translateY(-50%); z-index:2;
    font-size:11px; font-weight:900; color:#5d4037; pointer-events:none;
    text-shadow:0 1px 0 rgba(255,255,255,.85);
  }
  .prog-txt {
    /* 文字在进度条上方 → 间距改成下边距（配合 farm.html 里 DOM 顺序：先文字后条） */
    /* 深色药丸底：亮天空上白字必须有底衬才读得清 */
    display:inline-block; max-width:100%; vertical-align:top;
    margin-bottom:4px; padding:2px 9px; border-radius:10px;
    background:rgba(46,28,10,.55); box-shadow:0 1px 4px rgba(0,0,0,.22);
    font-size:11.5px; font-weight:900; color:#fff; text-align:left;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    text-shadow:0 1px 2px rgba(0,0,0,.55);
  }

  .abtn.hl { animation:pulse 1.6s infinite; }
  @keyframes pulse { 0%,100%{ box-shadow:0 3px 9px rgba(0,0,0,.22);} 50%{ box-shadow:0 3px 16px rgba(255,152,0,.85);} }

  /* ===== 底部导航（行为赚/商城/视频/聊天/我的）全站彩色 + 64px ===== */
  #bottomNav {
    flex-shrink:0; display:flex; margin-top:auto;
    background:#fff; border-top:1px solid rgba(0,0,0,.06);
    padding:12px 2px calc(12px + env(safe-area-inset-bottom));
    min-height:64px; box-shadow:0 -4px 14px rgba(0,0,0,.1);
  }
  /* ⚠️ 直接挂在 <body> 下的底部导航必须 fixed + 压过整屏子页（2026-09-15 修复）
     病因：整屏子页是 `.page{position:fixed;inset:0;z-index:40}` 且背景不透明。
     导航若作为 body 的兄弟节点、又是默认的 static，就会被整屏遮罩**盖在下面** ——
     DOM 在、CSS 在、getBoundingClientRect 也正常，但用户完全看不见，只查"元素存在"
     的测试永远查不出来（本项目 应用生态/串门偷杏/人脉社区/人脉圈 四页同时中招）。
     两种正确写法（二者等价，新页面任选其一）：
       ① 把 <div id="bottomNav"></div> 放进 .page 里面（如 member.html）→ flex 子项，天然可见
       ② 放在 body 下 → 靠下面这条规则 fixed + z-index:60（如 eco/visit/community/network）
     用 `body >` 选择器限定，是为了不干扰写法①的页面（它们的导航在 .page 内部）。
     内容不会被压住：.page-b 自带 calc(84px + safe-area) 底部内边距。 */
  body > #bottomNav {
    position:fixed; left:0; right:0; bottom:0; z-index:60; margin-top:0;
  }
  /* ===== 充值加款 ===== */
  .pay-bank {
    background:linear-gradient(135deg,#1b5e20,#2e7d32); border-radius:16px; padding:14px;
    color:#fff; margin-bottom:10px; box-shadow:0 3px 10px rgba(27,94,32,.35);
  }
  .pay-bank .bnm { font-size:16px; font-weight:900; display:flex; align-items:center; gap:6px; }
  .pay-bank .brow { margin-top:8px; font-size:13px; line-height:1.7; word-break:break-all; opacity:.96; }
  .pay-bank .brow b { font-size:14.5px; letter-spacing:.5px; }
  .pay-bank .copy {
    margin-top:10px; width:100%; border:none; border-radius:12px; padding:11px; font-size:14.5px; font-weight:900;
    background:rgba(255,255,255,.94); color:#1b5e20;
  }
  .pay-tabs { display:flex; gap:8px; margin:6px 0 10px; }
  .pay-tabs button {
    flex:1; border:2px solid #e0e0e0; background:#fff; border-radius:12px; padding:10px; font-size:14.5px; font-weight:900; color:#616161;
  }
  .pay-tabs button.on { border-color:#43a047; background:#e8f5e9; color:#1b5e20; }
  .pay-qrbox { text-align:center; background:#fff; border:1px dashed #c8e6c9; border-radius:16px; padding:12px; margin-bottom:12px; }
  .pay-qrbox img { max-width:min(64vw,260px); width:100%; border-radius:10px; display:block; margin:0 auto; }
  .pay-qrbox .tip { font-size:12px; color:#795548; margin-top:6px; }
  .pay-fld { display:flex; align-items:center; gap:8px; background:#fff; border:1.5px solid #e0e0e0; border-radius:12px; padding:10px 12px; margin-bottom:8px; }
  .pay-fld .fl { flex-shrink:0; font-size:13.5px; font-weight:900; color:#4e342e; width:72px; }
  .pay-fld input { flex:1; border:none; outline:none; font-size:15px; min-width:0; background:transparent; }
  .pay-shot { display:flex; gap:10px; align-items:center; margin-bottom:8px; }
  .pay-shot .pv { width:86px; height:86px; border-radius:12px; border:1.5px dashed #a5d6a7; object-fit:cover; background:#f9fbe7; }
  .pay-go {
    width:100%; border:none; border-radius:14px; padding:14px; font-size:16px; font-weight:900; color:#fff;
    background:linear-gradient(135deg,#ff9800,#e65100); box-shadow:0 3px 10px rgba(230,81,0,.35);
  }
  .pay-status { padding:2px 8px; border-radius:8px; font-size:11.5px; font-weight:900; }
  .pay-status.pending { background:#fff3e0; color:#e65100; }
  .pay-status.approved { background:#e8f5e9; color:#2e7d32; }
  .pay-status.rejected { background:#ffebee; color:#c62828; }
  /* ===== 聊天建群 ===== */
  .chat-item { display:flex; gap:10px; align-items:center; padding:10px 4px; border-bottom:1px solid rgba(0,0,0,.05); cursor:pointer; }
  .chat-item .cav { width:46px; height:46px; border-radius:12px; background:linear-gradient(135deg,#7ec850,#4caf50); display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
  .chat-item .cnm { font-size:15px; font-weight:900; color:#3e2723; display:flex; align-items:center; gap:6px; }
  .chat-item .cnm .cnt { font-size:11px; font-weight:700; color:#8d6e63; background:rgba(0,0,0,.05); padding:1px 6px; border-radius:8px; }
  .chat-item .cls { font-size:12px; color:#8d6e63; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:200px; }
  .chat-item .ct { margin-left:auto; flex-shrink:0; font-size:11px; color:#a1887f; }
  .chat-msgs { height:52vh; overflow-y:auto; background:#f1f8e9; border-radius:14px; padding:10px; margin-bottom:8px; }
  .cmsg { display:flex; gap:8px; margin-bottom:10px; }
  .cmsg.mine { flex-direction:row-reverse; }
  .cmsg .mav { width:34px; height:34px; border-radius:10px; background:#aed581; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
  /* ---- 微信式红包卡片 ---- */
  .rpkt {
    position:relative; width:218px; margin:2px 0; cursor:pointer; overflow:hidden;
    border-radius:12px; background:linear-gradient(150deg,#f0664f 0%,#e34a3a 55%,#c72f26 100%);
    box-shadow:0 3px 10px rgba(199,47,38,.38), inset 0 1px 0 rgba(255,255,255,.22);
    animation:rpPop .32s cubic-bezier(.34,1.56,.64,1); transition:transform .12s;
    -webkit-tap-highlight-color:transparent;
  }
  .rpkt:active { transform:scale(.96); }
  @keyframes rpPop { 0%{transform:scale(.6);opacity:0} 100%{transform:scale(1);opacity:1} }
  .rpkt .rp-top { display:flex; align-items:center; gap:10px; padding:12px 12px 8px; }
  .rpkt .rp-seal {
    position:relative; width:42px; height:42px; flex-shrink:0; border-radius:50%;
    background:linear-gradient(160deg,#ffe9b8,#f7c873); display:flex; align-items:center; justify-content:center;
    box-shadow:0 2px 5px rgba(0,0,0,.22), inset 0 -2px 3px rgba(214,142,40,.5);
    animation:rpSeal 1.6s ease-in-out infinite;
  }
  .rpkt .rp-seal span { font-size:20px; filter:drop-shadow(0 1px 1px rgba(150,60,0,.4)); }
  .rpkt .rp-seal i {
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-style:normal; font-size:13px; font-weight:900; color:#a52218; text-shadow:0 1px 0 rgba(255,255,255,.5);
    animation:rpSealTxt 1.6s ease-in-out infinite;
  }
  @keyframes rpSeal { 0%,100%{transform:rotate(-6deg) scale(1)} 50%{transform:rotate(4deg) scale(1.06)} }
  @keyframes rpSealTxt { 0%,100%{opacity:1} 50%{opacity:0} }
  .rpkt .rp-greet { color:#fff; font-weight:900; font-size:14.5px; line-height:1.25; text-shadow:0 1px 2px rgba(0,0,0,.18); max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rpkt .rp-sub { color:#ffd9a8; font-size:11px; margin-top:3px; }
  .rpkt .rp-brand {
    border-top:1px solid rgba(255,255,255,.18); padding:5px 12px 7px;
    color:rgba(255,224,178,.85); font-size:10.5px; letter-spacing:.5px;
  }
  /* 流光扫过 */
  .rpkt .rp-shine {
    position:absolute; top:0; bottom:0; width:46%; left:-60%;
    background:linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
    transform:skewX(-18deg); animation:rpShine 2.8s ease-in-out infinite; pointer-events:none;
  }
  @keyframes rpShine { 0%,55%{left:-60%} 100%{left:130%} }
  .cmsg.mine .rpkt { background:linear-gradient(150deg,#ef7a52 0%,#e05a34 55%,#c43d20 100%); }
  /* 红包领取详情里的红色主卡，保持同风格 */
  .rp-show { position:relative; overflow:hidden; }
  .rp-show::after {
    content:""; position:absolute; top:0; bottom:0; width:46%; left:-60%;
    background:linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent);
    transform:skewX(-18deg); animation:rpShine 3s ease-in-out infinite; pointer-events:none;
  }
  .cmsg .mbub { max-width:72%; background:#fff; border-radius:12px; padding:8px 11px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
  .cmsg.mine .mbub { background:#c5e1a5; }
  .cmsg .mnm { font-size:11px; color:#7cb342; font-weight:900; margin-bottom:2px; }
  .cmsg.mine .mnm { text-align:right; color:#558b2f; }
  .cmsg .mtxt { font-size:14.5px; color:#33691e; word-break:break-word; line-height:1.45; }
  .cmsg .mmt { font-size:10px; color:#a5b98f; margin-top:2px; }
  .chat-input { display:flex; gap:8px; }
  .chat-input input {
    flex:1; border:1.5px solid #dcedc8; border-radius:12px; padding:12px; font-size:15px; outline:none; min-width:0;
  }
  .chat-input button {
    flex-shrink:0; border:none; border-radius:12px; padding:0 22px; font-weight:900; font-size:15px; color:#fff;
    background:linear-gradient(135deg,#7ec850,#4caf50);
  }
  .chat-back { border:none; background:none; font-weight:900; color:#2e7d32; font-size:14px; padding:4px 0; }
  #bottomNav .nv {
    flex:1; border:none; background:none; position:relative;
    display:flex; flex-direction:column; align-items:center; gap:2px;
    font-size:11px; font-weight:800; padding:8px 0 4px;
    min-height:48px;                       /* 加大命中区域：手指没那么精准也能点中 */
    justify-content:center;
    text-decoration:none; -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;             /* 消除移动端点击判定延迟：连点不会互相吞掉（"点几次才进得去"的根因之一） */
    cursor:pointer; user-select:none; -webkit-user-select:none;
    transition:color .15s, transform .15s;
  }
  #bottomNav .nv, #bottomNav .nv * { text-decoration:none !important; }
  /* 每个 tab 独立配色：按 data-k 绑定，不再用 nth-child（增删 tab 时颜色不会错位） */
  #bottomNav .nv[data-k="chat"]   { color:#07c160; } /* 聊天 · 微信绿 */
  #bottomNav .nv[data-k="farm"]   { color:#7cb342; } /* 种树 · 草绿 */
  #bottomNav .nv[data-k="video"]  { color:#ffa726; } /* 视频 · 橙 */
  #bottomNav .nv[data-k="eco"]    { color:#42a5f5; } /* 应用 · 蓝 */
  #bottomNav .nv[data-k="member"] { color:#ab47bc; } /* 我的 · 紫 */
  #bottomNav .nv .ic { font-size:23px; line-height:1.25; filter:none; opacity:1; transition:transform .15s; }
  /* 高亮态（当前页）使用更深的主色 */
  #bottomNav .nv.on { font-weight:900; }
  #bottomNav .nv[data-k="chat"].on   { color:#059648; }
  #bottomNav .nv[data-k="farm"].on   { color:#558b2f; }
  #bottomNav .nv[data-k="video"].on  { color:#ef6c00; }
  #bottomNav .nv[data-k="eco"].on    { color:#1565c0; }
  #bottomNav .nv[data-k="member"].on { color:#6a1b9a; }
  #bottomNav .nv.on .ic { transform:translateY(-2px) scale(1.08); }
  #bottomNav .nv:active .ic { transform:scale(.88); }
  /* 底部导航「聊天」未读红点（2026-09-16）：内容为空时不显示，避免空泡泡。
     .nv 已经是 position:relative，红点直接绝对定位到图标右上角。 */
  #bottomNav .navbdg {
    position:absolute; top:3px; left:50%; margin-left:2px;
    min-width:16px; height:16px; line-height:16px; box-sizing:border-box;
    padding:0 4px; border-radius:9px;
    background:#fa5151; color:#fff; font-size:10.5px; font-weight:900; text-align:center;
    box-shadow:0 1px 3px rgba(250,81,81,.5), 0 0 0 1.5px #fff;
    display:none; pointer-events:none;
  }
  #bottomNav .navbdg.show { display:block; }
  #bottomNav .nv:active { background:rgba(0,0,0,.045); border-radius:12px; }

  /* ===== 树下操作条（农场操作） ===== */
  .action-row {
    position:absolute; bottom:86px; left:0; right:0; z-index:16;
    display:flex; justify-content:center; gap:8px;
  }
  .abtn {
    width:58px; height:62px; border:none; border-radius:17px; color:#fff;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    font-size:24px; position:relative; transition:transform .08s;
    box-shadow:0 4px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4);
    border:1px solid rgba(0,0,0,.08); text-shadow:0 1px 2px rgba(0,0,0,.25);
  }
  .abtn:active { transform:scale(.9); }
  .abtn .lb { font-size:11px; font-weight:900; }
  .abtn.plant { background:linear-gradient(180deg,#7cc47f,#43a047); }
  .abtn.water { background:linear-gradient(180deg,#4fc3f7,#0288d1); }
  .abtn.fert  { background:linear-gradient(180deg,#ba68c8,#8e24aa); }
  .abtn.wall  { background:linear-gradient(180deg,#81d4fa,#1976d2); }
  .abtn.fall  { background:linear-gradient(180deg,#ffcc80,#ef6c00); }
  .abtn:disabled { filter:grayscale(.75); opacity:.6; }

  /* 底部导航由上方 #bottomNav 规则统一接管（彩色 + 64px） */

  /* ===== 抽屉面板 ===== */
  .mask { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:40; display:none; }
  .mask.open { display:block; }
  .sheet {
    position:fixed; left:0; right:0; bottom:0; z-index:50; background:#fffaf0;
    border-radius:22px 22px 0 0; max-height:76dvh; display:none; flex-direction:column;
    box-shadow:0 -6px 24px rgba(0,0,0,.3); transform:translateY(100%); transition:transform .25s;
  }
  .sheet.open { display:flex; transform:translateY(0); }
  .sheet-h {
    padding:14px 16px 10px; display:flex; align-items:center; justify-content:space-between;
    border-bottom:2px solid #f0dfc0; flex-shrink:0;
  }
  .sheet-h .t { font-size:17px; font-weight:900; }
  .sheet-h .x { border:none; background:#efe3cd; width:34px; height:34px; border-radius:50%; font-size:16px; font-weight:900; color:#6d4c41; }
  .sheet-b { overflow-y:auto; padding:12px 14px; padding-bottom:calc(14px + env(safe-area-inset-bottom)); flex:1; }

  .task { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #f0dfc0; border-radius:14px; padding:10px; margin-bottom:9px; }
  .task .tico { font-size:28px; flex-shrink:0; width:46px; height:46px; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#f7f4ea; }
  .task .tico img { width:100%; height:100%; object-fit:cover; display:block; }
  .task .tinf { flex:1; min-width:0; }
  .task .tnm { font-weight:900; font-size:14.5px; }
  .task .tds { font-size:12px; color:#9a8a6e; margin-top:2px; }
  .task .trew { font-size:12px; color:#e65100; font-weight:800; margin-top:3px; }
  .tbar { height:7px; background:#efe3cd; border-radius:5px; margin-top:4px; overflow:hidden; }
  .tbar i { display:block; height:100%; background:linear-gradient(90deg,#ffb74d,#fb8c00); border-radius:5px; }
  .tbtn { border:none; border-radius:10px; padding:9px 13px; font-weight:900; font-size:13.5px; background:#ffb300; color:#4e2600; flex-shrink:0; }
  .tbtn:disabled { background:#e0d5c0; color:#a08e74; }
  .tbtn.done { background:#c8b896; color:#fff; }

  .day { display:inline-block; background:#fff; border:2px solid #f0dfc0; border-radius:10px; padding:6px 4px; text-align:center; margin:2px; width:44px; }
  .day.done { background:#e8f5e9; border-color:#a5d6a7; }
  .day.today { background:#fff3e0; border-color:#ff9800; transform:scale(1.08); }
  .day .d { font-size:11px; font-weight:900; }
  .day .r { font-size:10px; color:#e65100; font-weight:700; line-height:1.4; }

  .good { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #f0dfc0; border-radius:14px; padding:10px; margin-bottom:9px; }
  .good .icon { font-size:30px; flex-shrink:0; }
  .good .nm { font-weight:900; font-size:14.5px; }
  .good .ds { font-size:12px; color:#9a8a6e; }
  .good .pr { font-weight:900; color:#e65100; font-size:14px; margin-top:2px; }
  .good button { border:none; border-radius:10px; padding:9px 14px; font-weight:900; background:#e65100; color:#fff; flex-shrink:0; font-size:13.5px; }

  .friend { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #f0dfc0; border-radius:14px; padding:10px; margin-bottom:9px; }
  .friend .avatar { font-size:28px; flex-shrink:0; }
  .friend .fname { font-weight:900; font-size:14.5px; }
  .friend .fdesc { font-size:12px; color:#9a8a6e; margin-top:2px; }
  .friend .dog { font-size:10px; background:#ffe0b2; color:#e65100; border-radius:8px; padding:1px 6px; font-weight:900; }

  .log-item { display:flex; gap:8px; background:#fff; border-radius:10px; padding:8px 10px; margin-bottom:6px; font-size:13px; align-items:baseline; }
  .log-item .t { margin-left:auto; color:#bca88a; font-size:11px; flex-shrink:0; }
  .hint { text-align:center; color:#bca88a; font-size:13px; padding:20px 0; }
  .sec-t { font-weight:900; font-size:14px; color:#6d4c41; margin:10px 0 8px; }

  /* 好友家树列表 */
  .ftree { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #f0dfc0; border-radius:14px; padding:9px 10px; margin-bottom:8px; }
  .ftree .st { font-size:26px; flex-shrink:0; }
  .ftree .inf { flex:1; font-size:13px; font-weight:800; }
  .ftree .inf small { display:block; font-weight:600; color:#9a8a6e; font-size:11.5px; }

  /* Toast */
  #toast {
    position:fixed; top:32%; left:50%; transform:translateX(-50%) scale(.9);
    background:rgba(62,39,35,.94); color:#fff; padding:12px 20px; border-radius:14px;
    font-size:14.5px; font-weight:800; z-index:99; opacity:0; pointer-events:none;
    transition:all .25s; max-width:82vw; text-align:center; line-height:1.5;
  }
  #toast.show { opacity:1; transform:translateX(-50%) scale(1); }

  /* 飘字 */
  .fly { position:fixed; font-size:22px; font-weight:900; z-index:98; pointer-events:none; animation:flyup 1s forwards; }
  @keyframes flyup { from { opacity:1; transform:translateY(0);} to { opacity:0; transform:translateY(-70px);} }

  /* 登录弹层 */
  .ovl { position:fixed; inset:0; background:rgba(46,26,10,.6); z-index:60; display:none; align-items:center; justify-content:center; padding:24px; }
  .ovl.open { display:flex; }
  .login-box { background:#fffaf0; border-radius:20px; padding:22px 20px; width:100%; max-width:360px; }
  .login-box h2 { text-align:center; margin-bottom:4px; font-size:20px; }
  .login-box h2.lg-brand { display:flex; align-items:center; justify-content:center; gap:7px; }
  .login-box h2.lg-brand img { width:30px; height:30px; display:block; flex:none; }
  .login-box h2.lg-brand span { line-height:1.15; }
  .login-box .sub { text-align:center; font-size:12.5px; color:#9a8a6e; margin-bottom:14px; }
  .tabs { display:flex; gap:8px; margin-bottom:12px; }
  .tabs button { flex:1; border:none; background:#efe3cd; padding:10px; border-radius:12px; font-weight:900; font-size:15px; color:#8d6e63; }
  .tabs button.on { background:#ff9800; color:#fff; }
  .fld { margin-bottom:10px; }
  .fld input { width:100%; border:2px solid #e0d5c0; border-radius:12px; padding:12px 14px; font-size:15px; background:#fff; }
  .lg-go { width:100%; border:none; background:linear-gradient(180deg,#ff9800,#e65100); color:#fff; font-weight:900; font-size:16px; padding:13px; border-radius:12px; margin-top:4px; }
  .msg { text-align:center; font-size:13px; min-height:18px; margin-top:8px; font-weight:800; }
  .msg.ok { color:#2e7d32; } .msg.bad { color:#c62828; }
  .pc-link { text-align:center; margin-top:10px; font-size:12.5px; }
  .pc-link a { color:#2f7d32; }

  /* ===== 独立页面（商城 / 聊天 / 我的） ===== */
  .page {
    position:fixed; inset:0; z-index:40; background:#f4f9ec;
    display:none; flex-direction:column;
  }
  .page.open { display:flex; }
  .page-h {
    display:flex; align-items:center; gap:10px; flex-shrink:0;
    padding:10px 12px; padding-top:calc(10px + env(safe-area-inset-top));
    background:linear-gradient(180deg,#66a644,#7ec850); color:#fff;
    font-weight:900; font-size:16px; box-shadow:0 2px 8px rgba(0,0,0,.15);
  }
  .page-h .bk {
    border:none; background:rgba(255,255,255,.25); color:#fff; cursor:pointer;
    border-radius:12px; padding:5px 12px; font-size:13.5px; font-weight:900;
  }
  .page-b { flex:1; overflow-y:auto; padding:10px 12px calc(84px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }
  /* 页面内列表更紧凑精致 */
  .page-b .task { padding:9px 10px; margin-bottom:7px; }
  .page-b .task .tico { width:40px; height:40px; font-size:20px; }
  .page-b .task .tnm { font-size:14.5px; }
  .page-b .task .tds { font-size:11.5px; }
  .page-b .task .tbtn { font-size:12.5px; padding:7px 12px; }
  .page-b .sec-t { font-size:13.5px; }

  /* ===== 首页右侧悬浮图标 ===== */
  .side-r {
    position:absolute; right:8px; top:26%; z-index:15;
    display:flex; flex-direction:column; gap:9px;
  }
  .side-r .sbtn {
    position:relative;
    width:42px; height:42px; border:none; cursor:pointer;
    border-radius:14px; background:rgba(255,255,255,.92);
    box-shadow:0 2px 8px rgba(0,0,0,.2); font-size:20px;
    display:flex; align-items:center; justify-content:center;
  }
  .side-r .sbtn:active { transform:scale(.92); }
  .side-r .sbtn.off { opacity:.55; filter:grayscale(.6); }

  /* 会员中心右上角设置齿轮 */
  .page-h .hgear {
    border:none; background:rgba(255,255,255,.25); color:#fff; cursor:pointer;
    width:34px; height:34px; border-radius:12px; font-size:17px; line-height:1;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    -webkit-tap-highlight-color:transparent;
  }
  .page-h .hgear:active { transform:scale(.9); }

  /* ===== 聊天（微信风格）修复与布局 ===== */
  .cmsg .mcol { flex:1; min-width:0; max-width:76%; display:flex; flex-direction:column; align-items:flex-start; }
  .cmsg.mine .mcol { align-items:flex-end; }
  .cmsg .mbub { max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; word-break:break-word; }
  .cmsg .mtxt { white-space:pre-wrap; }
  .page#pageChat { padding-top:env(safe-area-inset-top,0); }
  .page#pageChat .page-b { padding:0; }
  /* 聊天首页：铺满整屏，会话列表自适应滚动，底部导航常驻 */
  #pageChatBody.home { display:flex; flex-direction:column; overflow:hidden; height:100%; }
  #chatHome { flex:1; min-height:0; display:flex; flex-direction:column; }
  #chatMsgPane, #chatContactPane { flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  #chatMsgPane { padding:8px 0 4px; }
  #chatMsgPane > #chatRooms { background:#fff; }
  #chatMsgPane .chat-block { padding:0 12px 4px; }
  #chatMsgPane .chat-block .sec-t { padding-left:0; }
  .page#pageChat .page-b::-webkit-scrollbar, #chatMsgPane::-webkit-scrollbar, #chatContactPane::-webkit-scrollbar { width:0; height:0; }
  #pageChatBody.view { display:flex; flex-direction:column; overflow:hidden; }
  #pageChatBody > div { width:100%; box-sizing:border-box; }
  #chatView { flex:1; min-height:0; display:flex; flex-direction:column; padding:0 0 8px; }
  #chatView[style*="none"] { display:none; }
  #chatView .chat-msgs { flex:1; height:auto; min-height:0; margin-bottom:0; }
  #chatView .chat-input { flex-shrink:0; padding:8px 10px 4px; background:#f7f7f7; border-top:1px solid #e5e5e5; align-items:flex-end; }
  #chatView .chat-input input { background:#fff; border:1px solid #e0e0e0; border-radius:6px; padding:9px 10px; font-size:15px; width:100%; box-sizing:border-box; }
  #chatView .chat-input button { height:38px; padding:0 16px; }
  #chatView .chat-input .rpbtn { height:38px; width:38px; padding:0; border-radius:50%; font-size:19px; background:#fff; border:1px solid #ddd; color:#555; line-height:1; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  #chatView .chat-input #chatPlusBtn { font-size:26px; font-weight:400; color:#07c160; padding-bottom:4px; }
  /* 聊天顶部工具条 */
  .chat-top { display:flex; align-items:center; background:#ededed; border-bottom:1px solid #dcdcdc; padding:9px 10px; gap:8px; flex-shrink:0; }
  .chat-top .bk2 { border:none; background:none; font-size:21px; color:#181818; padding:0 4px; line-height:1; }
  .chat-top .ct-title { flex:1; min-width:0; text-align:center; font-size:16px; font-weight:700; color:#181818; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .chat-top .more2 { border:none; background:none; font-size:18px; color:#181818; padding:0 4px; }
  /* 微信式会话列表 / 通讯录 */
  .wx-tabs { display:flex; background:#fff; border-top:1px solid #e8e8e8; border-bottom:none; flex-shrink:0; margin-top:auto; padding-bottom:env(safe-area-inset-bottom,0); }
  .wx-tabs button { flex:1; border:none; background:none; padding:6px 0 7px; font-size:10.5px; font-weight:700; color:#888; position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; }
  .wx-tabs button .ti { font-size:21px; line-height:1.15; filter:none; opacity:.82; }
  .wx-tabs button.on { color:#07c160; }
  .wx-tabs button.on .ti { filter:none; }
  .wx-tabs button:active { background:#f5f5f5; }
  .wx-tabs .bdg { top:4px; right:auto; left:calc(50% + 9px); }
  .conv { display:flex; gap:11px; padding:13px 14px; background:#fff; border-bottom:1px solid #f0f0f0; cursor:pointer; align-items:center; }
  .conv:active { background:#f5f5f5; }
  .conv .cav2 { width:48px; height:48px; border-radius:10px; overflow:hidden; background:linear-gradient(135deg,#7ec850,#4caf50); display:flex; align-items:center; justify-content:center; font-size:25px; flex-shrink:0; }
  .conv .cav2 img { width:100%; height:100%; object-fit:cover; }
  .conv .cinfo { flex:1; min-width:0; }
  .conv .cr1 { display:flex; justify-content:space-between; gap:8px; }
  .conv .cnm2 { font-size:16px; font-weight:600; color:#111; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .conv .ct2 { font-size:11.5px; color:#b2b2b2; flex-shrink:0; }
  .conv .cls2 { font-size:13px; color:#9a9a9a; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .conv .ctag { font-size:10px; color:#8d6e63; background:rgba(0,0,0,.05); border-radius:7px; padding:1px 5px; margin-left:5px; vertical-align:1px; }
  /* ===== 会话未读红点（2026-09-16 峰宇需求：有未读消息要在聊天主界面显示红点）=====
     为什么外面要套一层 .cavw：`.conv .cav2` 自带 overflow:hidden，
     红点放在里面会被裁掉一半 —— 必须挂在它外面的相对定位容器上。 */
  .conv .cavw { position:relative; flex-shrink:0; }
  .conv .cunread {
    position:absolute; top:-6px; right:-6px; z-index:2;
    min-width:19px; height:19px; line-height:19px; box-sizing:border-box;
    padding:0 5px; border-radius:10px;
    background:#fa5151; color:#fff; font-size:11.5px; font-weight:900; text-align:center;
    box-shadow:0 1px 4px rgba(250,81,81,.55), 0 0 0 2px #fff;
    pointer-events:none;
  }
  /* 群设置 / 资料行 */
  .ci-sec { background:#fff; border-radius:12px; overflow:hidden; margin-bottom:10px; }
  .ci-row { display:flex; align-items:center; gap:10px; padding:11px 12px; border-bottom:1px solid #f2f2f2; font-size:14px; color:#333; }
  .ci-row:last-child { border-bottom:none; }
  .ci-row .lab { font-weight:700; flex-shrink:0; }
  .ci-row .val { flex:1; min-width:0; color:#888; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
  /* 群头像预览方块（群设置面板，2026-09-16） */
  .ci-row .ci-av {
    width:44px; height:44px; border-radius:10px; overflow:hidden; flex-shrink:0;
    background:linear-gradient(135deg,#7ec850,#4caf50);
    display:flex; align-items:center; justify-content:center; font-size:22px;
  }
  .ci-row .ci-av img { width:100%; height:100%; object-fit:cover; }
  .ci-row input { flex:1; min-width:0; border:1px solid #e0e0e0; border-radius:8px; padding:7px 9px; font-size:13.5px; }
  .ci-row .arr { color:#c8c8c8; }
  .ci-mems { display:flex; flex-wrap:wrap; gap:8px; padding:12px; }
  .ci-mems .mem { width:44px; text-align:center; cursor:pointer; position:relative; }
  .ci-mems .mem .mav3 { width:44px; height:44px; border-radius:8px; overflow:hidden; background:#aed581; display:flex; align-items:center; justify-content:center; font-size:22px; }
  .ci-mems .mem .mav3 img { width:100%; height:100%; object-fit:cover; }
  .ci-mems .mem .mn3 { font-size:10px; color:#888; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ci-mems .mem .kick { position:absolute; top:-6px; right:-6px; width:17px; height:17px; border-radius:50%; background:#fa5151; color:#fff; border:none; font-size:11px; line-height:17px; padding:0; }
  /* 会员中心头部（标准会员中心风） */
  .me-hero {
    background:linear-gradient(135deg,#7ec850,#4caf50);
    border-radius:18px; padding:16px 14px 12px; margin:0 0 8px;
    box-shadow:0 4px 14px rgba(76,175,80,.28); color:#fff;
  }
  .me-hero .mh-top { display:flex; align-items:center; gap:12px; }
  .me-hero .mh-av {
    width:58px; height:58px; border-radius:50%; overflow:hidden; flex-shrink:0;
    background:rgba(255,255,255,.28); display:flex; align-items:center; justify-content:center;
    font-size:30px; border:2.5px solid rgba(255,255,255,.7); cursor:pointer;
  }
  .me-hero .mh-av img { width:100%; height:100%; object-fit:cover; }
  .me-hero .mh-nm { font-size:18px; font-weight:900; letter-spacing:.5px; }
  .me-hero .mh-sub { font-size:11.5px; opacity:.92; margin-top:2px; }
  .me-hero .mh-assets {
    display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:13px;
  }
  .me-hero .mha {
    background:rgba(255,255,255,.18); border-radius:12px; padding:7px 2px 6px;
    text-align:center; backdrop-filter:blur(2px);
  }
  .me-hero .mha b { display:block; font-size:15px; font-weight:900; line-height:1.25; }
  .me-hero .mha span { font-size:10.5px; opacity:.92; }
  /* ===== 我的荣誉（会员等级页） ===== */
  .honor-hero {
    display:flex; align-items:center; gap:12px; padding:14px; border-radius:16px;
    background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%);
    border:1.5px solid #ffe082; box-shadow:0 3px 12px rgba(255,193,7,.16);
  }
  .honor-hero .hh-ic {
    width:54px; height:54px; border-radius:14px; background:#fff; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:28px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
  }
  .honor-hero .hh-inf { flex:1; min-width:0; }
  .honor-hero .hh-nm { font-size:17px; font-weight:900; color:#7a5b00; }
  .honor-hero .hh-nm small { font-size:11px; font-weight:800; color:#a3811f; }
  .honor-hero .hh-sub { font-size:12px; color:#a3811f; margin-top:3px; }
  .honor-next {
    margin:8px 0 2px; padding:9px 12px; border-radius:12px; font-size:12.5px;
    background:#f1f8e9; border:1px dashed #c5e1a5; color:#558b2f;
  }
  .honor-next b { color:#33691e; }


  /* ===== 首页山水背景 + 左侧竖排按钮 ===== */
  .stage .scene-bg {
    position:absolute; inset:0; z-index:0;
    background:url('/assets/farm-bg.jpg') center top / cover no-repeat; /* 静帧先渲染；farm.js 预载完动图后切换 /assets/farm-bg.webp */
    background-color:#d9f2c8;
  }
  .stage .hills { display:none; }
  .side-l {
    position:absolute; left:8px; top:96px; display:flex; flex-direction:column; gap:9px; z-index:9;
  }
  .side-l .lbtn {
    display:flex; flex-direction:column; align-items:center; gap:1px; width:54px; padding:7px 2px 6px;
    border:none; border-radius:14px; background:rgba(255,255,255,.93); cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:21px; transition:transform .12s;
    -webkit-tap-highlight-color:transparent;
  }
  .side-l .lbtn:active { transform:scale(.93); }
  .side-l .lbtn .lv { font-size:9.5px; font-weight:900; color:#5d4037; max-width:50px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .side-l .lbtn.up .lv { color:#e65100; }

  /* ===== 商城（拼多多风） ===== */
  .pdd-zone-h { display:flex; align-items:baseline; gap:6px; margin:12px 2px 7px; font-weight:900; font-size:15.5px; color:#3e2723; }
  .pdd-zone-h.ex { color:#e02e24; }
  .pdd-zone-h.pm { color:#ff6b00; }
  .pdd-zone-h small { font-size:10.5px; font-weight:700; color:#aaa; }
  .ggrid.pdd { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .pdd-card {
    background:#fff; border-radius:10px; overflow:hidden; position:relative; cursor:pointer;
    box-shadow:0 1px 5px rgba(0,0,0,.09); -webkit-tap-highlight-color:transparent;
  }
  .pdd-card:active { background:#fafafa; }
  .pdd-card .pcv { width:100%; aspect-ratio:1/1; background:#f7f7f7; display:flex; align-items:center; justify-content:center; font-size:46px; overflow:hidden; }
  .pdd-card .pcv img { width:100%; height:100%; object-fit:cover; display:block; }
  .pdd-card .pin { padding:6px 8px 9px; }
  .pdd-card .pnm { font-size:13px; font-weight:700; color:#222; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pdd-card .pds { font-size:10.5px; color:#999; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pdd-card .prow { display:flex; justify-content:space-between; align-items:center; margin-top:5px; }
  .ptag { font-size:9px; font-weight:800; border-radius:4px; padding:1.5px 5px; flex-shrink:0; }
  .ptag.apr { color:#fff; background:linear-gradient(90deg,#ff6b3d,#e02e24); }
  .ptag.mix { color:#e02e24; background:#ffe9e7; }
  .ptag.alm { color:#7a5b00; background:#fff3cd; }
  .pstk { font-size:10px; color:#c0c0c0; }
  .pdd-card .prow2 { display:flex; justify-content:space-between; align-items:center; margin-top:4px; }
  .ppr { font-size:17px; font-weight:900; color:#e02e24; }
  .ppr i { font-style:normal; font-size:11px; }
  .ppr em { font-style:normal; font-size:10.5px; font-weight:800; color:#ff6b3d; }
  .pbuy { border:none; background:linear-gradient(90deg,#ff7e2d,#e02e24); color:#fff; font-size:11.5px; font-weight:900; border-radius:14px; padding:5px 12px; flex-shrink:0; }
  .pbuy[disabled] { filter:grayscale(.85); opacity:.6; }

  /* ===== 会员中心交易订单 ===== */
  .ord-tabs { display:flex; gap:8px; margin:4px 0 8px; }
  .ord-tabs button {
    flex:1; border:1.5px solid #e0e0e0; background:#fff; color:#777; border-radius:12px;
    padding:8px 0; font-size:13px; font-weight:800;
  }
  .ord-tabs button.on { border-color:#4caf50; color:#2e7d32; background:#e8f5e9; }

  /* ===== 支付：三方支付图片通道 ===== */
  .pay-chans { display:flex; gap:8px; overflow-x:auto; padding:2px 0 4px; -webkit-overflow-scrolling:touch; }
  .pay-chans:empty::after { content:""; }
  .pay-codes { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; padding:2px 0 6px; }
  .pay-code { background:#fff; border:1.5px solid #eee; border-radius:12px; padding:8px; text-align:center; cursor:pointer; }
  .pay-code img { width:100%; aspect-ratio:1; object-fit:contain; border-radius:8px; background:#f9f9f9; display:block; }
  .pay-code .pcl { font-size:11px; font-weight:800; color:#555; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pay-code.wechat { border-color:#a5d6a7; }
  .pay-code.alipay { border-color:#90caf9; }
  .pay-chan {
    width:96px; flex-shrink:0; background:#fff; border:1.5px solid #eee; border-radius:10px;
    padding:6px; text-align:center; cursor:pointer;
  }
  .pay-chan img { width:84px; height:84px; object-fit:cover; border-radius:6px; background:#f6f6f6; display:block; margin:0 auto; }
  .pay-chan .pcl { font-size:10px; font-weight:800; color:#666; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pay-chan.pub { border-color:#4caf50; }
  .pay-chan.pub .pcl { color:#2e7d32; }

  /* 会员中心设置行（紧凑） */
  .set-row { display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid #f2efdf; font-size:13px; }
  .set-row:last-child { border-bottom:none; }
  .set-row .sl { width:34px; font-weight:800; color:#5d4037; flex-shrink:0; }
  .set-row .sv { flex:1; min-width:0; display:flex; align-items:center; gap:6px; }
  .set-row .sv input { flex:1; min-width:0; border:1.5px solid #e5e0c8; border-radius:9px; padding:6px 8px; font-size:12.5px; }
  .set-row .avp { width:32px; height:32px; border-radius:8px; overflow:hidden; background:#aed581; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
  .set-row .avp img { width:100%; height:100%; object-fit:cover; }
  /* ===== 商城改版：轮播 + 商品卡 ===== */
  .mcar { border-radius:14px; overflow:hidden; margin-bottom:10px; position:relative; }
  .mcar-t { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .mcar-t::-webkit-scrollbar { display:none; }
  .mcar-t .mci { flex:0 0 100%; scroll-snap-align:center; height:120px; display:flex; align-items:center; justify-content:center; position:relative; color:#fff; }
  .mcar-t .mci img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .mcar-t .mci .mci-nm { position:relative; z-index:2; font-weight:900; font-size:16px; text-shadow:0 1px 6px rgba(0,0,0,.5); }
  .mcar-t .mci .mci-pr { position:absolute; z-index:2; right:10px; bottom:8px; font-size:12.5px; font-weight:900; background:rgba(0,0,0,.45); border-radius:10px; padding:2px 9px; }
  .ggrid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
  .gcard { background:#fff; border-radius:13px; overflow:hidden; border:1.5px solid #f0dfc0; cursor:pointer; display:flex; flex-direction:column; }
  .gcard:active { transform:scale(.98); }
  .gcard .gcv { height:88px; background:linear-gradient(135deg,#ffe0b2,#ffcc80); display:flex; align-items:center; justify-content:center; font-size:38px; position:relative; overflow:hidden; }
  .gcard .gcv img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .gcard .gbg { position:absolute; top:6px; left:6px; z-index:2; background:#ff7043; color:#fff; font-size:10px; font-weight:900; border-radius:8px; padding:1px 7px; }
  .gcard .gin { padding:7px 9px 9px; }
  .gcard .gnm { font-weight:900; font-size:13.5px; color:#3e2723; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .gcard .gds { font-size:11px; color:#9a8a6e; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .gcard .gpr { font-size:13.5px; font-weight:900; color:#e65100; margin-top:4px; }
  .gcard .gpr small { font-size:10.5px; color:#8d6e63; font-weight:700; }
  .sell-tools { display:flex; gap:8px; margin:9px 0 10px; }
  .sell-tools .tbtn { flex:1; }
  /* 详情大图 */
  .gd-imgs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:12px; scrollbar-width:none; }
  .gd-imgs::-webkit-scrollbar { display:none; }
  .gd-imgs img, .gd-imgs .gd-em { flex:0 0 100%; scroll-snap-align:center; height:190px; object-fit:cover; display:flex; align-items:center; justify-content:center; font-size:64px; background:linear-gradient(135deg,#ffe0b2,#ffcc80); }
  /* 红包币种选择 */
  .rp-curs { display:flex; gap:6px; margin-bottom:9px; }
  .rp-curs button { flex:1; border:1.5px solid #f0dfc0; background:#fff; border-radius:10px; padding:7px 0; font-size:12.5px; font-weight:800; color:#8d6e63; }
  .rp-curs button.on { border-color:#e65100; background:#fff3e0; color:#e65100; }
  .rp-curs .rp-bal { display:block; font-size:10px; font-weight:900; color:#4caf50; margin-top:1px; }
  .rp-curs button.on .rp-bal { color:#e65100; }

  /* ===== 用户条：昵称 + ID 两行 ===== */
  .user-chip .uc-col { min-width:0; display:flex; flex-direction:column; line-height:1.15; }
  .user-chip .uc-col .gid { font-size:9.5px; font-weight:800; color:#8d6e63; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* ===== 视频页（仿抖音竖滑流） ===== */
  #pageVideo { background:#000; }
  .vfeed { flex:1; overflow-y:auto; scroll-snap-type:y mandatory; -webkit-overflow-scrolling:touch; }
  .vfeed-item {
    position:relative; height:100%; scroll-snap-align:start;
    display:flex; align-items:center; justify-content:center; background:#000; overflow:hidden;
  }
  .vfeed-item video { width:100%; height:100%; object-fit:contain; background:#000; }
  .vf-info { position:absolute; left:12px; bottom:18px; right:72px; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.7); pointer-events:none; }
  .vf-info .vf-author { font-weight:900; font-size:14.5px; }
  .vf-info .vf-title { font-size:13px; opacity:.95; margin-top:2px; word-break:break-word; max-height:3.6em; overflow:hidden; }
  .vf-reward {
    position:absolute; left:50%; transform:translateX(-50%); bottom:84px;
    color:#fff; font-size:12px; background:rgba(0,0,0,.4); border-radius:16px;
    padding:4px 10px 4px 4px; display:flex; align-items:center; gap:5px; pointer-events:none;
  }
  .vf-reward svg { width:34px; height:34px; flex-shrink:0; }
  .vf-reward .ring-bg { fill:rgba(0,0,0,.35); }
  .vf-rail { position:absolute; right:10px; bottom:70px; display:flex; flex-direction:column; gap:16px; align-items:center; }
  .vf-rail .vb { color:#fff; text-align:center; font-size:11px; text-shadow:0 1px 4px rgba(0,0,0,.6); }
  .vf-rail .vb .ic { display:block; font-size:28px; line-height:1.2; }
  .vf-rail .vb.liked .ic { animation:vflk .3s; }
  @keyframes vflk { 40% { transform:scale(1.35); } }
  .vf-err { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#ffcdd2; font-size:13px; }
  .vf-empty { height:100%; display:flex; align-items:center; justify-content:center; color:#b0bec5; font-size:14px; padding:0 30px; text-align:center; }

  /* ===== 内嵌视频页右侧操作栏（头像/点赞/评论/收藏/小黄车/唱片） ===== */
  .vf-rail .vb { position:relative; cursor:pointer; transition:transform .12s; }
  .vf-rail .vb:active { transform:scale(.9); }
  .vf-rail .vb .av { width:46px; height:46px; border-radius:50%; border:2px solid #fff; background:#444; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:22px; box-shadow:0 2px 6px rgba(0,0,0,.4); }
  .vf-rail .vb .av img { width:100%; height:100%; object-fit:cover; }
  .vf-rail .vb .vf-follow { position:absolute; left:50%; transform:translateX(-50%); bottom:-7px; width:20px; height:20px; background:#ff4444; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; line-height:1; }
  .vf-rail .vb.vf-cart .ic { color:#ffb300; }
  .vf-rail .vb.vf-cart .badge { position:absolute; top:-6px; right:2px; background:#ff3355; color:#fff; font-size:9px; border-radius:8px; padding:0 4px; }
  .vf-rail .vb.vf-star.on .ic { filter:drop-shadow(0 0 5px #ffd54f); }
  .vf-rail .vb.vf-music .ic { animation:vfm 3.5s linear infinite; }
  @keyframes vfm { from { transform:rotate(0); } to { transform:rotate(360deg); } }

  /* 内嵌视频页·小黄车弹层 */
  .vf-cart-pop { position:fixed; inset:0; z-index:65; display:none; }
  .vf-cart-pop.show { display:block; }
  .vf-cart-mask { position:absolute; inset:0; background:rgba(0,0,0,.45); }
  .vf-cart-card { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:18px 18px 0 0; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); max-height:62vh; overflow-y:auto; transform:translateY(100%); transition:transform .25s; z-index:2; }
  .vf-cart-pop.show .vf-cart-card { transform:translateY(0); }
  .vf-cart-hd { display:flex; justify-content:space-between; align-items:center; font-weight:900; font-size:16px; margin-bottom:12px; }
  .vf-cart-hd button { border:none; background:#efe3cd; width:32px; height:32px; border-radius:50%; font-size:15px; color:#6d4c41; }
  .vf-goods { display:flex; gap:12px; align-items:center; }
  .vf-goods .gi { width:96px; height:96px; border-radius:10px; background:#f2ece4; flex:none; display:flex; align-items:center; justify-content:center; font-size:38px; overflow:hidden; }
  .vf-goods .gi img { width:100%; height:100%; object-fit:cover; }
  .vf-goods .gn { font-size:15px; color:#222; font-weight:700; }
  .vf-goods .gp { color:#f5222d; font-size:19px; font-weight:bold; margin-top:6px; }
  .vf-buy { width:100%; margin-top:14px; border:none; border-radius:26px; padding:13px 0; font-size:16px; font-weight:800; color:#fff; background:#ff7700; }
  .vf-cart-empty { text-align:center; color:#999; padding:24px 0; }

/* ===== 模块化补充（自动生成） ===== */
/* 注意：底部导航样式已统一收口到上方 #bottomNav 规则（彩色 + 64px），请勿再用 .bottomnav / #bottomNav 灰度覆盖 */

/* ===== 聊天首页顶栏（右上角发起群聊） ===== */
.ch-top { display:flex; align-items:center; background:#fff; padding:11px 14px; border-bottom:1px solid #f0f0f0; flex-shrink:0; }
.ch-top .ch-tt { font-size:16.5px; font-weight:700; color:#181818; }
.ch-top .ch-add { margin-left:auto; border:none; background:none; font-size:23px; line-height:1; color:#181818; padding:2px 6px; cursor:pointer; }
.ch-top .ch-add:active { transform:scale(.9); }

/* ===== 发起群聊（仿微信选人） ===== */
.ng-sel { display:flex; flex-wrap:wrap; gap:6px; min-height:10px; padding:2px 0 10px; }
.ng-sel:empty { padding-bottom:2px; }
.ng-sel .chip { display:flex; align-items:center; gap:5px; background:#e8f5e9; border:1px solid #c8e6c9; border-radius:14px; padding:3px 10px 3px 4px; font-size:12px; font-weight:800; color:#33691e; }
.ng-sel .chip .cav2, .ng-row .cav2 { width:38px; height:38px; border-radius:8px; font-size:19px; }
.ng-sel .chip .cav2 { width:24px; height:24px; border-radius:50%; font-size:13px; }
.ng-sel .chip i { font-style:normal; }
.ng-row { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid #f2f2f2; cursor:pointer; }
.ng-row:active { background:#f7f7f7; }
.ng-row .cinfo { flex:1; min-width:0; }
.ng-row input[type=checkbox] { width:20px; height:20px; accent-color:#07c160; flex-shrink:0; }

/* ===== 聊天多媒体消息 ===== */
.mbub.c-media { background:transparent !important; box-shadow:none; padding:0 !important; }
.cimg { max-width:min(62vw,220px); max-height:300px; border-radius:10px; display:block; cursor:pointer; }
.cvid { max-width:min(72vw,260px); border-radius:10px; display:block; background:#000; }
.cvoice { min-width:92px; display:flex; align-items:center; gap:7px; background:#fff; border-radius:12px; padding:10px 14px; font-weight:800; font-size:14px; color:#33691e; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.cmsg.mine .cvoice { background:#c5e1a5; }
.cvoice .vplay { font-size:13px; }
.cvoice .vbar { display:flex; align-items:flex-end; gap:2px; height:14px; }
.cvoice .vbar i { width:3px; background:currentColor; border-radius:2px; opacity:.45; }
.cvoice .vbar i:nth-child(1){ height:5px; } .cvoice .vbar i:nth-child(2){ height:11px; } .cvoice .vbar i:nth-child(3){ height:8px; }
.cvoice.playing .vbar i { animation:vwave .7s ease-in-out infinite; }
.cvoice.playing .vbar i:nth-child(2){ animation-delay:.15s; } .cvoice.playing .vbar i:nth-child(3){ animation-delay:.3s; }
@keyframes vwave { 0%,100%{ transform:scaleY(.5);} 50%{ transform:scaleY(1.2);} }
.cfile { display:flex; align-items:center; gap:9px; background:#fff; border-radius:12px; padding:10px 11px 10px 13px; color:#33691e; font-weight:800; text-decoration:none; max-width:250px; box-shadow:0 1px 3px rgba(0,0,0,.08); cursor:pointer; }
.cmsg.mine .cfile { background:#c5e1a5; }
.cfile .fic { font-size:24px; flex-shrink:0; }
.cfile .fcol { flex:1; min-width:0; }
.cfile b { display:block; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:158px; }
.cfile small { display:block; color:#8a8a8a; font-weight:600; font-size:11px; margin-top:1px; }
.cfile .fdl { flex-shrink:0; width:28px; height:28px; border-radius:9px; background:rgba(0,0,0,.07); color:#33691e; display:flex; align-items:center; justify-content:center; font-size:15px; text-decoration:none; }
.cfile .fdl:active { background:rgba(0,0,0,.16); }
#imgViewer { position:fixed; inset:0; z-index:99; background:rgba(0,0,0,.92); display:none; align-items:center; justify-content:center; }
#imgViewer.open { display:flex; }
#imgViewer img { max-width:96vw; max-height:92vh; }

/* 输入区扩展：＋ 面板 / 按住说话 */
.chat-plus { display:flex; gap:10px; padding:12px 10px calc(10px + env(safe-area-inset-bottom,0)); background:#f7f7f7; border-top:1px solid #e5e5e5; flex-shrink:0; }
.chat-plus button { flex:1; background:#fff; border:1px solid #e3e3e3; border-radius:12px; padding:11px 0 9px; font-size:11.5px; font-weight:800; color:#555; display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; }
.chat-plus button:active { background:#f0f0f0; }
.chat-plus button .pi { font-size:24px; line-height:1.1; }
#chatHold { flex:1; height:38px; border:1px solid #e0e0e0; border-radius:6px; background:#fff; font-size:14.5px; font-weight:700; color:#333; text-align:center; cursor:pointer; user-select:none; -webkit-user-select:none; touch-action:none; }
#chatHold.rec { background:#ffebee; border-color:#ef5350; color:#c62828; animation:recPulse 1.2s infinite; }
@keyframes recPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(239,83,80,.35);} 50%{ box-shadow:0 0 0 8px rgba(239,83,80,0);} }

.vip-card { display:flex; gap:10px; align-items:flex-start; background:#fffdf5; border:1.5px solid #f0e6c8; border-radius:14px; padding:10px; margin-bottom:8px; }
.vip-card.vip-on { border-color:#4caf50; background:#f3faf0; }
.vip-ic { font-size:26px; line-height:1.1; }
.vip-inf { flex:1; min-width:0; }
.vip-nm { font-weight:900; color:#5d4037; font-size:14px; }
.vip-nm small { color:#a1887f; font-weight:700; }
.vip-pk { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.vp { font-size:10.5px; background:#fff; border:1px solid #eee0b8; color:#8d6e63; border-radius:8px; padding:2px 7px; }
.cur-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:10px; }
.cur-cell { background:linear-gradient(135deg,#fffdf5,#f7f3e3); border:1.5px solid #eee0b8; border-radius:14px; padding:10px; text-align:center; }
.cur-cell b { display:block; font-size:19px; font-weight:900; color:#5d4037; }
.cur-cell span { font-size:11px; color:#8d6e63; }

/* ===== 商城改版：分类宫格（2排×5个）+ 中部双区横幅 + 聊天工具栏两行 ===== */
.mall-cats {
  display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin:4px 0 10px;
}
.mall-cats button {
  border:1.5px solid #f0dfc0; background:#fffdf5; border-radius:12px;
  padding:8px 0 6px; font-size:10.5px; font-weight:900; color:#6b5946;
  display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:all .12s;
}
.mall-cats button .ci { font-size:19px; line-height:1.1; }
.mall-cats button.on { border-color:#e65100; background:#fff3e0; color:#e65100; box-shadow:0 2px 8px rgba(230,81,0,.14); }
.mall-cats button:active { transform:scale(.93); }

.mall-zonebar { display:flex; gap:8px; margin:2px 0 10px; }
.mall-zonebar button {
  flex:1; border:none; border-radius:13px; padding:11px 8px 9px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:14px; font-weight:900; color:#fff; -webkit-tap-highlight-color:transparent;
  transition:transform .12s, box-shadow .12s;
}
.mall-zonebar button .zs { font-size:10px; font-weight:800; opacity:.92; }
.mall-zonebar .zb-pm { background:linear-gradient(135deg,#ff9800,#f4511e); box-shadow:0 3px 10px rgba(244,81,30,.32); }
.mall-zonebar .zb-ex { background:linear-gradient(135deg,#ff6b6b,#e02e24); box-shadow:0 3px 10px rgba(224,46,36,.32); }
.mall-zonebar button.on { outline:2.5px solid #3e2723; outline-offset:2px; }
.mall-zonebar button:active { transform:scale(.96); }

/* 聊天工具栏两行：第一行 图片/视频/文件/红包，第二行 视频通话/收藏夹 */
.chat-plus { flex-wrap:wrap; }
.chat-plus button { flex:1 1 calc(25% - 10px); min-width:calc(25% - 10px); }
.chat-plus button.row2 { flex:1 1 calc(50% - 10px); min-width:calc(50% - 10px); }

/* ===== 桌面端适配（≥760px）：应用收为居中 520px 竖栏 ===== */
@media (min-width:760px) {
  html { background:linear-gradient(160deg,#33691e 0%,#1b5e20 55%,#0d2b07 100%); }
  body {
    max-width:520px; margin:0 auto;
    box-shadow:0 0 52px rgba(0,0,0,.5);
  }
  .page, .sheet { left:calc(50% - 260px); right:auto; width:520px; }
  #bottomNav { left:calc(50% - 260px) !important; right:auto !important; width:520px; }
  #chatPlusMenu { right:calc(50% - 260px + 10px) !important; }
  #meSetBtn { right:calc(50% - 260px + 12px) !important; }
}
