:root{
  --bg:#f3f4f8; --card:#fff; --line:#ececf2;
  --primary:#fe2c55; --primary2:#ff6a3d; --cyan:#25f4ee; --dark:#161823;
  --text:#1b1c28; --muted:#8b90a0;
  --ok:#12b76a; --warn:#f79009; --danger:#f04438; --info:#2e90fa;
  --radius:16px; --shadow:0 4px 18px rgba(22,24,40,.06);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased; padding-bottom:env(safe-area-inset-bottom);
}
img{max-width:100%;display:block}
button,input,select,textarea{font-family:inherit;font-size:15px;color:inherit}
button{border:0;background:none;cursor:pointer}
.hidden{display:none !important}

/* ---------- 启动 ---------- */
.boot{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(160deg,#1b1c2e,#2f1f3d 60%,#fe2c55 160%);color:#fff;z-index:99;gap:14px}
.boot-logo{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;font-weight:800;letter-spacing:1px;
  background:linear-gradient(135deg,var(--cyan),#7af5d5);color:#111;font-size:22px;box-shadow:0 10px 30px rgba(37,244,238,.35)}
.boot-txt{opacity:.85;font-size:13px;letter-spacing:2px}

/* ---------- 登录页 ---------- */
.auth{padding:0 16px 40px;min-height:100vh;
  background:linear-gradient(175deg,#1b1c2e 0%,#2a2040 26%,#f3f4f8 26.5%,#f3f4f8 100%)}
.auth-hero{padding:44px 8px 22px;color:#fff;text-align:center}
.auth-badge{width:62px;height:62px;margin:0 auto 14px;border-radius:20px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--cyan),#7af5d5);color:#111;font-weight:800;font-size:22px;letter-spacing:1px;
  box-shadow:0 12px 30px rgba(37,244,238,.3)}
.auth-hero h1{margin:0;font-size:22px;font-weight:700;letter-spacing:.5px}
.auth-hero p{margin:6px 0 0;font-size:13px;opacity:.7}
.auth-card{margin-top:2px;padding:6px 16px 18px}
.seg{display:flex;gap:4px;background:#f1f2f7;border-radius:12px;padding:4px;margin:12px 0 16px}
.seg-btn{flex:1;padding:9px 0;border-radius:9px;font-size:14px;color:var(--muted);font-weight:600;transition:.2s}
.seg-btn.active{background:#fff;color:var(--primary);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.seg.full{background:#fff;border:1px solid var(--line);margin:0 0 12px}
.auth-form{display:flex;flex-direction:column;gap:14px}
.fld{display:block}
.fld-lb{display:block;font-size:13px;color:var(--muted);margin-bottom:7px;font-weight:600}
.fld-lb i{font-style:normal;font-size:11px;margin-left:6px;padding:1px 6px;border-radius:5px}
.fld-lb i.opt{background:#f1f2f7;color:#9aa0ae}
.fld-lb i.req{background:#ffecef;color:var(--primary)}
.fld input,.sel{width:100%;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:#fafbfd;outline:none;transition:.2s}
.fld input:focus,.sel:focus{border-color:var(--primary);background:#fff}
.sel{appearance:none;background:#fafbfd url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238b90a0' stroke-width='2'/></svg>") no-repeat right 14px center}
.tip{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.6}
.qr-picker{display:flex;gap:12px;align-items:flex-start}
.qr-box{width:104px;height:104px;flex:none;border:1.5px dashed #cfd3e0;border-radius:14px;background:#fafbfd;
  display:grid;place-items:center;overflow:hidden;position:relative;cursor:pointer}
.qr-box.big{width:130px;height:130px}
.qr-ph{font-size:12px;color:var(--muted);text-align:center;line-height:1.5}
.qr-box img{width:100%;height:100%;object-fit:cover}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin:16px 16px 0;position:relative}
.card.soft{background:#fff;border:1px solid var(--line);box-shadow:none}
.card-title{margin:0;font-size:16px;font-weight:700}
.mini-title{margin:0 0 8px;font-size:14px;font-weight:700}

/* ---------- 按钮 ---------- */
.btn{height:46px;border-radius:12px;font-weight:600;transition:.15s;display:inline-flex;align-items:center;justify-content:center}
.btn:active{transform:scale(.98)}
.btn-block{width:100%;display:flex}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;
  box-shadow:0 8px 20px rgba(254,44,85,.28)}
.btn-primary:disabled{background:#d8dbe4;box-shadow:none;color:#fff}
.btn-ghost{background:#f4f5fa;color:var(--text);border:1px solid var(--line)}
.btn-text{background:none;color:var(--muted);font-weight:500;font-size:13px;height:auto;padding:6px}
.btn-danger-ghost{background:#fff5f5;color:var(--danger);border:1px solid #ffd9d6}
.btn-claim{height:62px;flex:1;flex-direction:column;gap:3px;border-radius:16px}
.bc-main{font-size:17px;font-weight:700;letter-spacing:1px}
.bc-sub{font-size:11px;opacity:.85;font-weight:400}

/* ---------- 顶栏 ---------- */
.topbar{background:linear-gradient(135deg,#1b1c2e,#2f2040 55%,#5a1f3d 130%);color:#fff;
  padding:calc(env(safe-area-inset-top) + 16px) 16px 22px;border-radius:0 0 22px 22px;position:relative;overflow:hidden}
.topbar::after{content:"";position:absolute;right:-40px;top:-40px;width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,rgba(37,244,238,.25),transparent 70%)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}
.tb-title{font-size:19px;font-weight:700;letter-spacing:.5px}
.tb-sub{font-size:12px;opacity:.65;margin-top:3px}
.tb-avatar{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--cyan),#7af5d5);
  color:#111;font-weight:700;display:grid;place-items:center;font-size:16px}
.notice-bar{margin:12px 16px 0;background:#fff7ed;border:1px solid #ffe0b2;color:#b54708;
  border-radius:12px;padding:10px 12px;display:flex;gap:8px;font-size:13px;line-height:1.55}
.nb-ico{flex:none}
.pages{padding-bottom:90px}

/* ---------- 统计 ---------- */
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 16px 0}
.stat{background:#fff;border-radius:14px;padding:12px 6px;text-align:center;box-shadow:var(--shadow)}
.stat b{display:block;font-size:19px;font-weight:800;line-height:1.2}
.stat span{font-size:11px;color:var(--muted);margin-top:3px;display:block}
.stat.c1 b{color:var(--ok)} .stat.c2 b{color:var(--warn)}
.stat.c3 b{color:var(--info)} .stat.c4 b{color:var(--primary)}

/* ---------- 领取卡 ---------- */
.claim-card{padding-bottom:18px}
.claim-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.pool-tag{font-size:12px;color:var(--muted)}
.pool-tag b{color:var(--primary);font-size:14px}
.claim-body{display:flex;gap:14px;align-items:center}
.ring-wrap{width:72px;height:72px;flex:none;position:relative;display:grid;place-items:center}
.ring{width:72px;height:72px;transform:rotate(-90deg)}
.ring-bg{fill:none;stroke:#f0f1f6;stroke-width:6}
.ring-fg{fill:none;stroke:url(#g);stroke:var(--primary);stroke-width:6;stroke-linecap:round;
  stroke-dasharray:195;stroke-dashoffset:195;transition:stroke-dashoffset .3s linear}
.ring-num{position:absolute;font-size:17px;font-weight:800;color:var(--primary)}
.ring-num.free{font-size:12px;color:var(--ok)}
.claim-tip{margin-top:12px;font-size:12px;color:var(--muted);text-align:center}

/* ---------- 任务卡 ---------- */
.task-card{border:1.5px solid #ffe1e7;background:linear-gradient(180deg,#fff,#fffafc)}
.task-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.task-label{font-size:11px;color:var(--muted);letter-spacing:.5px}
.task-nick{font-size:22px;font-weight:800;margin-top:2px;word-break:break-all}
.badge{font-size:12px;padding:4px 10px;border-radius:20px;font-weight:600;flex:none}
.badge.pending{background:#e8f3ff;color:#1570cd}
.badge.submitted{background:#fff4e5;color:#b54708}
.badge.approved{background:#e6f9f1;color:#027a48}
.badge.rejected{background:#ffeceb;color:#b42318}
.task-main{display:flex;gap:12px;margin:14px 0 12px;align-items:center}
.task-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.tf{background:#fafbfd;border-radius:10px;padding:8px 10px}
.tf-k{display:block;font-size:11px;color:var(--muted)}
.tf-v{display:block;font-size:13px;margin-top:2px;word-break:break-all}
.tf-v.link{color:var(--primary)}
.task-right{flex:none;width:86px;text-align:center}
.up-btn{width:86px;height:86px;border-radius:16px;border:1.5px dashed #cfd3e0;background:#fafbfd;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;overflow:hidden;cursor:pointer}
.up-btn.done{border-style:solid;border-color:var(--ok);background:#f2fdf8}
.up-ico{font-size:22px;color:var(--primary);line-height:1}
.up-txt{font-size:11px;color:var(--muted)}
.up-btn img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.up-state{font-size:11px;color:var(--muted);margin-top:6px}
.up-state.ok{color:var(--ok)} .up-state.wait{color:var(--warn)}
.task-btns{display:flex;gap:8px;align-items:center}
.task-btns .btn{flex:1;height:40px;font-size:14px}
.reject-tip{margin-top:10px;background:#ffeceb;color:#b42318;font-size:12px;padding:8px 10px;border-radius:10px}

/* ---------- 步骤 ---------- */
.steps-mini{margin:0;padding-left:18px;font-size:13px;color:#4a4f61;line-height:1.9}
.rule-text{white-space:pre-wrap;font-size:13px;color:#4a4f61;line-height:1.8}

/* ---------- 列表 ---------- */
.list{padding:0 16px}
.ti{background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px;margin-top:12px;display:flex;gap:12px}
.ti-img{width:56px;height:56px;border-radius:10px;background:#f4f5fa;object-fit:cover;flex:none}
.ti-img.ph{display:grid;place-items:center;font-size:20px;color:#c3c7d4}
.ti-body{flex:1;min-width:0}
.ti-nick{font-weight:700;font-size:15px}
.ti-meta{font-size:12px;color:var(--muted);margin-top:3px;word-break:break-all}
.ti-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}
.ti-time{font-size:11px;color:#a4a9b8}
.ti-up{font-size:12px;color:var(--primary);font-weight:600}

/* ---------- 教程 ---------- */
.video-card video{width:100%;border-radius:12px;margin-top:12px;background:#000;max-height:60vh}
.tut-intro{font-size:13px;color:var(--muted);margin:6px 0 0}
.steps{padding:0 16px}
.step{background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px;margin-top:12px}
.step-n{width:24px;height:24px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;font-size:13px;font-weight:700;display:grid;place-items:center;margin-bottom:8px}
.step-t{font-weight:700;font-size:15px}
.step-d{font-size:13px;color:#4a4f61;margin-top:5px;white-space:pre-wrap;line-height:1.75}
.step img{margin-top:10px;border-radius:10px}

/* ---------- 我的 ---------- */
.me-card{display:flex;align-items:center;gap:12px}
.me-avatar{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#1b1c2e,#4a3050);color:#fff;
  display:grid;place-items:center;font-size:18px;font-weight:700;flex:none}
.me-info{flex:1;min-width:0}
.me-name{font-weight:700;font-size-16px;font-size:16px}
.me-phone{font-size:12px;color:var(--muted);margin-top:2px}
.me-date{font-size:11px;color:#a4a9b8}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.gi{background:#fafbfd;border-radius:12px;padding:12px;text-align:center}
.gi b{display:block;font-size:20px;font-weight:800}
.gi span{font-size:11px;color:var(--muted)}

/* ---------- 空状态 ---------- */
.empty{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-ico{font-size:44px;margin-bottom:10px}
.empty p{margin:0;font-size:13px}

/* ---------- Tabbar ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
  border-top:1px solid var(--line);display:flex;padding-bottom:env(safe-area-inset-bottom);z-index:20}
.tb{flex:1;padding:8px 0 7px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted)}
.tb i{font-style:normal;font-size:20px;line-height:1;filter:grayscale(1);opacity:.6;transition:.2s}
.tb span{font-size:11px}
.tb.active{color:var(--primary)}
.tb.active i{filter:none;opacity:1}

/* ---------- Toast / Viewer ---------- */
.toast{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%);background:rgba(20,22,35,.92);color:#fff;
  padding:12px 18px;border-radius:12px;font-size:14px;z-index:200;opacity:0;pointer-events:none;transition:.25s;max-width:80%;text-align:center}
.toast.show{opacity:1;top:44%}
.viewer{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}
.viewer img{max-width:100%;max-height:90%;border-radius:8px}
.page{display:none}
.page.active{display:block;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- 打开抖音 ---------- */
.btn-open{width:100%;margin-top:14px;height:50px;font-size:15px;letter-spacing:.5px}
.bo-ico{font-size:12px;margin-right:6px;opacity:.9}
.wx-hint{margin-top:10px;text-align:center;font-size:12px;color:var(--muted);line-height:1.5}
.ti-link{word-break:break-all}
.ti-cp{font-style:normal;color:var(--primary);font-size:11px;border:1px solid rgba(90,80,255,.35);
  border-radius:6px;padding:1px 6px;margin-left:4px;white-space:nowrap}
.wx-guide{position:fixed;inset:0;z-index:260}
.wg-mask{position:absolute;inset:0;background:rgba(12,14,24,.55);backdrop-filter:blur(2px);animation:fade .2s ease}
.wg-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:20px 20px 0 0;
  padding:22px 18px calc(22px + env(safe-area-inset-bottom));animation:up .28s cubic-bezier(.22,.8,.3,1);
  box-shadow:0 -8px 40px rgba(0,0,0,.18);max-height:88vh;overflow:auto}
@keyframes up{from{transform:translateY(100%)}to{transform:none}}
.wg-hand{position:absolute;right:22px;top:-14px;font-size:40px;line-height:1;color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.25);animation:bounce 1.6s ease-in-out infinite}
@keyframes bounce{0%,100%{transform:translate(0,0)}50%{transform:translate(4px,-6px)}}
.wg-title{font-size:18px;font-weight:700;color:var(--text)}
.wg-sub{font-size:13px;color:var(--muted);margin:6px 0 16px;line-height:1.6}
.wg-way{background:#f6f7fb;border-radius:12px;padding:12px 14px;margin:12px 0 10px}
.wg-way-n{font-size:12px;font-weight:700;color:var(--primary);margin-bottom:4px}
.wg-way-t{font-size:13px;color:#3a3f52;line-height:1.65}
.wg-way-t b{color:var(--primary);font-size:15px;vertical-align:-1px}
.wg-url{margin-top:10px;font-size:11px;color:var(--muted);word-break:break-all;background:#f6f7fb;
  border-radius:8px;padding:8px 10px;line-height:1.5;max-height:56px;overflow:hidden}
.wg-nick{text-align:center;font-size:17px;font-weight:700;color:var(--text);background:#f6f7fb;
  border-radius:10px;padding:10px 12px;margin:10px 0;word-break:break-all}
.wg-tip{margin-top:14px;font-size:12px;color:var(--muted);line-height:1.65;background:#fff8ec;
  border:1px solid #ffe3b8;border-radius:10px;padding:10px 12px}
.wg-tip b{color:#a55b06}

/* ---------- 收款信息 ---------- */
.reg-note{background:#f0f7ff;border:1px solid #d3e6fb;border-radius:12px;padding:11px 13px;
  font-size:12.5px;color:#3a5a80;line-height:1.65}
.reg-note b{display:block;color:#185fa5;font-size:13px;margin-bottom:2px}

.pay-box{background:#f7f8fc;border-radius:12px;padding:4px 14px;margin-top:4px}
.pay-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;
  border-bottom:1px solid #eef0f6;font-size:13px}
.pay-row:last-child{border-bottom:0}
.pay-row span{color:var(--muted);flex:none}
.pay-row b{font-size:14px;font-weight:600;word-break:break-all;text-align:right}
.pay-row b.ph{color:#c2c6d2;font-weight:400}
.pay-warn{margin-top:10px;background:#fff8ec;border:1px solid #ffe3b8;color:#a55b06;
  border-radius:10px;padding:9px 12px;font-size:12.5px}

.ti-pay{margin-top:7px;display:inline-block;font-size:12px;font-weight:600;padding:3px 9px;border-radius:8px}
.ti-pay.ok{background:#e7f8ef;color:#0a7a4b}
.ti-pay.wait{background:#eef4ff;color:#185fa5}
.ti-pay.no{background:#fdecec;color:#b42318}
.ti-pay.none{background:#f2f3f7;color:#8b90a0}
.ti-pay .pay-err{display:block;font-weight:400;margin-top:3px;font-size:11.5px;opacity:.85}

/* ---------- 收款信息弹窗 ---------- */
.pay-modal{position:fixed;inset:0;z-index:120}
.pm-mask{position:absolute;inset:0;background:rgba(16,18,32,.5)}
.pm-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:20px 20px 0 0;
  padding:22px 18px calc(18px + env(safe-area-inset-bottom));animation:up .28s cubic-bezier(.22,.8,.3,1);
  box-shadow:0 -8px 40px rgba(0,0,0,.18);max-height:90vh;overflow:auto}
.pm-title{font-size:18px;font-weight:700;color:var(--text)}
.pm-sub{font-size:13px;color:var(--muted);margin:6px 0 16px;line-height:1.6}
.pm-sub b{color:var(--primary)}
.pm-tip{margin:4px 0 14px;background:#fff8ec;border:1px solid #ffe3b8;color:#a55b06;
  border-radius:10px;padding:9px 12px;font-size:12px;line-height:1.6}
.pm-panel .fld{margin-bottom:12px}
.pm-panel .btn-text{color:var(--muted);font-size:13px;background:none;padding:8px 0;margin-top:6px}

@media(min-width:640px){
  .pm-panel{max-width:520px;left:50%;right:auto;transform:translateX(-50%);border-radius:20px;bottom:24px}
  .wg-panel{max-width:520px;left:50%;right:auto;transform:translateX(-50%);border-radius:20px;bottom:24px}
  body{background:#e7e8ef}
  .stat-row,.card,.list,.steps,.notice-bar,.topbar-inner{max-width:560px;margin-left:auto;margin-right:auto}
  .card{margin-left:auto;margin-right:auto}
  .tabbar{max-width:560px;left:50%;right:auto;transform:translateX(-50%);border-radius:16px 16px 0 0;
    box-shadow:0 -4px 20px rgba(22,24,40,.08)}
  .topbar{border-radius:0}
}
