首页/ mobileweb/ 拇指赚 · 手机赚钱任务平台 H5/ 代码预览

💻 代码预览 · 拇指赚 · 手机赚钱任务平台 H5

mw_other · 上传者 拇指赚官方
← 返回详情
muzhizhuan/style.css · 约 16542 字符
1:root {2  --primary: #ff8a00;3  --primary-d: #f07000;4  --gold: #ffb84d;5  --red: #ff4d4f;6  --green: #17b26a;7  --bg: #f6f4f0;8  --card: #ffffff;9  --text: #26211a;10  --muted: #9a8f80;11  --line: #f0ece4;12  --radius: 16px;13  --shadow: 0 6px 20px rgba(255, 138, 0, .08);14}15* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }16html, body { margin: 0; padding: 0; }17body {18  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;19  background: var(--bg); color: var(--text);20  max-width: 480px; margin: 0 auto; line-height: 1.6;21  -webkit-font-smoothing: antialiased; padding-bottom: 76px;22}2324/* ===== 顶部 ===== */25.topbar {26  position: sticky; top: 0; z-index: 20;27  display: flex; align-items: center; justify-content: space-between;28  padding: 12px 16px;29  background: linear-gradient(135deg, #ff9a2e, #ff7a1a);30  color: #fff;31}32.brand { font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 6px; }33.brand .thumb { font-size: 22px; }34.topbar .right { display: flex; align-items: center; gap: 10px; font-size: 13px; }35.topbar .right .link { color: #fff; text-decoration: none; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-weight: 600; }3637/* ===== 钱包卡 ===== */38.wallet {39  margin: 14px 14px 0; border-radius: var(--radius); overflow: hidden;40  background: linear-gradient(135deg, #ffb02e 0%, #ff8a00 45%, #f07000 100%);41  color: #fff; box-shadow: 0 10px 26px rgba(255,138,0,.32); position: relative;42}43.wallet::after {44  content: "¥"; position: absolute; right: -18px; bottom: -40px;45  font-size: 150px; font-weight: 900; opacity: .08; transform: rotate(-12deg);46}47.wallet .balance-row { padding: 20px 20px 6px; display: flex; justify-content: space-between; align-items: flex-end; }48.wallet .balance-row .label { font-size: 12px; opacity: .85; }49.wallet .balance { font-size: 34px; font-weight: 900; line-height: 1.1; }50.wallet .balance small { font-size: 15px; font-weight: 700; margin-right: 2px; }51.wallet .today { text-align: right; font-size: 12px; opacity: .92; }52.wallet .today b { font-size: 15px; }53.wallet .ops { display: flex; padding: 12px 20px 18px; gap: 10px; }54.wallet .ops a {55  flex: 1; text-align: center; background: rgba(255,255,255,.94); color: #e86300;56  text-decoration: none; font-size: 13px; font-weight: 700; padding: 9px 0; border-radius: 999px;57}58.wallet .ops a.ghost { background: rgba(255,255,255,.16); color: #fff; }5960/* ===== 快捷入口 ===== */61.quick { display: flex; background: var(--card); margin: 12px 14px 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 6px; }62.quick a { flex: 1; text-align: center; text-decoration: none; color: var(--text); }63.quick .qi { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }64.quick .qi.q1 { background: #fff3e2; } .quick .qi.q2 { background: #ffe9e9; }65.quick .qi.q3 { background: #e7f6ee; } .quick .qi.q4 { background: #eef0ff; }66.quick .qt { font-size: 11.5px; color: #6b6155; font-weight: 600; }67.quick .badge { display: block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin: -50px auto 0 62%; }6869/* ===== 新人红包 ===== */70.newbie { margin: 12px 14px 0; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px;71  background: linear-gradient(135deg, #ff5b5b, #ff3b3b); color: #fff; box-shadow: 0 8px 20px rgba(255,59,59,.25); }72.newbie .hb { font-size: 34px; }73.newbie .nb-t { font-weight: 800; font-size: 15px; }74.newbie .nb-s { font-size: 11.5px; opacity: .92; }75.newbie .nb-btn { margin-left: auto; background: #fff; color: #ff3b3b; font-size: 12.5px; font-weight: 800; padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }7677/* ===== 区块 ===== */78.block { padding: 18px 14px 0; }79.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }80.block-head h2 { font-size: 17px; margin: 0; font-weight: 800; }81.block-head .more { font-size: 12px; color: var(--muted); text-decoration: none; }82.block-head .more em { font-style: normal; color: var(--primary); }8384/* ===== 任务筛选 Tab ===== */85.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }86.tabs::-webkit-scrollbar { display: none; }87.tabs a { white-space: nowrap; font-size: 12.5px; color: #7a6f61; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: #efeae2; font-weight: 600; }88.tabs a.on { background: linear-gradient(135deg, #ff9a2e, #ff7a1a); color: #fff; }8990/* ===== 任务卡片 ===== */91.task-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; }92.task-card .tc-main { flex: 1; min-width: 0; }93.task-card .tc-tags { display: flex; gap: 6px; margin-bottom: 6px; }94.tag { font-size: 10px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }95.tag.new { background: #ffe9e9; color: #ff4d4f; }96.tag.hot { background: #fff3e2; color: #ff8a00; }97.tag.high { background: #ffe9e9; color: #e60012; }98.tag.rec { background: #e7f6ee; color: #17b26a; }99.task-card h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; font-weight: 700; }100.task-card .tc-meta { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }101.task-card .tc-meta b { color: #6b6155; }102.task-card .tc-quota { font-size: 11px; color: var(--muted); margin-top: 4px; }103.task-card .tc-quota .qbar { display: inline-block; width: 52px; height: 5px; border-radius: 3px; background: #f0ece4; vertical-align: 2px; margin-left: 4px; position: relative; overflow: hidden; }104.task-card .tc-quota .qbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); border-radius: 3px; }105.task-card .tc-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 84px; }106.task-card .price { color: #ff5a00; font-weight: 900; font-size: 20px; line-height: 1.1; }107.task-card .price small { font-size: 12px; }108.task-card .go { background: linear-gradient(135deg, #ff9a2e, #ff7a1a); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 16px; border-radius: 999px; text-decoration: none; }109.task-card .per { font-size: 11px; color: var(--green); font-weight: 700; }110111/* ===== 底部导航 ===== */112.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;113  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);114  display: flex; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 30; }115.tabbar a { flex: 1; text-align: center; text-decoration: none; color: #b3a896; font-size: 10.5px; font-weight: 600; }116.tabbar a .ti { font-size: 20px; display: block; line-height: 1.2; }117.tabbar a.on { color: var(--primary); }118119/* ===== 通用卡片/按钮 ===== */120.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }121.btn { display: block; text-align: center; background: linear-gradient(135deg, #ff9a2e, #ff7a1a); color: #fff; text-decoration: none;122  font-size: 15px; font-weight: 800; padding: 13px 0; border-radius: 999px; border: none; width: 100%; }123.btn:active { transform: scale(.98); }124.btn.gray { background: #efeae2; color: #7a6f61; }125.btn.red { background: linear-gradient(135deg, #ff5b5b, #ff3b3b); }126.text-muted { color: var(--muted); }127.center { text-align: center; }128129/* ===== 页面标题栏 ===== */130.pgbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;131  padding: 12px 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }132.pgbar .back { font-size: 20px; text-decoration: none; color: var(--text); padding: 0 4px; }133.pgbar h1 { font-size: 16px; margin: 0; flex: 1; font-weight: 800; }134.pgbar .ph { font-size: 12px; color: var(--muted); }135136/* ===== 任务详情 ===== */137.detail-hero { margin: 14px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #ffb02e, #ff7a1a); color: #fff; padding: 20px; position: relative; }138.detail-hero .dh-tags { display: flex; gap: 6px; margin-bottom: 8px; }139.detail-hero .dh-tags span { background: rgba(255,255,255,.22); font-size: 10.5px; padding: 2px 9px; border-radius: 999px; font-weight: 700; }140.detail-hero h1 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }141.detail-hero .dh-price { font-size: 30px; font-weight: 900; margin-bottom: 6px; }142.detail-hero .dh-meta { font-size: 12px; opacity: .92; display: flex; gap: 12px; flex-wrap: wrap; }143.detail-sec { margin: 14px; padding: 16px; }144.detail-sec h2 { font-size: 15px; margin: 0 0 10px; font-weight: 800; }145.steps { padding: 0; margin: 0; list-style: none; counter-reset: st; }146.steps li { counter-increment: st; position: relative; padding: 0 0 14px 34px; font-size: 13px; color: #4a4238; }147.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;148  background: #fff3e2; color: #ff7a1a; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }149.steps li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: #f6ede0; }150.notice { background: #fffaf0; border: 1px solid #ffe8c2; border-radius: 12px; padding: 12px; font-size: 12px; color: #8a6d3b; margin-top: 10px; }151.fixed-bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));152  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); z-index: 30; }153.fixed-bottom .row { display: flex; gap: 10px; align-items: center; }154.fixed-bottom .row .price { font-size: 22px; color: #ff5a00; font-weight: 900; flex: 1; }155.fixed-bottom .row .btn { flex: 1.4; }156157/* ===== 邀请页 ===== */158.invite-hero { margin: 14px; border-radius: var(--radius); padding: 22px; text-align: center; color: #fff; position: relative;159  background: linear-gradient(135deg, #ffb02e 0%, #ff7a1a 55%, #e86300 100%); box-shadow: 0 10px 26px rgba(255,138,0,.3); }160.invite-hero h1 { margin: 0 0 6px; font-size: 19px; }161.invite-hero p { margin: 0 0 16px; font-size: 12.5px; opacity: .92; }162.qr { width: 120px; height: 120px; margin: 0 auto 12px; background: #fff; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; }163.qr svg { width: 100%; height: 100%; }164.invite-code { background: rgba(255,255,255,.18); display: inline-block; padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 2px; }165.rule-list { margin: 14px; padding: 16px; }166.rule-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }167.rule-item:last-child { border-bottom: none; }168.rule-item .ri { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }169.rule-item .rt { font-size: 13.5px; font-weight: 700; }170.rule-item .rs { font-size: 12px; color: var(--muted); }171.rule-item .rm { margin-left: auto; color: #ff5a00; font-weight: 800; font-size: 14px; white-space: nowrap; }172173/* ===== 我的页 ===== */174.me-head { margin: 14px; border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px;175  background: linear-gradient(135deg, #ffb02e, #ff7a1a); color: #fff; }176.avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 30px; }177.me-head .nm { font-weight: 800; font-size: 16px; }178.me-head .id { font-size: 11.5px; opacity: .85; }179.me-head .vip { margin-left: auto; background: #fff; color: #e86300; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }180.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); margin: 0 14px; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 0; }181.stat-grid .st { text-align: center; }182.stat-grid .st b { display: block; font-size: 16px; color: #e86300; }183.stat-grid .st span { font-size: 11px; color: var(--muted); }184.menu-list { margin: 14px; padding: 4px 14px; }185.menu-list a { display: flex; align-items: center; gap: 12px; padding: 13px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }186.menu-list a:last-child { border-bottom: none; }187.menu-list .mi { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; }188.menu-list .arr { margin-left: auto; color: #cfc4b4; font-size: 14px; }189.menu-list .val { margin-left: auto; color: var(--muted); font-size: 12px; }190191/* ===== 收益明细 ===== */192.flow-list { margin: 14px; padding: 6px 14px; }193.flow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }194.flow:last-child { border-bottom: none; }195.flow .fi { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #f6f1e9; flex-shrink: 0; }196.flow .ft { font-size: 13px; font-weight: 600; }197.flow .fs { font-size: 11px; color: var(--muted); }198.flow .fa { margin-left: auto; font-weight: 800; font-size: 15px; }199.flow .fa.in { color: #ff5a00; }200.flow .fa.out { color: var(--muted); }201202/* ===== 弹窗 ===== */203.mask { position: fixed; inset: 0; background: rgba(30,20,10,.5); z-index: 60; display: none; align-items: flex-end; justify-content: center; }204.mask.show { display: flex; }205.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease; }206@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }207.sheet h3 { margin: 0 0 14px; font-size: 16px; text-align: center; font-weight: 800; }208.sheet .close { position: absolute; }209.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; margin-bottom: 12px; }210.inp:focus { border-color: var(--primary); }211.chips { display: flex; gap: 8px; margin-bottom: 14px; }212.chips a { flex: 1; text-align: center; font-size: 12.5px; padding: 9px 0; border-radius: 10px; border: 1.5px solid var(--line); color: #7a6f61; text-decoration: none; font-weight: 700; }213.chips a.on { border-color: var(--primary); color: var(--primary); background: #fff6ea; }214.amount-chips { display: flex; gap: 8px; margin-bottom: 6px; }215.amount-chips a { flex: 1; text-align: center; font-size: 13px; padding: 9px 0; border-radius: 10px; background: #f6f1e9; color: #7a6f61; text-decoration: none; font-weight: 700; }216.amount-chips a.on { background: #fff1e0; color: #ff7a1a; }217218/* ===== 签到 ===== */219.sign-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }220.sign-day { text-align: center; background: #f6f1e9; border-radius: 10px; padding: 8px 2px; }221.sign-day .dw { font-size: 10px; color: var(--muted); }222.sign-day .dv { font-size: 13px; font-weight: 800; color: #e86300; margin: 2px 0; }223.sign-day .st { font-size: 9px; }224.sign-day.done { background: #e7f6ee; }225.sign-day.done .st { color: var(--green); }226.sign-day.today { background: linear-gradient(135deg, #ff9a2e, #ff7a1a); }227.sign-day.today .dw, .sign-day.today .dv, .sign-day.today .st { color: #fff; }228229/* ===== Toast ===== */230.toast { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(30,20,10,.85); color: #fff;231  padding: 10px 22px; border-radius: 999px; font-size: 13px; z-index: 99; display: none; }232.toast.show { display: block; animation: fade .3s; }233@keyframes fade { from { opacity: 0; } to { opacity: 1; } }234235/* ===== 帮助/公告 ===== */236.qa { margin: 14px; padding: 6px 14px; }237.qa details { padding: 10px 0; border-bottom: 1px solid var(--line); }238.qa details:last-child { border-bottom: none; }239.qa summary { font-size: 13.5px; font-weight: 700; cursor: pointer; }240.qa p { font-size: 12.5px; color: #6b6155; margin: 8px 0 0; }241242.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }243