/* ============================================================
   本地生活 · 积分中心 / 积分商城
   pm-  积分中心（points / mall 页面通用）
   mg-  商城商品卡
   mc-  券卡（我的券 / 券详情）
   ============================================================ */

/* ---------- 积分资产卡 ---------- */
.pm-hero{margin:12px;padding:20px 18px 16px;border-radius:22px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#FFC96B 0%,#F5A623 52%,#EF8A16 100%);
  color:#fff;box-shadow:0 10px 26px rgba(240,140,30,.28)}
.pm-hero::after{content:'';position:absolute;right:-40px;top:-46px;width:150px;height:150px;border-radius:50%;
  background:rgba(255,255,255,.16)}
.pm-hero::before{content:'';position:absolute;left:-30px;bottom:-56px;width:120px;height:120px;border-radius:50%;
  background:rgba(255,255,255,.10)}
.pm-hero .lb{font-size:12.5px;opacity:.92;position:relative}
.pm-hero .num{font-size:40px;font-weight:800;letter-spacing:.5px;line-height:1.14;position:relative;
  text-shadow:0 3px 10px rgba(150,80,0,.18)}
.pm-hero .num small{font-size:15px;font-weight:600;margin-left:3px;opacity:.9}
.pm-hero .tip{font-size:11.5px;opacity:.9;position:relative}
.pm-hero .acts{display:flex;gap:9px;margin-top:14px;position:relative}
.pm-hero .acts a{flex:1;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  gap:5px;font-size:13px;font-weight:600;text-decoration:none}
.pm-hero .acts .p1{background:#fff;color:#C4720C;box-shadow:0 4px 12px rgba(140,70,0,.16)}
.pm-hero .acts .p2{background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.5)}

/* ---------- 签到 ---------- */
.pm-sign{margin:12px;background:var(--card);border-radius:18px;padding:15px 14px 14px;box-shadow:var(--shadow)}
.pm-sign .hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.pm-sign .hd b{font-size:15px}
.pm-sign .hd span{font-size:12px;color:var(--ink-3)}
.pm-sign .hd span em{font-style:normal;color:var(--accent);font-weight:700}
.pm-week{display:flex;gap:6px}
.pm-week .d{flex:1;min-width:0;text-align:center;border-radius:11px;padding:8px 2px 7px;
  background:#F6F8FA;border:1px solid transparent;transition:.18s}
.pm-week .d i{display:block;font-size:14px;font-style:normal;color:#B9C3CE;line-height:1.1}
.pm-week .d em{display:block;font-style:normal;font-size:10.5px;color:var(--ink-3);margin-top:3px}
.pm-week .d.on{background:linear-gradient(135deg,#FFF3DE,#FFE6BF);border-color:#FFD79A}
.pm-week .d.on i{color:#E8930F}
.pm-week .d.on em{color:#B4700A;font-weight:600}
.pm-week .d.today{box-shadow:0 0 0 2px rgba(245,166,35,.28) inset}
.pm-sign .go{margin-top:12px;width:100%;height:42px;border-radius:12px;border:0;cursor:pointer;
  font-size:14.5px;font-weight:700;color:#fff;background:var(--gold-grad);
  box-shadow:0 6px 16px rgba(240,140,30,.28);font-family:inherit}
.pm-sign .go:disabled{background:#DDE4EC;color:#96A2B0;box-shadow:none;cursor:default}
.pm-sign .go:active:not(:disabled){transform:translateY(1px)}

/* ---------- 任务列表 ---------- */
.pm-tasks{margin:0 12px 12px;background:var(--card);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.pm-task{display:flex;align-items:center;gap:11px;padding:13px 14px;border-bottom:1px solid var(--line)}
.pm-task:last-child{border-bottom:0}
.pm-task .ic{width:38px;height:38px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#FFF4E2,#FFE7C4);color:#E8930F;font-size:17px;font-weight:800}
.pm-task .tx{flex:1;min-width:0}
.pm-task .tx b{display:block;font-size:13.5px;color:var(--ink);font-weight:600}
.pm-task .tx p{font-size:11.5px;color:var(--ink-3);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-task .pt{flex:none;text-align:right;margin-right:2px}
.pm-task .pt b{display:block;font-size:14px;color:#E8930F;font-weight:800}
.pm-task .pt span{font-size:10.5px;color:var(--ink-3)}
.pm-task .bn{flex:none;height:29px;padding:0 13px;border-radius:9px;border:0;font-size:12.5px;font-weight:600;
  cursor:pointer;font-family:inherit;background:var(--brand-soft);color:var(--brand-dark);text-decoration:none;
  display:inline-flex;align-items:center}
.pm-task .bn.done{background:#F2F5F8;color:#A7B2BE;cursor:default}
.pm-task .bn.gold{background:var(--gold-grad);color:#fff;box-shadow:0 3px 9px rgba(240,140,30,.24)}

/* ---------- 积分说明 ---------- */
.pm-note{margin:0 12px 12px;padding:13px 14px;background:#FFFBF2;border:1px solid #FBEBCE;border-radius:14px;
  font-size:12px;line-height:1.9;color:#8A6B3E}
.pm-note b{display:block;font-size:12.5px;color:#7A5520;margin-bottom:3px}

/* ---------- 商城：分类 tab ---------- */
.mg-tabs{display:flex;gap:8px;padding:10px 12px 4px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mg-tabs a{flex:none;height:32px;padding:0 14px;border-radius:16px;display:flex;align-items:center;
  font-size:13px;color:var(--ink-2);background:#fff;border:1px solid var(--line-2);text-decoration:none}
.mg-tabs a.on{background:var(--brand-grad);color:#fff;border-color:transparent;font-weight:600;
  box-shadow:0 4px 12px rgba(46,125,246,.24)}

/* ---------- 商城：商品卡 ---------- */
.mg-list{margin:8px 12px 12px;display:flex;flex-direction:column;gap:10px}
.mg-item{display:flex;gap:12px;padding:12px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);
  text-decoration:none;color:inherit;position:relative;overflow:hidden}
.mg-item:active{transform:translateY(1px)}
.mg-item .thumb{width:78px;height:78px;border-radius:13px;flex:none;object-fit:cover;background:#F4F7FA}
.mg-item .thumb-ph{width:78px;height:78px;border-radius:13px;flex:none;display:flex;align-items:center;justify-content:center;
  font-size:26px;color:#fff;background:linear-gradient(135deg,#8FC0FF,#2E7DF6);font-weight:800}
.mg-item .thumb-ph.goods{background:linear-gradient(135deg,#FFC96B,#F5A623)}
.mg-item .inf{flex:1;min-width:0;display:flex;flex-direction:column}
.mg-item .inf h3{font-size:14.5px;font-weight:600;line-height:1.35;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mg-item .inf .sub{font-size:11.5px;color:var(--ink-3);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-item .inf .bt{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mg-item .price{display:flex;align-items:baseline;gap:3px;color:#E8930F}
.mg-item .price b{font-size:19px;font-weight:800;line-height:1}
.mg-item .price span{font-size:11px;color:var(--ink-3)}
.mg-item .ex{margin-left:auto;flex:none;height:29px;padding:0 13px;border-radius:9px;display:flex;align-items:center;
  font-size:12.5px;font-weight:600;color:#fff;background:var(--gold-grad);box-shadow:0 3px 9px rgba(240,140,30,.24)}
.mg-item .ex.gray{background:#E9EEF3;color:#98A5B2;box-shadow:none}
.mg-item .badge{position:absolute;right:0;top:0;padding:2px 9px;border-radius:0 0 0 11px;font-size:10.5px;
  font-weight:600;color:#fff;background:linear-gradient(135deg,#FF8A5B,#F5442F)}
.mg-item .tagline{display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border-radius:6px;font-size:10.5px;
  background:#FFF4E2;color:#C98A12;margin-right:5px}

/* ---------- 商城：详情 ---------- */
.mg-hero{margin:12px;padding:16px;background:var(--card);border-radius:18px;box-shadow:var(--shadow)}
.mg-hero .top{display:flex;gap:13px}
.mg-hero .big{width:96px;height:96px;border-radius:15px;flex:none;object-fit:cover;background:#F4F7FA}
.mg-hero .bigph{width:96px;height:96px;border-radius:15px;flex:none;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:32px;font-weight:800;background:linear-gradient(135deg,#FFC96B,#F5A623)}
.mg-hero h1{font-size:17px;font-weight:700;line-height:1.4}
.mg-hero .face{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:2px 8px;border-radius:7px;
  background:#FFF0E2;color:#E2680C;font-size:11.5px;font-weight:600}
.mg-hero .cost{margin-top:8px;display:flex;align-items:baseline;gap:5px;color:#E8930F}
.mg-hero .cost b{font-size:26px;font-weight:800;line-height:1}
.mg-hero .cost span{font-size:12px;color:var(--ink-3)}
.mg-hero .stock{font-size:12px;color:var(--ink-3);margin-top:5px}
.mg-sec{margin:0 12px 12px;padding:14px;background:var(--card);border-radius:16px;box-shadow:var(--shadow)}
.mg-sec h2{font-size:14px;font-weight:700;margin-bottom:8px;position:relative;padding-left:10px}
.mg-sec h2::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:13px;
  border-radius:2px;background:var(--brand-grad)}
.mg-sec .body{font-size:13px;line-height:1.85;color:var(--ink-2);white-space:pre-wrap;word-break:break-word}
.mg-shop{display:flex;align-items:center;gap:10px}
.mg-shop .av{width:42px;height:42px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--brand-soft);color:var(--brand-dark);font-size:16px;font-weight:700}
.mg-shop .tx{flex:1;min-width:0}
.mg-shop .tx b{display:block;font-size:13.5px}
.mg-shop .tx p{font-size:11.5px;color:var(--ink-3);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-form{display:flex;flex-direction:column;gap:10px}
.mg-form label{font-size:12.5px;color:var(--ink-2);font-weight:600}
.mg-form input,.mg-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border-radius:11px;
  border:1px solid var(--line-2);font-size:14px;font-family:inherit;background:#FBFCFD;color:var(--ink)}
.mg-form input:focus,.mg-form textarea:focus{outline:0;border-color:var(--brand);background:#fff}
/* 详情页底栏：固定在底部 tabbar 之上（根节点加 .dock，发布球自动收小） */
.page.dock{padding-bottom:158px}
.mg-bar{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:480px;z-index:55;
  bottom:calc(56px + env(safe-area-inset-bottom));
  padding:10px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);box-shadow:0 -4px 18px rgba(22,50,72,.06);
  display:flex;align-items:center;gap:11px}
.mg-bar .lp{flex:1;min-width:0;font-size:12px;color:var(--ink-3)}
.mg-bar .lp b{display:block;font-size:16px;color:#E8930F;font-weight:800}
.mg-bar button{flex:none;height:44px;padding:0 26px;border-radius:13px;border:0;font-size:15px;font-weight:700;
  color:#fff;background:var(--gold-grad);box-shadow:0 6px 16px rgba(240,140,30,.26);font-family:inherit;cursor:pointer}
.mg-bar button:disabled{background:#DDE4EC;color:#96A2B0;box-shadow:none}
.mg-bar button:active:not(:disabled){transform:translateY(1px)}

/* ---------- 券卡 ---------- */
.mc-list{margin:8px 12px 12px;display:flex;flex-direction:column;gap:11px}
.mc-card{background:var(--card);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;position:relative;
  text-decoration:none;color:inherit;display:block}
.mc-card .body{display:flex;align-items:stretch}
.mc-card .lf{flex:1;min-width:0;padding:14px 13px}
.mc-card .lf h3{font-size:14.5px;font-weight:700;line-height:1.35}
.mc-card .lf .sh{font-size:11.5px;color:var(--ink-3);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-card .lf .meta{display:flex;align-items:center;gap:8px;margin-top:9px;font-size:11.5px;color:var(--ink-3)}
.mc-card .rt{width:108px;flex:none;background:linear-gradient(135deg,#FFF6E7,#FFE9C6);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;border-left:1px dashed #F0D9AF;padding:10px 6px}
.mc-card .rt .code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;font-weight:800;
  color:#B4700A;letter-spacing:.5px}
.mc-card .rt .st{font-size:11px;color:#B4700A;opacity:.85}
.mc-card .rt.dim{background:#F4F6F8;border-left-color:#E3E8EE}
.mc-card .rt.dim .code,.mc-card .rt.dim .st{color:#9AA7B4}
.mc-card .ft{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;border-top:1px solid var(--line);
  font-size:11.5px;color:var(--ink-3)}
.mc-card .ft .go{color:var(--brand);font-weight:600}
.mc-card .used-mask{position:absolute;right:12px;top:12px;width:64px;height:64px;border-radius:50%;
  border:2px solid rgba(154,167,180,.4);display:flex;align-items:center;justify-content:center;
  color:rgba(154,167,180,.85);font-size:12px;font-weight:700;transform:rotate(-14deg)}

/* 券详情大卡 */
.mc-big{margin:12px;border-radius:20px;overflow:hidden;box-shadow:0 10px 26px rgba(240,140,30,.2)}
.mc-big .top{padding:22px 18px;background:linear-gradient(135deg,#FFC96B,#F5A623 60%,#EF8A16);color:#fff;text-align:center}
.mc-big .top h1{font-size:17px;font-weight:700}
.mc-big .top .sh{font-size:12px;opacity:.9;margin-top:4px}
.mc-big .num{margin-top:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:28px;font-weight:800;
  letter-spacing:3px;text-shadow:0 2px 8px rgba(150,80,0,.2)}
.mc-big .numl{font-size:11px;opacity:.9;margin-top:2px}
.mc-big .btm{background:#fff;padding:15px 16px}
.mc-big .row{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-2);padding:6px 0}
.mc-big .row b{color:var(--ink);font-weight:600}
.mc-big .acts{display:flex;gap:10px;margin-top:12px}
.mc-big .acts button{flex:1;height:42px;border-radius:12px;border:0;font-size:14px;font-weight:600;cursor:pointer;
  font-family:inherit}
.mc-big .acts .sec{background:#F4F7FA;color:var(--ink-2)}
.mc-big .state{padding:11px 16px;background:#FFF8E9;color:#B4700A;font-size:12.5px;text-align:center;font-weight:600}

/* 空态 / 提示条 */
.pm-empty{margin:12px;padding:34px 16px;text-align:center;background:var(--card);border-radius:18px;color:var(--ink-3);
  font-size:13px;box-shadow:var(--shadow)}
