*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;background:#e9ebef;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#1a1a1a;font-size:14px}
.phone{position:relative;width:420px;max-width:100vw;height:100vh;margin:0 auto;background:#f2f3f6;display:flex;flex-direction:column;box-shadow:0 0 24px rgba(0,0,0,.08)}
.topbar{height:56px;flex:0 0 56px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #f0f0f0}
.topbar h1{font-size:17px;font-weight:600;margin:0;letter-spacing:.5px}
.top-right{position:absolute;right:16px;color:#2b7cf3;font-size:14px;cursor:pointer;text-decoration:none}
.top-left{position:absolute;left:16px;font-size:11px;color:#bbb;cursor:pointer}
.top-left.on{color:#27ae60}
.scroll{flex:1;overflow-y:auto;padding-bottom:12px}
.card{background:#fff;border-radius:8px;margin:10px 12px;padding:14px}
.account{display:flex;align-items:center;gap:12px}
.avatar{width:46px;height:46px;border-radius:50%;background:#3dc8a8;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;flex:0 0 46px}
.acc-txt{flex:1;min-width:0}
.acc-phone{font-size:19px;font-weight:600}
.acc-sub{font-size:12px;color:#999;margin-top:2px}
.btn-login{border:1px solid #dcdfe6;background:#fff;border-radius:16px;padding:5px 14px;font-size:12px;color:#555;cursor:pointer}
.pro-banner{margin:0 12px 10px;background:#fff5d9;border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px}
.pro-ico{width:28px;height:28px;border-radius:50%;background:#e6c88a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;flex:0 0 28px}
.pro-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pro-txt b{font-size:14px}
.pro-txt span{font-size:11px;color:#8a7a55}
.pro-btn{background:#f0dda8;color:#7a6330;border:0;border-radius:16px;padding:7px 12px;font-size:12px;white-space:nowrap;cursor:pointer}
.group{margin:10px 12px 0;background:#fff;border-radius:8px;overflow:hidden}
.group-title{padding:14px 14px 10px;font-size:15px;font-weight:600;border-bottom:1px solid #f0f0f0}
.grid{display:grid;grid-template-columns:repeat(3,1fr)}
.cell{min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;cursor:pointer;background:#fff;transition:background .12s;padding:10px 4px;position:relative}
.cell:nth-child(3n){border-right:0}
.cell:active{background:#f5f7fb}
.cell:hover{background:#fafbfd}
.ico{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.cell-name{font-size:13px;font-weight:500;text-align:center;line-height:1.2}
.cell-sub{font-size:10px;color:#aaa;margin-top:-5px;text-align:center}
.badge{position:absolute;top:6px;right:8px;font-size:9px;background:#e5484d;color:#fff;border-radius:3px;padding:1px 4px}
.badge.blue{background:#2b7cf3}
.pagefoot{text-align:center;color:#b3b6bd;font-size:10px;padding:18px 20px 8px;line-height:1.6}
.freebar{flex:0 0 52px;background:#fff;border-top:1px solid #eee;display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:8px;font-size:11px;color:#666}
.freebar button{background:#f6e3c6;color:#8a6a35;border:0;border-radius:6px;padding:8px 10px;font-size:11px;white-space:nowrap;cursor:pointer}

/* 功能页 */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);display:none;align-items:center;justify-content:center;z-index:50}
.overlay.show{display:flex}
.sheet{width:420px;max-width:100vw;height:100vh;max-height:100vh;background:#f2f3f6;display:flex;flex-direction:column}
@media(min-width:600px){.sheet{height:92vh;border-radius:12px;overflow:hidden}}
.sheet-head{height:52px;flex:0 0 52px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #eee}
.sheet-head h2{margin:0;font-size:16px;font-weight:600}
.back,.close{position:absolute;background:none;border:0;font-size:22px;color:#2b7cf3;cursor:pointer;top:12px}
.back{left:14px}.close{right:14px;font-size:16px;color:#999}
.sheet-body{flex:1;overflow-y:auto;padding:12px}
.panel{background:#fff;border-radius:8px;padding:14px;margin-bottom:12px}
.panel h3{margin:0 0 10px;font-size:14px;font-weight:600}
.panel .desc{font-size:12px;color:#888;line-height:1.6;margin:-4px 0 12px}
label.f{display:block;margin-bottom:10px}
label.f span{display:block;font-size:12px;color:#666;margin-bottom:5px}
input,textarea,select{width:100%;border:1px solid #dfe2e8;border-radius:6px;padding:9px 10px;font-size:13px;font-family:inherit;background:#fff;color:#1a1a1a;outline:none}
input:focus,textarea:focus,select:focus{border-color:#2b7cf3}
textarea{min-height:76px;resize:vertical;line-height:1.5}
.btn{width:100%;background:#2b7cf3;color:#fff;border:0;border-radius:6px;padding:11px;font-size:14px;cursor:pointer;margin-top:4px}
.btn.sec{background:#f2f4f8;color:#333;border:1px solid #e2e5ea}
.btn.sm{width:auto;padding:7px 14px;font-size:12px;margin:0}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.result{margin-top:12px;background:#f8f9fb;border:1px solid #e8ebf0;border-radius:6px;padding:10px;font-size:12px;max-height:340px;overflow:auto}
.result.err{background:#fff2f2;border-color:#ffd4d4;color:#c0392b}
pre{margin:0;white-space:pre-wrap;word-break:break-all;font-family:ui-monospace,Consolas,monospace;font-size:11px;line-height:1.6}
table{width:100%;border-collapse:collapse;font-size:11px;margin-top:6px}
th,td{border:1px solid #e8ebf0;padding:5px 6px;text-align:left;word-break:break-all}
th{background:#f5f7fa;color:#555;font-weight:600}
.svgbox{background:#fff;border:1px solid #eee;border-radius:6px;padding:10px;text-align:center;margin-top:8px;overflow:auto}
.svgbox svg{max-width:100%;height:auto}
.svg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}
.svg-grid>div{background:#fff;border:1px solid #eee;border-radius:6px;padding:6px;text-align:center;font:10px monospace;overflow:hidden}
.svg-grid svg{max-width:100%;height:60px}
.chip{display:inline-block;background:#eef4ff;color:#2b7cf3;border-radius:4px;padding:2px 7px;font-size:11px;margin:2px 4px 2px 0}
.chip.g{background:#eaf7f1;color:#1e9e68}.chip.r{background:#ffeded;color:#d0453b}
.kv{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed #eee;font-size:12px}
.kv:last-child{border:0}.kv b{font-weight:600}
.dialog{width:320px;background:#fff;border-radius:12px;padding:20px}
.dialog h3{margin:0 0 8px;font-size:16px}
.dialog .hint{font-size:12px;color:#888;margin:0 0 14px;line-height:1.5}
.dialog input{margin-bottom:10px}
.dialog-btns{display:flex;gap:8px;margin-top:6px}
.dialog-btns button{flex:1;padding:9px;border:1px solid #dfe2e8;background:#fff;border-radius:6px;cursor:pointer}
.dialog-btns button.primary{background:#2b7cf3;color:#fff;border-color:#2b7cf3}
.guide-item{background:#fff;border-radius:8px;padding:12px 14px;margin-bottom:8px;display:flex;gap:10px;align-items:flex-start}
.guide-item .gi{width:30px;height:30px;border-radius:50%;background:#eef4ff;display:flex;align-items:center;justify-content:center;font-size:14px;flex:0 0 30px}
.guide-item b{font-size:13px}.guide-item p{margin:2px 0 0;font-size:11px;color:#999}
.guide-h{font-size:12px;color:#888;margin:14px 2px 8px}
.plan{background:#fff;border-radius:8px;padding:12px 14px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border:1px solid transparent}
.plan:hover{border-color:#2b7cf3}.plan.cur{border-color:#2b7cf3;background:#f5f9ff}
.plan b{font-size:14px}.plan p{margin:3px 0 0;font-size:11px;color:#999;line-height:1.5}
.toast{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);background:rgba(20,20,20,.85);color:#fff;padding:9px 16px;border-radius:20px;font-size:12px;z-index:99;opacity:0;transition:opacity .2s;pointer-events:none}
.toast.show{opacity:1}
