/* 积木解码 · H5 固定 375px 手机模板 · 黑白极简 */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{background:#e8e8e8}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#111;
     display:flex;justify-content:center;min-height:100vh;
     font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
input,select,textarea,button{font-family:inherit;font-size:14px;outline:none;color:#111}

/* ===== 手机外壳 固定 375（不自适应） ===== */
.phone{width:375px;min-height:100vh;background:#fff;position:relative;
       border-left:1px solid #d8d8d8;border-right:1px solid #d8d8d8;
       display:flex;flex-direction:column}
.appbar{height:50px;background:#fff;color:#111;border-bottom:1px solid #111;
        display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;
        letter-spacing:3px;position:sticky;top:0;z-index:20}
.appbar .back{position:absolute;left:14px;font-size:22px;font-weight:400;line-height:1;cursor:pointer}
.content{flex:1;padding:14px 14px 78px}

/* ===== 底部 tabbar ===== */
.tabbar{position:fixed;bottom:0;width:375px;height:58px;background:#fff;display:flex;
        border-top:1px solid #111;z-index:30}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
          color:#a3a3a3;font-size:11px;gap:3px;letter-spacing:1px}
.tabbar a.on{color:#111;font-weight:700}
.tabbar a i{font-size:18px;font-style:normal;line-height:1}

/* ===== 卡片：细线，无阴影 ===== */
.card{background:#fff;border:1px solid #e2e2e2;border-radius:8px;padding:16px 14px;margin-bottom:12px}
.card h3{font-size:12px;font-weight:700;letter-spacing:2px;color:#111;margin-bottom:14px;
         display:flex;align-items:center;gap:8px}
.card h3::before{content:"";width:14px;height:1px;background:#111}
.muted{color:#8c8c8c;font-size:12px;line-height:1.8}

/* ===== 表单 ===== */
.field{margin-bottom:14px}
.field label{display:block;font-size:12px;color:#666;margin-bottom:7px;letter-spacing:.5px}
.field input,.field select{width:100%;height:44px;border:1px solid #d4d4d4;border-radius:6px;
        padding:0 12px;background:#fff;font-size:14px}
.field input:focus,.field select:focus{border-color:#111;box-shadow:inset 0 0 0 1px #111}
.field input::placeholder{color:#b3b3b3}
.row2{display:flex;gap:10px}
.row2 .field{flex:1}

/* ===== 按钮：黑白 ===== */
.btn{width:100%;height:46px;border:1px solid #111;border-radius:6px;font-size:15px;font-weight:600;
     color:#fff;background:#111;cursor:pointer;letter-spacing:1px;transition:background .15s,color .15s}
.btn:hover{background:#333}
.btn:active{background:#000}
.btn.ghost{background:#fff;color:#111}
.btn.ghost:hover{background:#f2f2f2}
.btn.danger{background:#111;color:#fff}
.btn.gray{background:#f4f4f4;color:#111;border-color:#d4d4d4}
.btn.gray:hover{background:#e8e8e8}
.btn.sm{height:34px;font-size:12px;border-radius:5px;width:auto;padding:0 14px;letter-spacing:.5px}
.btn-row{display:flex;gap:10px}
.btn-row .btn{flex:1}

/* ===== 余额卡：纯黑块 ===== */
.balance-card{background:#111;border-radius:8px;padding:20px 18px;color:#fff;margin-bottom:12px}
.balance-card .lab{font-size:11px;letter-spacing:2px;color:#a3a3a3}
.balance-card .val{font-size:36px;font-weight:700;margin:8px 0 4px;letter-spacing:-.5px}
.balance-card .val small{font-size:13px;font-weight:400;margin-left:5px;color:#a3a3a3}
.balance-card .sub{font-size:11px;color:#a3a3a3;letter-spacing:.3px}

/* ===== 列表 ===== */
.list{background:#fff;border:1px solid #e2e2e2;border-radius:8px;overflow:hidden}
.list a,.list div.item{display:flex;align-items:center;justify-content:space-between;
       padding:16px 14px;border-bottom:1px solid #efefef;font-size:14px}
.list a:last-child,.list div.item:last-child{border-bottom:none}
.list a:active{background:#f6f6f6}
.list .arrow{color:#b3b3b3;font-size:16px}
.list .row-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.list .ic{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;
          stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:#111}

/* ===== 弹窗 ===== */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:120;padding:20px;
       display:flex;align-items:center;justify-content:center}
.modal-box{background:#fff;border-radius:10px;padding:22px 20px;width:100%;max-width:320px;
           text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.18)}
.modal-box h3{font-size:15px;font-weight:700;letter-spacing:2px;margin-bottom:14px}
.modal-box .site{font-size:17px;font-weight:700;letter-spacing:1px;margin:6px 0 2px}
.modal-box .site-sub{font-size:11px;color:#8c8c8c;word-break:break-all;margin-bottom:4px}

/* ===== 客服联系方式 ===== */
.contact{display:flex;align-items:center;gap:10px;font-size:14px;color:#111;
         border:1px solid #e2e2e2;border-radius:6px;padding:13px 12px;margin-bottom:8px;background:#fff}
.contact:last-child{margin-bottom:0}
.contact:active{background:#f6f6f6}
.contact .tg{width:20px;height:20px;color:#111;flex-shrink:0}
.contact .qq{width:20px;height:20px;border-radius:5px;background:#111;color:#fff;font-size:9px;
             font-weight:700;display:flex;align-items:center;justify-content:center;
             flex-shrink:0;letter-spacing:-.5px}
.contact .arr{margin-left:auto;color:#b3b3b3}

/* ===== 取码页 ===== */
.vcode{font-size:40px;font-weight:700;letter-spacing:10px;text-align:center;color:#111;
       padding:18px 0 6px;font-family:Consolas,"Courier New",monospace;line-height:1.1}
.vcode.wait{font-size:15px;letter-spacing:2px;color:#b3b3b3;font-weight:500;
            font-family:inherit;padding:26px 0}
.vcode-card{border:1px solid #111;border-width:2px}
.checkline{display:flex;align-items:center;gap:8px;font-size:13px;color:#444;margin:2px 0 12px}
.checkline input{width:16px;height:16px;accent-color:#111}
.phone-big{font-size:27px;font-weight:700;letter-spacing:2px;color:#111;text-align:center;
           padding:16px 0;background:#f6f6f6;border:1px dashed #d4d4d4;border-radius:6px;margin-bottom:12px}
.phone-big.empty{color:#b3b3b3;font-size:14px;font-weight:500;letter-spacing:1px}
.log{background:#111;color:#f2f2f2;border-radius:6px;padding:12px;height:150px;overflow-y:auto;
     font-size:11.5px;line-height:1.9;font-family:Consolas,"Courier New",monospace;white-space:pre-wrap}
.log .t{color:#8c8c8c}

/* ===== 提示 ===== */
.flash{background:#f6f6f6;color:#111;border:1px solid #d4d4d4;border-left:3px solid #111;
       border-radius:5px;padding:10px 12px;font-size:13px;margin-bottom:12px}
.flash.ok{background:#111;color:#fff;border-color:#111}
.tag{display:inline-block;padding:3px 8px;border-radius:4px;font-size:11px;letter-spacing:.5px}
.tag.p{background:#fff;color:#111;border:1px solid #111}
.tag.s{background:#111;color:#fff;border:1px solid #111}
.tag.e{background:#f2f2f2;color:#8c8c8c;border:1px solid #e2e2e2}

/* ===== 认证页 ===== */
.auth-wrap{padding:44px 22px}
.auth-logo{text-align:center;margin-bottom:32px}
.auth-logo .cube{width:62px;height:62px;margin:0 auto 16px;border-radius:8px;
      background:#111;color:#fff;font-size:28px;display:flex;align-items:center;
      justify-content:center;font-weight:700}
.auth-logo h1{font-size:20px;letter-spacing:5px;font-weight:700}
.auth-logo p{font-size:11px;color:#8c8c8c;margin-top:8px;letter-spacing:2px}
.auth-foot{text-align:center;font-size:12px;color:#8c8c8c;margin-top:20px}
.auth-foot a{color:#111;font-weight:700;border-bottom:1px solid #111;padding-bottom:1px}

/* ===== 充值 ===== */
.packs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pack{border:1px solid #d4d4d4;border-radius:6px;padding:15px 0;text-align:center;
      cursor:pointer;background:#fff;transition:.15s}
.pack:hover{border-color:#111}
.pack.on{border:1px solid #111;background:#111}
.pack.on .n,.pack.on .g{color:#fff}
.pack .n{font-size:19px;font-weight:700;color:#111}
.pack .n small{font-size:11px;font-weight:400;margin-left:1px}
.pack .g{font-size:10px;color:#8c8c8c;margin-top:4px;letter-spacing:.5px}

.paybox{text-align:center}
.qr{width:186px;height:186px;margin:12px auto;background:#fff;border:1px solid #e2e2e2;
    border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.qr img,.qr canvas{width:176px;height:176px}
.addr{font-size:11px;color:#333;word-break:break-all;background:#f6f6f6;border:1px solid #e2e2e2;
      border-radius:5px;padding:10px;margin-top:10px;font-family:Consolas,monospace;line-height:1.6}
.amount-big{font-size:30px;font-weight:700;color:#111;letter-spacing:-.5px}

/* ===== 后台（桌面） ===== */
.admin{width:100%;min-height:100vh;background:#f4f4f4;display:flex;font-family:inherit}
.side{width:190px;background:#111;color:#8c8c8c;padding:20px 0;flex-shrink:0;
      overflow-y:auto;max-height:100vh}
.side .brand{padding:0 20px 14px;font-size:15px;font-weight:700;color:#fff;letter-spacing:3px}
.side .grp{padding:16px 20px 6px;font-size:10px;font-weight:600;letter-spacing:2px;
           color:#5f5f5f;text-transform:uppercase}
.side a{display:block;padding:10px 20px;font-size:13px;color:#8c8c8c;
        border-left:2px solid transparent;letter-spacing:.5px}
.side a:hover{color:#fff}
.side a.on{background:#1f1f1f;color:#fff;border-left-color:#fff}
.side a.logout{margin-top:16px;border-top:1px solid #232323;padding-top:14px}
.main{flex:1;padding:24px 26px;min-width:0}
.main h2{font-size:17px;margin-bottom:16px;letter-spacing:1px;font-weight:700}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin-bottom:18px}
.stat{background:#fff;border:1px solid #e2e2e2;border-radius:6px;padding:16px}
.stat .k{font-size:11px;color:#8c8c8c;letter-spacing:1px}
.stat .v{font-size:24px;font-weight:700;margin-top:8px;color:#111;letter-spacing:-.5px}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e2e2;
      border-radius:6px;overflow:hidden;font-size:12.5px}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid #efefef}
th{background:#fafafa;color:#666;font-weight:600;font-size:11px;letter-spacing:1px}
tr:last-child td{border-bottom:none}
tr:hover td{background:#fafafa}
input.mini,select.mini{height:30px;border:1px solid #d4d4d4;border-radius:4px;padding:0 8px;
      font-size:12px;background:#fff}
input.mini:focus{border-color:#111}
.admin-login{width:360px;max-width:92vw;margin:0;background:#fff;border:1px solid #111;
             border-radius:8px;padding:30px}
.admin-login h2{font-size:16px;text-align:center;margin-bottom:22px;letter-spacing:2px}
body.admin-auth{display:flex;align-items:center;justify-content:center;background:#f4f4f4;
                min-height:100vh;padding:20px}
