/* 「便便屎官」小程序：按真机界面重做，375 宽（1rpx = 0.5px），整机用 zoom 缩放。标题字体站酷快乐体（OFL） */
@font-face { font-family: "KuaiLe"; src: url(fonts/kuaile.woff2) format("woff2"); font-display: swap }

.dj { --z: 1; border-radius: clamp(18px, 2.4vw, 36px); background: #bfe3ff; color: #14222e; padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 340px) auto; justify-content: center; align-items: center; gap: clamp(28px, 8vw, 132px) }
.djsteps { grid-column: 1; width: 100%; max-width: 340px; display: grid; gap: 4px }
.djsteps button { width: 100%; text-align: left; padding: 14px 18px; border-radius: 16px; transition: background .2s } .djsteps button:hover { background: rgb(255 255 255 / .4) } .djsteps [aria-pressed="true"] { background: #fff }
.djsteps b { display: block; font-size: 20px; font-weight: 600; line-height: 1.3 } .djsteps span { display: block; color: #3d5263; text-wrap: balance }
.djphone { grid-column: 2; zoom: var(--z); padding: 10px; border-radius: 56px; background: #111; box-shadow: 0 30px 60px rgb(0 0 0 / .24); user-select: none }
.wx { position: relative; width: 375px; height: 760px; overflow: clip; border-radius: 46px; display: flex; flex-direction: column; font: 400 14px/1.45 "Hei", -apple-system, "PingFang SC", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; color: var(--ink); background: var(--cream); isolation: isolate }
.wx :focus-visible { outline-color: #1c1410; outline-offset: 2px }
.wx[data-skin="cream"] { --cream: #fff2c7; --sticker: #fff; --ink: #1c1410; --bd: #1c1410; --sun: #ffd23f; --poo: #8b4513; --on-poo: #fff2c7; --sky: #bfe3ff; --sakura: #ffd9e6; --tan: #ff8c42; --mut: #6f5b4c; --line: #e6dcc3; --chip: #fff6c2; --gold: #7a5400; --hero: #ffd23f; --hero-fg: #1c1410; --hero-num: #1c1410; --hero-bd: #1c1410; --hero-ln: #1c1410; --nav: #fff2c7; --nav-fg: #1c1410; --tab: #fff; --bw: 2.5px; --bs: 2px; --bx: 1.5px; --sh: 4px 4px 0 #1c1410; --shs: 3px 3px 0 #1c1410; --shx: 1.5px 1.5px 0 #1c1410; --press: translate(2.5px, 2.5px); --tl: rotate(-1.2deg); --tr: rotate(1.5deg); --r: 14px; --rs: 10px; --ff: "KuaiLe", "Hei", sans-serif; --fw: 400 }
.wx[data-skin="warm"] { --cream: #fff8f0; --sticker: #fff8e7; --ink: #3d1a00; --bd: #f0d9b5; --sun: #ffefd0; --poo: #8b4513; --on-poo: #fff8e7; --sky: #fff3e8; --sakura: #ffeff6; --tan: #b27a45; --mut: #8a5c3e; --line: #f2e7d3; --chip: #fffcf4; --gold: #7a5400; --hero: #8b4513; --hero-fg: #fff8e7; --hero-num: #f5c56b; --hero-bd: #8b4513; --hero-ln: rgb(255 248 231 / .3); --nav: #8b4513; --nav-fg: #fff; --tab: #fff8f0; --bw: 1px; --bs: 1px; --bx: 1px; --sh: 0 2px 7px rgb(60 40 20 / .12); --shs: 0 1px 4px rgb(60 40 20 / .1); --shx: none; --press: scale(.98); --tl: rotate(0deg); --tr: rotate(0deg); --r: 8px; --rs: 6px; --ff: "Hei", -apple-system, "PingFang SC", sans-serif; --fw: 800 }

/* 系统条、导航栏、底栏 */
.p-sys { flex: none; display: flex; justify-content: space-between; padding: 14px 30px 4px; font-size: 14px; font-weight: 700; background: var(--nav); color: var(--nav-fg); font-variant-numeric: tabular-nums; position: relative; z-index: 4 } .p-sys::after { content: ""; position: absolute; left: 50%; top: 12px; width: 92px; height: 24px; margin-left: -46px; border-radius: 12px; background: #111 } .p-sys i { width: 24px; height: 11px; margin-top: 5px; border: 1.5px solid; border-radius: 4px; padding: 1px } .p-sys i::before { content: ""; display: block; width: 76%; height: 100%; background: currentColor; border-radius: 1.5px }
.p-nav { flex: none; position: relative; z-index: 4; height: 46px; display: grid; place-items: center; background: var(--nav); color: var(--nav-fg); font-size: 16px; font-weight: 600 } .p-back { position: absolute; left: 4px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center } .p-back[hidden] { display: none } .p-back svg { width: 22px; height: 22px } .p-cap { position: absolute; right: 8px; top: 8px; width: 82px; height: 30px; border-radius: 15px; border: 1px solid rgb(128 100 60 / .35); background: rgb(255 255 255 / .55); color: #222; display: flex; align-items: center; justify-content: space-evenly } .p-cap::before { content: "•••"; letter-spacing: 1px; font-size: 13px } .p-cap::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; box-shadow: inset 0 0 0 3.5px #f3ead6, inset 0 0 0 9px #222 }
.p-stack { flex: 1; min-height: 0; position: relative; overflow: clip } .p-page { position: absolute; inset: 0; background: var(--cream); display: flex; flex-direction: column; outline: none } .p-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 10px 16px 24px; position: relative } .p-body::-webkit-scrollbar { display: none }
.p-tabs { flex: none; z-index: 4; display: flex; padding: 4px 4px 14px; background: var(--tab); border-top: 1px solid var(--line) } .p-tabs button { flex: 1; min-height: 46px; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--mut) } .p-tabs i { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat } .p-tabs [aria-current] { color: var(--poo); font-weight: 700 }
.wx.deep .p-tabs { display: none }

/* 贴纸 */
.stk { background: var(--sticker); border: var(--bw) solid var(--bd); border-radius: var(--r); box-shadow: var(--sh) }
.kl { font-family: var(--ff); font-weight: var(--fw); font-variant-numeric: tabular-nums }
.push { transition: transform .15s ease, box-shadow .15s ease } .push:active { transform: var(--press) !important; box-shadow: var(--shx) }
.wx svg.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; border: var(--bs) solid var(--bd); display: grid; place-items: center; color: #fff; font-size: 14px } .chipx { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; background: var(--sticker); border: var(--bx) solid var(--bd); white-space: nowrap } .chipx.me { background: var(--ink); color: var(--on-poo) } .chipx.pt { background: var(--chip); color: var(--gold) }
.rise { animation: stickon .38s cubic-bezier(.2, .7, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 50ms) } @keyframes stickon { from { opacity: 0; transform: scale(.92) rotate(-3deg) } }
.p-sec { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 8px; font-size: 16px } .p-sec small { font-size: 12px; color: var(--mut); font-family: "Hei", sans-serif; font-weight: 400 }

/* 打卡 */
.p-hero { padding: 12px 14px 13px; background: var(--hero); color: var(--hero-fg); border-color: var(--hero-bd) } .p-hero .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px } .p-hero .num { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 8px; font-size: 13px; font-weight: 700 } .p-hero .num b { font-size: 54px; line-height: 1; color: var(--hero-num) } .p-hero .row { display: flex; gap: 22px; padding-top: 7px; border-top: 1.5px solid var(--hero-ln); font-size: 12px } .p-hero .row b { display: block; font-size: 17px; line-height: 1.25 }
.p-go { display: block; width: 100%; margin-top: 16px; padding: 15px 12px 14px; text-align: center; background: var(--poo); color: var(--on-poo); transform: var(--tl) } .p-go em { display: block; font-style: normal; font-size: 32px; line-height: 1.1 } .p-go b { display: block; font-size: 22px; letter-spacing: 2px } .p-go small { font-size: 12px } .p-go.on { background: var(--sun); color: var(--ink) } .p-go.on small { font-size: 16px }
.p-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px } .p-groups button { padding: 9px 4px 8px; text-align: center; font-size: 12px; font-weight: 700 } .p-groups button em { display: block; font-style: normal; font-size: 22px; line-height: 1.1 } .p-groups small { display: block; font-size: 11px; font-weight: 400 } .p-groups button:nth-child(2) { background: var(--sky); transform: var(--tr) } .p-groups button:nth-child(3) { background: var(--sakura); transform: var(--tl) }
.p-feed { display: grid; gap: 12px } .p-item { position: relative; display: flex; gap: 8px; padding: 11px 11px 9px } .p-item > div { flex: 1; min-width: 0 } .p-item .hd { display: flex; align-items: center; gap: 5px; flex-wrap: wrap } .p-item .hd b { font-size: 14px } .p-item .hd time { margin-left: auto; font-size: 11px; color: var(--mut) } .p-item .at { font-size: 12px; color: var(--mut) } .p-item .ct { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 700 } .p-item .ct em { font-style: normal; font-size: 20px } .p-item .ct small { display: block; font-size: 12px; font-weight: 400; color: var(--mut) } .p-item .ft { display: flex; justify-content: flex-end; margin-top: 5px }
.p-like { position: relative; min-width: 52px; min-height: 30px; padding: 0 9px; border: var(--bs) solid var(--bd); border-radius: 8px; background: var(--sticker); box-shadow: var(--shx); font-size: 13px } .p-like::after { content: ""; position: absolute; inset: -7px } .p-like.on { background: var(--sun) } .p-bit { position: absolute; left: 50%; top: 50%; font-size: 14px; pointer-events: none; z-index: 9; line-height: 1 } .p-bit.dot { width: 7px; height: 7px; border-radius: 50% }

/* 蹲坑 */
.p-sq { padding: 16px 0 15px; display: grid; justify-items: center; background: var(--hero); color: var(--hero-fg); border-color: var(--hero-bd); transform: var(--tl); font-size: 12px } .p-sq em { font-style: normal; font-size: 62px; line-height: 1; animation: squat 1.6s ease-in-out infinite } @keyframes squat { 50% { transform: translateY(-8px) } } .p-sq span { font-size: 14px; margin-top: 8px } .p-sq b { font-size: 44px; line-height: 1.15; letter-spacing: 2px; color: var(--hero-num) }
.p-st { margin: 14px 0 4px; padding: 5px 12px; font-size: 12px } .p-st div { display: grid; grid-template-columns: 52px 1fr 1fr 1fr 34px; align-items: center; min-height: 32px } .p-st div + div { border-top: 1.5px solid var(--bd) } .p-st b { font-size: 15px; margin-left: 3px } .p-st small { color: var(--mut); font-size: 12px }
.p-near { display: grid; gap: 12px } .p-near > div { display: flex; align-items: center; gap: 8px; padding: 9px 10px } .p-near .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.35 } .p-near small { display: block; font-size: 12px; font-weight: 400; color: var(--mut); white-space: nowrap } .p-act { width: 44px; height: 44px; border-radius: 50%; border: var(--bx) solid var(--bd); background: var(--sticker); box-shadow: var(--shx); font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap } .p-act em { display: block; font-style: normal; font-size: 14px; line-height: 1.1 } .p-act.k1 { background: var(--sun) } .p-act.k2 { color: #b3281f }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px } .p-two button { padding: 10px 6px; text-align: center } .p-two b { display: block; font-size: 17px } .p-two small { font-size: 12px } .p-two .yes { background: var(--poo); color: var(--on-poo) }
.p-pops { position: absolute; z-index: 6; left: 0; right: 0; top: 10px; display: grid; justify-items: center; gap: 6px; pointer-events: none } .p-pop { padding: 6px 14px; background: var(--sticker); border: var(--bs) solid var(--bd); border-left: 7px solid var(--sun); border-radius: var(--rs); box-shadow: var(--shs); font-size: 13px; font-weight: 700; animation: popin 3.4s ease-out forwards } .p-pop.k1 { border-left-color: #2e9e5b } .p-pop.k2 { border-left-color: #e0463c } @keyframes popin { 0% { opacity: 0; transform: translateY(-15px) rotate(-2deg) } 10%, 85% { opacity: 1; transform: none } 100% { opacity: 0; transform: translateY(-6px) } }
.p-toast { position: absolute; z-index: 8; left: 50%; top: 46%; translate: -50% -50%; padding: 10px 18px; border-radius: 8px; background: rgb(40 34 30 / .88); color: #fff; font-size: 14px; white-space: nowrap; pointer-events: none }

/* 详细打卡 */
.p-h1 { font-size: 20px; margin: 8px 2px 12px } .p-card { padding: 12px; margin-bottom: 14px } .p-card > b { display: block; font-size: 15px } .p-card > small { font-size: 12px; color: var(--mut) }
.p-pick { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; margin-top: 10px } .p-pick button { min-height: 48px; padding: 8px 2px; border: var(--bs) solid var(--bd); border-radius: var(--rs); background: var(--sticker); box-shadow: var(--shx); font-size: 12px; font-weight: 700; line-height: 1.4 } .p-pick em { display: block; font-style: normal; font-size: 24px; line-height: 1.2 } .p-pick small { display: block; font-weight: 400; font-size: 11px; color: var(--mut) } .p-pick [aria-checked="true"] { background: var(--sun) } .p-pick [aria-checked="true"] small { color: var(--ink) } .wx[data-skin="warm"] .p-pick [aria-checked="true"] { border-color: var(--poo); box-shadow: inset 0 0 0 1px var(--poo) }
.p-sub { flex: none; padding: 8px 16px 18px; border-top: var(--bw) solid var(--bd) } .p-sub button { width: 100%; min-height: 48px; background: var(--poo); color: var(--on-poo); font-size: 17px; letter-spacing: 1px }
.p-done { position: absolute; z-index: 7; inset: 0; background: var(--sun); display: grid; place-content: center; justify-items: center; animation: fade .25s } .p-done::before { content: ""; position: absolute; inset: 16px; border: var(--bw) dashed var(--bd); border-radius: 18px } .p-done em { font-style: normal; font-size: 70px; line-height: 1.2; animation: thump .5s cubic-bezier(.2, .8, .3, 1) } .p-done b { font-size: 34px; letter-spacing: 3px } .p-done span { margin-top: 10px; padding: 4px 12px; font-size: 14px; font-weight: 700; background: var(--sticker); border: var(--bs) solid var(--bd); border-radius: 8px; box-shadow: var(--shs) } @keyframes fade { from { opacity: 0 } } @keyframes thump { from { transform: scale(2.2) rotate(-14deg); opacity: 0 } }

/* 排行榜、群组、我的 */
.p-seg { position: relative; display: flex; padding: 3px; margin-bottom: 14px } .p-seg button { flex: 1; min-height: 40px; position: relative; z-index: 1; font-size: 15px; letter-spacing: 1px; color: var(--mut); transition: color .2s } .p-seg [aria-pressed="true"] { color: var(--ink) } .p-ink { position: absolute; top: 3px; bottom: 3px; left: 3px; right: 50%; background: var(--sun); border: var(--bs) solid var(--bd); border-radius: 8px } .p-seg.two .p-ink { left: 50%; right: 3px } .p-seg.two .p-ink { transition: right .22s cubic-bezier(.3, 0, .2, 1), left .22s cubic-bezier(.3, 0, .2, 1) .12s } .p-seg:not(.two) .p-ink { transition: left .22s cubic-bezier(.3, 0, .2, 1), right .22s cubic-bezier(.3, 0, .2, 1) .12s }
.p-top { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 22px 0 10px; margin-bottom: 10px } .p-top > div { position: relative; width: 100px; padding: 10px 4px 9px; display: grid; justify-items: center; gap: 1px; font-size: 12px; font-weight: 700 } .p-top .one { width: 114px; padding-top: 16px; background: var(--sun); transform: var(--tl) } .p-top .av { width: 44px; height: 44px; font-size: 18px } .p-top .one .av { width: 56px; height: 56px; font-size: 24px } .p-top .crown { position: absolute; top: -20px; font-size: 26px; line-height: 1 } .p-top .medal { font-size: 16px; line-height: 1; margin-top: -9px } .p-top .cnt { font-size: 19px; color: var(--poo) } .p-top .one .cnt { font-size: 25px; color: var(--ink) } .p-top .king { font-size: 11px; padding: 0 7px; border-radius: 6px; background: #1c1410; color: #ffd23f }
.p-list { overflow: clip } .p-list > * { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 11px; border-bottom: var(--bx) solid var(--bd) } .p-list > :last-child { border-bottom: 0 } .p-list .mine { background: var(--chip) } .p-list .rk { width: 22px; text-align: center; font-size: 16px; color: var(--mut) } .p-list .nm { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.35 } .p-list small { display: block; font-size: 12px; font-weight: 400; color: var(--mut) } .p-list .cnt { font-size: 18px; color: var(--poo) }
.p-grp { display: grid; gap: 12px } .p-grp button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; text-align: left } .p-grp .av { border-radius: var(--rs) } .p-grp .nm { flex: 1; font-size: 14px; font-weight: 700 } .p-grp small { display: block; font-size: 12px; font-weight: 400; color: var(--mut) }
.p-coro { position: absolute; z-index: 7; inset: 0; background: rgb(28 20 16 / .88); display: grid; place-items: center; animation: fade .35s } .p-coro > div { width: 86%; padding: 18px 14px 16px; display: grid; justify-items: center; background: var(--cream); animation: coro .4s cubic-bezier(.2, .8, .3, 1); text-align: center } @keyframes coro { from { transform: scale(.84) rotate(-3deg); opacity: 0 } } .p-coro h4 { margin: 0; font-size: 18px; letter-spacing: 2px; font-weight: var(--fw) } .p-coro small { font-size: 12px; color: var(--mut) } .p-coro .crown { font-size: 34px; line-height: 1; margin: 10px 0 -6px; z-index: 1; animation: crown .5s .35s cubic-bezier(.2, .8, .3, 1) both } @keyframes crown { from { transform: translateY(-40px) rotate(-20deg); opacity: 0 } } .p-coro .ring { width: 76px; height: 76px; border-radius: 50%; border: var(--bw) solid var(--bd); background: var(--sun); display: grid; place-items: center; font-size: 38px } .p-coro .ring.min { width: 52px; height: 52px; font-size: 25px; background: var(--sky) } .p-coro p { font-size: 14px; margin-top: 6px } .p-coro p b { display: block; font-size: 16px } .p-coro hr { width: 100%; border: 0; border-top: var(--bx) dashed var(--bd); margin: 10px 0 } .p-coro .bow { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--mut) } .p-coro .bow i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: var(--bx) solid var(--bd); background: var(--sticker); font-style: normal; font-size: 16px; transform-origin: 50% 100%; transform: rotate(-20deg); animation: bow .55s calc(.8s + var(--i) * .12s) ease-out backwards } @keyframes bow { from { transform: none } 60% { transform: rotate(-30deg) } } .p-coro button { margin-top: 14px; min-height: 44px; padding: 0 34px; border: var(--bs) solid var(--bd); border-radius: var(--rs); background: var(--poo); color: var(--on-poo); box-shadow: var(--shs); font-size: 15px }
.p-me { position: relative; padding: 20px 14px 14px; display: grid; justify-items: center; gap: 5px; margin-bottom: 14px } .p-me .av { width: 66px; height: 66px; font-size: 30px } .p-me > b { font-size: 17px } .p-skin { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 9px; font-size: 12px; font-weight: 700; border: var(--bx) solid var(--bd); border-radius: 8px; background: var(--sun); box-shadow: var(--shx) } .p-skin::after { content: ""; position: absolute; inset: -7px }
.p-sum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; align-items: end; padding: 14px 8px 12px; margin-bottom: 14px; background: var(--hero); color: var(--hero-fg); border-color: var(--hero-bd); font-size: 12px } .p-sum b { display: block; font-size: 24px; line-height: 1.2; color: var(--hero-num) } .p-sum div:first-child b { font-size: 36px }
.p-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 10px; text-align: center; font-size: 11px; color: var(--mut) } .p-cal i { font-style: normal; height: 40px; display: grid; place-content: center; line-height: 1.15; border-radius: 7px; background: var(--chip); border: 1.5px solid var(--chip); color: var(--ink) } .p-cal .has { background: var(--sun); border-color: var(--bd); font-weight: 700 } .p-cal .td { border: 1.5px dashed var(--poo) } .p-cal i b { display: block; color: var(--poo) } .wx[data-skin="warm"] .p-cal .has { background: #f6d9a0 }
.dj-fly { position: fixed; z-index: 12; left: 0; top: 0; font-size: 40px; line-height: 1; pointer-events: none }

@media (min-width: 1001px) and (max-height: 940px) { .dj { --z: .9 } }
@media (min-width: 1001px) and (max-height: 820px) { .dj { --z: .8 } }
@media (max-width: 1000px) { .dj { grid-template-columns: minmax(0, 1fr); justify-items: center } .djphone, .djsteps { grid-column: 1 } .djphone { grid-row: 1 } .djsteps { justify-self: center; max-width: 440px } }
@media (max-width: 760px) { .dj { --z: .84; padding: 24px 8px } .djphone { padding: 8px } }
@media (max-width: 375px) { .dj { --z: .76 } }
@media (max-width: 340px) { .dj { --z: .68 } }
