/* 双人测试：沿用 H5 首页风格（#f7f7f7 底、白卡片、#ff704d 点睛） */
:root{--ink:#222;--sub:#999;--line:#ececec;--a:#4a7fd6;--b:#ff704d;--brand:#ff704d;--card:#fff}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#ececec;font-size:14px}
a{color:inherit;text-decoration:none}
.pw{max-width:430px;min-height:100dvh;margin:0 auto;background:#f7f7f7;padding:0 15px calc(84px + env(safe-area-inset-bottom))}
.ptop{height:54px;margin:0 -15px 6px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative}
.ptop h1{position:relative;margin:0;padding-bottom:9px;font-size:19px;font-weight:500}.ptop h1::after{content:"";position:absolute;width:30px;height:3px;background:var(--brand);border-radius:3px;left:50%;bottom:0;transform:translateX(-50%)}
.ptop .back{position:absolute;left:14px;top:14px;font-size:20px;color:#666;line-height:1}
h1{font-size:19px;font-weight:500;text-align:center;margin:14px 0 4px}.sub{color:var(--sub);font-size:13px;line-height:1.7}
.card{background:var(--card);border-radius:11px;padding:16px;margin:12px 0;box-shadow:0 4px 7px #00000014}
.card h2{font-size:16px;font-weight:600;margin:0 0 8px}.card h3{font-size:14px;font-weight:600;margin:14px 0 6px}
.sec{font-weight:400;color:#999;font-size:13px;margin:18px 0 9px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tcard{display:block;background:#fff;border-top:4px solid var(--brand);border-radius:11px;padding:14px 10px;text-align:center;color:var(--ink);box-shadow:0 4px 7px #00000014;position:relative}
.tcard .ic{font-size:32px;line-height:1.3}.tcard b{display:block;font-size:15px;font-weight:600;margin:6px 0 4px}.tcard small{color:var(--sub);font-size:11px;line-height:1.5;display:block}
.tcard .rk{position:absolute;top:0;right:0;border-radius:0 9px 0 6px;padding:2px 6px;background:var(--brand);color:#fff;font-size:10px}
.btn{display:block;width:100%;border:0;border-radius:10px;padding:13px;font-size:15px;font-weight:500;text-align:center;cursor:pointer;margin-top:10px;font-family:inherit}
.btn.pri{background:var(--brand);color:#fff}.btn.ghost{background:#fff;color:#444;border:1px solid #e3e3e3}
.btn:disabled{opacity:.5}
.code{font-size:28px;font-weight:700;letter-spacing:4px;color:var(--brand);text-align:center;margin:6px 0}
.row{display:flex;gap:8px;align-items:center}.row input{flex:1;padding:12px;border:1px solid #e3e3e3;border-radius:10px;font-size:16px;text-transform:uppercase;min-width:0}
.row .btn{width:auto;margin:0;padding:12px 16px}
input.f{width:100%;padding:12px;border:1px solid #e3e3e3;border-radius:10px;font-size:16px;margin:6px 0}
.prog{height:6px;background:#f0f0f0;border-radius:3px;overflow:hidden;margin:10px 0}.prog i{display:block;height:100%;background:var(--brand)}
.list a{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid var(--line);color:var(--ink)}
.list a:first-child{border-top:0}.list small{color:var(--sub);display:block;font-size:12px;margin-top:2px}.list a>span:last-child{color:var(--brand)}
.dimgrid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.dimgrid>div{padding:11px 8px;border-bottom:1px solid var(--line);font-size:12px;color:#888;line-height:1.6}
.dimgrid>div:nth-child(odd){border-right:1px solid var(--line)}.dimgrid b{color:var(--ink);font-size:14px;display:flex;justify-content:space-between}.dimgrid b span:last-child{color:var(--brand)}
.radar{width:100%;max-width:340px;display:block;margin:0 auto}
.legend{text-align:center;font-size:13px;color:var(--sub)}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 4px 0 12px}
.bars .bar{margin:12px 0}.bl{display:flex;justify-content:space-between;font-size:13px}.ca{color:var(--a);font-weight:600}.cb{color:var(--b);font-weight:600}
.bt{position:relative;height:9px;background:#f0f0f0;border-radius:5px;margin-top:5px}
.bt i{position:absolute;top:0;height:9px}.ba{right:50%;background:var(--a);border-radius:5px 0 0 5px}.bb{left:50%;background:var(--b);border-radius:0 5px 5px 0}
.bt:after{content:"";position:absolute;left:50%;top:-3px;width:2px;height:15px;background:#bbb}
.hero{text-align:center}.hero .emo{font-size:62px;margin:10px 0;line-height:1.2;background:#fff5f1;border:1px solid #ffe1d6;border-radius:11px;padding:26px 0}
.hero .lbl{font-size:30px;font-weight:600;margin:10px 0}.hero .tag{font-size:12px;color:#fff;background:var(--brand);border-radius:6px;padding:2px 8px}
.duo{display:flex;justify-content:space-around;align-items:center;margin:12px 0}.duo div{text-align:center}.duo .av{width:50px;height:50px;border-radius:50%;background:#f3f3f3;display:flex;align-items:center;justify-content:center;font-size:22px;margin:0 auto 4px}
.duo b{display:block;font-weight:600}.duo small{color:var(--sub)}
.p{font-size:14px;line-height:1.85;color:#555;margin:8px 0}
.tips li{font-size:14px;line-height:1.8;color:#555}
.cta{border:1px solid var(--brand);box-shadow:none}
.q{min-height:calc(100dvh - 160px);display:flex;flex-direction:column}.qt{font-size:19px;font-weight:600;text-align:center;line-height:1.6;margin:26px 6px 8px}
.qh{text-align:center;color:var(--sub);font-size:13px;margin-bottom:12px}
.opts2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.opts2 button{min-height:92px}
.opt{width:100%;background:#fff;border:1px solid #e6e6e6;border-radius:11px;padding:15px;font-size:15px;font-weight:500;color:var(--ink);box-shadow:0 4px 7px #00000010;margin:6px 0;cursor:pointer;text-align:left;font-family:inherit}
.opts2 .opt{text-align:center;margin:0}.opt.sel{border-color:var(--brand);background:#fff5f1;color:#c34c28}
.lk{display:flex;justify-content:space-between;margin:12px 4px 4px}.lk button{width:52px;height:52px;border-radius:50%;border:2px solid #c9c9c9;background:#fff;cursor:pointer}
.lk button:nth-child(4),.lk button:nth-child(5){border-color:#ffb39f}.lk button.sel{background:var(--brand);border-color:var(--brand)}
.lkl{display:flex;justify-content:space-between;font-size:12px;color:var(--sub);margin:0 4px}
.nav2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.gal{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.gal div{background:#fff;border:1px solid #e6e6e6;border-radius:9px;padding:12px 4px;text-align:center;font-size:12px}
.gal .e{font-size:28px;filter:grayscale(1);opacity:.4}.gal .on{border-color:var(--brand)}.gal .on .e{filter:none;opacity:1}.gal small{display:block;color:var(--sub);font-size:11px}
.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;z-index:10;background:rgba(255,255,255,.98);border-top:1px solid #ececec;display:flex;padding:5px 0 calc(6px + env(safe-area-inset-bottom))}
.tabbar a{flex:1;text-align:center;font-size:11px;line-height:1.5;color:#999}.tabbar img{display:block;width:29px;height:29px;margin:0 auto 1px}.tabbar .on{color:var(--brand)}
.ptoast{position:fixed;left:50%;top:40%;transform:translateX(-50%);background:#000c;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;opacity:0;pointer-events:none;transition:.2s;z-index:30}
.ptoast.show{opacity:1}.err{color:#d23c3c;text-align:center;font-size:14px;min-height:18px;margin-top:8px}
.small{font-size:12px;color:var(--sub);text-align:center;margin-top:10px;line-height:1.6}
