/* ============ 中山市客家商会 · 新H5用户端（政务蓝） ============ */
:root{
  --primary:#2563eb; --primary-2:#1d4ed8; --primary-soft:#e8f0fe;
  --red:#d63b31; --red-soft:#fdeceb;
  --gold:#d4a24c; --gold-soft:#faf3e4;
  --bg:#f5f7fa; --card:#ffffff; --line:#e8ecf2;
  --text:#1f2937; --text2:#6b7280; --text3:#9ca3af;
  --radius:14px; --shadow:0 2px 10px rgba(30,60,120,.06);
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;border:none;background:none;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:14px;outline:none;border:1px solid var(--line);border-radius:10px;padding:11px 12px;width:100%;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.hidden{display:none!important}

/* ---------- 顶栏 ---------- */
.page{min-height:100vh;padding-bottom:calc(64px + var(--sab));display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 8px;background:linear-gradient(135deg,#1e5aa8,#2563eb);color:#fff}
.topbar .tb-back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff}
.topbar .tb-title{flex:1;text-align:center;font-size:17px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.topbar .tb-right{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#fff}
.topbar .tb-right:empty{width:0}

/* ---------- 底部导航 ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;background:#fff;border-top:1px solid var(--line);padding-bottom:var(--sab);box-shadow:0 -2px 12px rgba(0,0,0,.04)}
.tabbar .tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 6px;color:var(--text3);font-size:11px}
.tabbar .tab i{font-size:21px;font-style:normal;line-height:1}
.tabbar .tab.on{color:var(--primary);font-weight:600}

/* ---------- 首页 ---------- */
.hd{background:linear-gradient(150deg,#1e5aa8,#2563eb 55%,#3b82f6);color:#fff;padding:14px 16px 0;position:relative}
.hd .hd-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px}
.hd .hd-name{font-size:19px;font-weight:700;letter-spacing:.5px}
.hd .hd-sub{font-size:11px;opacity:.85;margin-top:2px}
.hd .hd-btn{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:999px;padding:5px 14px;font-size:12px}
.hd .banner{margin:0 -16px}
.hd .banner img{width:100%;height:120px;object-fit:cover}
.banner-dots{display:flex;justify-content:center;gap:5px;padding:8px 0 10px}
.banner-dots i{width:6px;height:6px;border-radius:99px;background:rgba(255,255,255,.45);transition:.2s}
.banner-dots i.on{width:16px;background:#fff}
.party-banner{margin:0 12px 12px;border-radius:12px;overflow:hidden;position:relative;box-shadow:0 3px 12px rgba(214,59,49,.25)}
.party-banner img{width:100%;height:86px;object-fit:cover}
.party-banner .pb-tag{position:absolute;left:10px;top:10px;background:linear-gradient(90deg,#d63b31,#e5484d);color:#fff;font-size:12px;font-weight:600;padding:3px 12px;border-radius:999px}
.grid8{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#fff;padding:14px 6px 16px;margin:12px;border-radius:var(--radius);box-shadow:var(--shadow)}
.grid8 .g8{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 2px;font-size:12px;color:var(--text)}
.grid8 .g8 .ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;font-style:normal}
.g8 .ic.i1{background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff}
.g8 .ic.i2{background:linear-gradient(135deg,#0ea5e9,#38bdf8);color:#fff}
.g8 .ic.i3{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff}
.g8 .ic.i4{background:linear-gradient(135deg,#d63b31,#f87171);color:#fff}
.g8 .ic.i5{background:linear-gradient(135deg,#dc2626,#f87171);color:#fff}
.g8 .ic.i6{background:linear-gradient(135deg,#10b981,#34d399);color:#fff}
.g8 .ic.i7{background:linear-gradient(135deg,#8b5cf6,#a78bfa);color:#fff}
.g8 .ic.i8{background:linear-gradient(135deg,#06b6d4,#22d3ee);color:#fff}
.sect{margin:12px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.sect .s-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px 10px}
.sect .s-title{font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.sect .s-title::before{content:"";width:4px;height:15px;border-radius:3px;background:linear-gradient(180deg,#2563eb,#60a5fa)}
.sect .s-more{font-size:12px;color:var(--text2)}
.act-card{margin:0 12px 14px;border-radius:12px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.act-card .ac-img{position:relative;height:120px;background:linear-gradient(135deg,#d63b31,#f59e0b)}
.act-card .ac-img img{width:100%;height:100%;object-fit:cover}
.act-card .ac-img .ac-tag{position:absolute;right:10px;top:10px;padding:2px 10px;border-radius:999px;font-size:12px;color:#fff}
.act-card .ac-tag.go{background:var(--primary)}
.act-card .ac-tag.end{background:#9ca3af}
.act-card .ac-tag.wait{background:#f59e0b}
.act-card .ac-body{padding:12px 14px 14px}
.act-card .ac-title{font-size:15px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.act-card .ac-time{font-size:12px;color:var(--text2);margin-top:6px}
.act-card .ac-meta{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:var(--text2)}
.act-card .ac-meta .pill{padding:2px 8px;border-radius:999px;background:var(--primary-soft);color:var(--primary-2)}
.album-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 14px 14px}
.album-grid .ag{position:relative;border-radius:8px;overflow:hidden}
.album-grid .ag img{width:100%;height:64px;object-fit:cover}
.album-grid .ag .ag-n{position:absolute;right:3px;bottom:3px;background:rgba(0,0,0,.55);color:#fff;font-size:10px;padding:1px 5px;border-radius:6px}
.album-grid .ag .ag-t{position:absolute;left:0;right:0;bottom:0;padding:12px 4px 3px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.6));color:#fff;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.news-list{padding:0 14px 14px}
.news-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.news-item:last-child{border-bottom:none}
.news-item .ni-img{width:112px;height:74px;border-radius:8px;background:#eef1f6;flex-shrink:0;overflow:hidden}
.news-item .ni-img img{width:100%;height:100%;object-fit:cover}
.news-item .ni-body{flex:1;min-width:0;display:flex;flex-direction:column}
.news-item .ni-title{font-size:14px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-item .ni-meta{display:flex;align-items:center;gap:8px;margin-top:auto;font-size:11px;color:var(--text3)}
.news-item .ni-meta .vi{margin-left:auto;display:flex;align-items:center;gap:3px}

/* ---------- 通用列表 ---------- */
.list-page{padding:0 12px 20px}
.list-search{display:flex;gap:8px;padding:12px 0}
.list-search input{flex:1}
.list-search .ls-btn{width:64px;border-radius:10px;background:var(--primary);color:#fff;font-size:14px}
.list-tabs{display:flex;gap:0;margin-bottom:12px;background:#fff;border-radius:10px;padding:4px;overflow-x:auto}
.list-tabs::-webkit-scrollbar{display:none}
.list-tabs .lt{padding:6px 16px;border-radius:8px;font-size:13px;color:var(--text2);white-space:nowrap}
.list-tabs .lt.on{background:var(--primary);color:#fff;font-weight:600}
.tip-end{padding:16px;text-align:center;color:var(--text3);font-size:12px}

/* ---------- 详情 ---------- */
.detail{padding:0 0 20px;background:#fff;min-height:60vh}
.detail .dt-cover{height:200px;background:linear-gradient(135deg,#d63b31,#f59e0b);position:relative}
.detail .dt-cover img{width:100%;height:100%;object-fit:cover}
.detail .dt-body{padding:16px}
.detail .dt-title{font-size:18px;font-weight:700;line-height:1.5}
.detail .dt-meta{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12px;color:var(--text3);padding-bottom:14px;border-bottom:1px solid var(--line)}
.detail .dt-content{margin-top:16px;font-size:15px;line-height:1.85;color:#333;word-break:break-word}
.detail .dt-content p{margin:0 0 12px}
.detail .dt-content img{border-radius:8px;margin:8px 0}
.detail .dt-content h1,.detail .dt-content h2,.detail .dt-content h3{margin:14px 0 8px;font-size:16px}
.pb-bar{position:fixed;left:0;right:0;bottom:0;z-index:55;display:flex;background:#fff;border-top:1px solid var(--line);padding:10px 12px calc(10px + var(--sab));gap:10px}
.pb-bar .pb-btn{flex:1;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;font-size:15px}
.pb-btn.primary{background:var(--primary);color:#fff;font-weight:600}
.pb-btn.ghost{background:var(--primary-soft);color:var(--primary-2)}
.pb-btn.red{background:var(--red);color:#fff;font-weight:600}
.pb-btn.gray{background:#eef1f6;color:var(--text2)}
.pb-bar .pb-ico{width:56px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--text2);font-size:11px}
.pb-bar .pb-ico i{font-size:20px;font-style:normal}

/* ---------- 活动详情 ---------- */
.ad-status{display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--gold-soft)}
.ad-status .st{flex:1;font-size:13px;color:#92610f}
.ad-count{display:flex;align-items:center;padding:14px 16px}
.ad-count .ac-big{font-size:20px;font-weight:700;color:var(--primary)}
.ad-count .ac-avatar{display:flex;margin-left:12px}
.ad-count .ac-avatar i{width:30px;height:30px;border-radius:99px;background:var(--primary-soft);border:2px solid #fff;margin-left:-8px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--primary-2);font-style:normal;overflow:hidden}
.ad-count .ac-avatar img{width:30px;height:30px;border-radius:99px;border:2px solid #fff;margin-left:-8px;object-fit:cover}
.info-row{display:flex;padding:12px 16px;border-bottom:1px solid var(--line)}
.info-row .ir-label{width:74px;color:var(--text2);flex-shrink:0}
.info-row .ir-val{flex:1;color:var(--text)}
.info-row .ir-btn{color:var(--primary);font-size:13px;padding:0 4px}

/* ---------- 地图 ---------- */
.map-page{position:relative;height:calc(100vh - 50px - 64px - var(--sab));overflow:hidden}
#baiduMap{width:100%;height:100%}
.map-head{position:absolute;left:10px;right:10px;top:10px;z-index:10}
.map-head .mh-tabs{display:flex;background:#fff;border-radius:10px;box-shadow:var(--shadow);overflow:hidden;width:210px}
.map-head .mh-tabs div{flex:1;text-align:center;padding:8px 0;font-size:13px;color:var(--text2)}
.map-head .mh-tabs div.on{background:var(--primary);color:#fff;font-weight:600}
.map-head .mh-search{display:flex;gap:6px;margin-top:8px}
.map-head .mh-search input{flex:1;box-shadow:var(--shadow)}
.map-head .mh-search .ms-btn{width:56px;border-radius:10px;background:var(--primary);color:#fff}
.map-filters{position:absolute;left:10px;right:10px;top:118px;z-index:10;display:flex;gap:6px;flex-wrap:wrap}
.map-filters .mf{background:#fff;border-radius:999px;padding:5px 12px;font-size:12px;color:var(--text2);box-shadow:var(--shadow)}
.map-filters .mf.on{background:var(--primary);color:#fff}
.map-filters .mf select{border:none;background:none;font-size:12px;color:inherit;padding:0;width:auto}
.map-card{position:absolute;left:10px;right:10px;bottom:14px;z-index:20;background:#fff;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.14);padding:14px 16px}
.map-card .mc-name{font-size:17px;font-weight:700}
.map-card .mc-tag{display:inline-block;margin-left:6px;font-size:11px;color:var(--primary);background:var(--primary-soft);border-radius:4px;padding:1px 6px;vertical-align:middle}
.map-card .mc-sub{font-size:13px;color:var(--text2);margin-top:6px}
.map-card .mc-dist{margin-top:6px;font-size:12px;color:var(--text3)}
.map-card .mc-btn{width:100%;margin-top:12px;height:40px;border-radius:20px;background:var(--primary);color:#fff;font-size:14px;font-weight:600}
.map-list{position:absolute;left:0;right:0;bottom:0;top:150px;z-index:15;background:#fff;border-radius:16px 16px 0 0;overflow-y:auto;display:none;padding:8px 0}
.map-list.show{display:block}
.ml-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.ml-item .ml-avatar{width:42px;height:42px;border-radius:99px;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;font-size:17px;color:var(--primary-2);flex-shrink:0;overflow:hidden}
.ml-item .ml-avatar img{width:100%;height:100%;object-fit:cover}
.ml-item .ml-body{flex:1;min-width:0}
.ml-item .ml-name{font-size:15px;font-weight:600}
.ml-item .ml-sub{font-size:12px;color:var(--text2);margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ml-item .ml-dist{font-size:12px;color:var(--text3);flex-shrink:0}

/* ---------- 供需 ---------- */
.supply-hero{background:linear-gradient(160deg,#fff,#eef4ff);padding:18px 16px;text-align:center}
.supply-hero .sh-1{color:var(--red);font-size:19px;font-weight:800}
.supply-hero .sh-2{color:var(--primary);font-size:14px;margin-top:4px;font-weight:600}
.supply-search{display:flex;gap:8px;padding:12px 12px 0}
.supply-search input{flex:1}
.supply-search .ss-btn{width:64px;border-radius:10px;background:var(--primary);color:#fff}
.supply-filters{display:flex;gap:0;padding:10px 12px;overflow-x:auto}
.supply-filters::-webkit-scrollbar{display:none}
.supply-filters .sf{background:#fff;border-radius:999px;padding:6px 14px;font-size:12px;color:var(--text2);box-shadow:var(--shadow);white-space:nowrap;margin-right:8px;flex-shrink:0}
.supply-filters .sf.on{background:var(--primary);color:#fff;font-weight:600}
.sup-card{margin:0 12px 12px;background:#fff;border-radius:12px;padding:13px 14px;box-shadow:var(--shadow);position:relative}
.sup-card .sc-title{font-size:14px;font-weight:600;line-height:1.5;padding-right:44px}
.sup-card .sc-meta{margin-top:8px;display:flex;align-items:center;font-size:11px;color:var(--text3);gap:6px}
.sup-card .sc-meta .c1{color:var(--primary-2);background:var(--primary-soft);border-radius:4px;padding:1px 6px}
.sup-card .sc-meta .c2{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sup-card .sc-tag{position:absolute;right:12px;top:12px;font-size:15px;font-weight:800}
.sup-card .sc-tag.s{color:var(--primary)}
.sup-card .sc-tag.d{color:var(--red)}
.sup-card .sc-stat{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11px;color:var(--text3)}
.sup-card .sc-stat .vi{margin-left:auto;display:flex;align-items:center;gap:3px}
.fab{position:fixed;right:16px;bottom:calc(84px + var(--sab));z-index:50;width:52px;height:52px;border-radius:99px;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:0 6px 18px rgba(37,99,235,.4)}
.fab-label{position:fixed;right:22px;bottom:calc(140px + var(--sab));z-index:50;background:rgba(31,41,55,.85);color:#fff;font-size:11px;padding:3px 10px;border-radius:999px}

/* ---------- 我的 ---------- */
.mine-hd{background:linear-gradient(150deg,#1e5aa8,#2563eb 60%,#3b82f6);padding:26px 16px 40px;color:#fff;position:relative}
.mine-hd .mh-avatar{width:66px;height:66px;border-radius:99px;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:30px;border:2px solid rgba(255,255,255,.5);overflow:hidden}
.mine-hd .mh-avatar img{width:100%;height:100%;object-fit:cover}
.mine-hd .mh-info{display:flex;align-items:center;gap:14px}
.mine-hd .mh-name{font-size:20px;font-weight:700}
.mine-hd .mh-sub{font-size:12px;opacity:.85;margin-top:3px}
.mine-hd .mh-edit{position:absolute;right:16px;top:20px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:5px 14px;font-size:12px;color:#fff}
.mine-hd .mh-points{position:absolute;left:16px;right:16px;bottom:-18px;background:#fff;border-radius:12px;box-shadow:var(--shadow);display:flex;padding:12px 0}
.mine-hd .mh-points>div{flex:1;text-align:center}
.mine-hd .mh-points .mp-n{font-size:18px;font-weight:700;color:var(--primary)}
.mine-hd .mh-points .mp-l{font-size:11px;color:var(--text3);margin-top:2px}
.mine-body{padding:30px 12px 20px}
.grid6{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 0}
.grid6 .g6{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 0;font-size:12px;color:var(--text)}
.grid6 .g6 .ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;font-style:normal;background:var(--primary-soft);color:var(--primary-2)}
.grid6 .g6:nth-child(2) .ic{background:#e0f7f1;color:#0e9f6e}
.grid6 .g6:nth-child(3) .ic{background:#fff1e0;color:#d97706}
.grid6 .g6:nth-child(4) .ic{background:#eef1ff;color:#6366f1}
.grid6 .g6:nth-child(5) .ic{background:#fdf0e8;color:#e07b39}
.grid6 .g6:nth-child(6) .ic{background:#e9f5fb;color:#0ea5e9}
.func-list{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);margin-top:12px;overflow:hidden}
.func-list .fl-item{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);font-size:14px}
.func-list .fl-item:last-child{border-bottom:none}
.func-list .fl-item .fl-arrow{margin-left:auto;color:var(--text3);font-size:16px}
.func-list .fl-item .fl-ic{margin-right:10px;font-size:18px;font-style:normal;width:24px;text-align:center}
.footer-tip{padding:24px;text-align:center;color:var(--text3);font-size:12px}

/* ---------- 表单 ---------- */
.form-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);margin:12px;padding:16px}
.form-card .fc-title{font-size:16px;font-weight:700;margin-bottom:14px}
.form-item{margin-bottom:14px}
.form-item label{display:block;font-size:13px;color:var(--text2);margin-bottom:6px}
.form-item label b{color:var(--red)}
.form-btn{width:100%;height:46px;border-radius:23px;background:var(--primary);color:#fff;font-size:16px;font-weight:600;margin-top:6px}
.form-btn:disabled{opacity:.6}
.steps{margin:12px}
.steps .st-item{display:flex;gap:12px;padding:12px 0}
.steps .st-num{width:26px;height:26px;border-radius:99px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0;margin-top:2px}
.steps .st-item.done .st-num{background:#10b981}
.steps .st-line{width:2px;background:var(--line);margin:2px 0 2px 12px;height:16px;flex-shrink:0}

/* ---------- 空态 ---------- */
.empty{padding:70px 20px;text-align:center;color:var(--text3)}
.empty .em-ic{font-size:56px;margin-bottom:12px;opacity:.4;line-height:1}
.empty .em-t{font-size:14px}
.empty .em-btn{margin-top:16px;display:inline-block;padding:8px 22px;border-radius:20px;background:var(--primary);color:#fff;font-size:13px}

/* ---------- 登录 ---------- */
.login-wrap{padding:60px 24px 30px}
.login-logo{width:72px;height:72px;border-radius:20px;background:linear-gradient(135deg,#1e5aa8,#2563eb);margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;font-weight:800}
.login-name{text-align:center;font-size:20px;font-weight:700}
.login-sub{text-align:center;font-size:12px;color:var(--text3);margin:6px 0 30px}
.login-tabs{display:flex;gap:0;margin-bottom:22px;justify-content:center}
.login-tabs div{padding:8px 26px;font-size:15px;color:var(--text2);position:relative}
.login-tabs div.on{color:var(--primary);font-weight:700}
.login-tabs div.on::after{content:"";position:absolute;left:24%;right:24%;bottom:0;height:3px;border-radius:2px;background:var(--primary)}
.link-line{text-align:center;font-size:13px;color:var(--text3);margin-top:16px}
.link-line a{color:var(--primary)}
.guest-link{display:block;text-align:center;margin-top:14px;padding:10px 0;font-size:14px;color:var(--primary);border:1px dashed var(--primary);border-radius:22px;background:var(--primary-soft);font-weight:600}
.guest-link:active{opacity:.8}

/* ---------- 弹窗/提示 ---------- */
#toast-wrap{position:fixed;left:0;right:0;top:45%;z-index:200;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.toast{background:rgba(17,24,39,.88);color:#fff;font-size:14px;padding:10px 20px;border-radius:10px;margin-bottom:8px;animation:toastIn .25s;max-width:78%;text-align:center}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;display:flex;align-items:center;justify-content:center}
#mask .m-box{width:82%;background:#fff;border-radius:16px;padding:20px;max-height:80vh;overflow-y:auto}
#mask .m-title{font-size:16px;font-weight:700;margin-bottom:12px}
.m-confirm{display:flex;gap:10px;margin-top:18px}
.m-confirm button{flex:1;height:42px;border-radius:10px;font-size:15px}
.m-confirm .mc-y{background:var(--primary);color:#fff;font-weight:600}
.m-confirm .mc-n{background:#eef1f6;color:var(--text2)}
.ctl-bar{position:fixed;left:0;right:0;bottom:0;z-index:55;background:#fff;border-top:1px solid var(--line);padding:10px 12px calc(10px + var(--sab));display:flex;gap:10px}
.ctl-bar button{flex:1;height:44px;border-radius:22px;font-size:15px;font-weight:600}
.loading{text-align:center;padding:50px 0;color:var(--text3);font-size:13px}
.loading::before{content:"";display:block;width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--primary);border-radius:99px;margin:0 auto 10px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.rich-img{width:100%!important;height:auto!important}
