/* ============================================================
   base.css — 设计变量 / 重置 / 通用标签 / 登录注册弹窗 / 余额不足弹窗
   来源：美超大计算原型.html
   ============================================================ */

  /* 控制台主题蓝（原定义于 console.css，集中于此处统一管理） */
  :root{--cblue:#2F6BFF;}
  :root{
    --purple:#6200FC;
    --red:#FF0100;
    --ink:#0F172A;
    --text:#3B3B46;
    --muted:#8A8A99;
    --line:#ECECF2;
    --bg:#FFFFFF;
    --soft:#F5F6FA;
    --green:#12B76A;
    --amber:#F79009;
    --page:1200px;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
    color:var(--text);line-height:1.7;
    -webkit-font-smoothing:antialiased;
    background-color:var(--bg);
    background-image:
      radial-gradient(900px 440px at 6% -6%,rgba(98,0,252,.075),transparent 66%),
      radial-gradient(780px 400px at 98% 4%,rgba(255,1,0,.05),transparent 66%),
      radial-gradient(700px 380px at 50% 62%,rgba(98,0,252,.035),transparent 70%);
    background-repeat:no-repeat;
  }
  a{color:inherit;text-decoration:none;}
  .wrap{width:min(var(--page),calc(100% - 48px));margin:0 auto;}
  button{font-family:inherit;cursor:pointer;}

  /* ============ 登录页（全屏沉浸） ============ */
  .login-mask{
    position:fixed;inset:0;z-index:240;overflow:auto;
    display:flex;align-items:flex-start;justify-content:center;
    gap:clamp(48px,9vw,150px);padding:40px;
    background:
      radial-gradient(1000px 560px at 6% 96%,rgba(255,150,210,.34),transparent 66%),
      radial-gradient(860px 520px at 96% 0%,rgba(180,140,255,.34),transparent 64%),
      radial-gradient(560px 380px at 60% 40%,rgba(255,255,255,.55),transparent 72%),
      linear-gradient(115deg,#FFFFFF 0%,#F7F2FF 40%,#F3EDFF 66%,#FDF3FB 100%);
    opacity:0;visibility:hidden;transition:opacity .28s,visibility .28s;
  }
  .login-mask.show{opacity:1;visibility:visible;}
  .lg-scene{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
  .lg-scene svg{width:100%;height:100%;display:block;}

  .lg-brand{
    position:relative;z-index:1;width:min(430px,38vw);flex-shrink:0;
    margin-top:clamp(30px,8vh,80px);
  }
  .lg-brand h1{font-size:clamp(34px,3.5vw,50px);font-weight:800;letter-spacing:1px;line-height:1.2;white-space:nowrap;}
  .lg-b1{color:#E6005E;}
  .lg-bdot{color:#8A5CE8;}
  .lg-b2{
    background:linear-gradient(90deg,#9A3CEC 0%,#6D5BE8 55%,#4B6BE0 100%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  }
  .lg-slogan{margin-top:26px;font-size:19px;font-weight:700;letter-spacing:1px;color:#262235;}
  .lg-desc{margin-top:12px;font-size:13px;color:#8B86A3;letter-spacing:.4px;}

  .login-card{
    position:relative;z-index:2;width:350px;flex-shrink:0;
    margin-top:clamp(30px,8vh,80px);
    background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.9);
    border-radius:8px;padding:30px 30px 24px;
    box-shadow:0 24px 70px rgba(84,52,150,.16);
    transform:translateY(12px);transition:transform .28s;
  }
  .login-mask.show .login-card{transform:none;}
  .login-close{
    position:absolute;right:8px;top:6px;width:30px;height:30px;border:0;border-radius:50%;
    background:transparent;color:#B2AFC4;font-size:21px;line-height:1;
  }
  .login-close:hover{background:#F4F0FB;color:#6B4AE8;}
  .lg-welcome{font-size:17px;font-weight:800;color:#20202C;}
  .lg-tip{margin-top:8px;font-size:12px;color:#A3A0B0;}

  .lg-tabs{display:flex;gap:22px;margin-top:22px;border-bottom:1px solid #F0EDF7;}
  .lg-tab{
    position:relative;padding:0 0 10px;border:0;background:transparent;
    font-family:inherit;font-size:12.5px;color:#9B98AA;white-space:nowrap;
  }
  .lg-tab:hover{color:#6B4AE8;}
  .lg-tab.on{color:#E6002A;font-weight:700;}
  .lg-tab.on::after{
    content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
    background:linear-gradient(90deg,#E6002A,#7B2AE8);border-radius:2px;
  }
  .lg-pane{display:none;}
  .lg-pane.on{display:block;animation:lgFade .22s ease;}
  @keyframes lgFade{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:none;}}

  .lg-label{display:block;margin-top:16px;font-size:11.5px;font-weight:600;color:#5C586E;}
  .lg-phone-row,.lg-code-row{
    display:flex;align-items:center;height:40px;margin-top:8px;
    border:1px solid #ECEAF3;border-radius:7px;background:#F8F7FC;
  }
  .lg-phone-row:focus-within,.lg-code-row:focus-within{
    background:#fff;border-color:#C9B6FF;box-shadow:0 0 0 3px rgba(98,0,252,.07);
  }
  .lg-phone-row input,.lg-code-row input{
    flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;
    padding:0 12px;font-size:13px;color:#20202C;font-family:inherit;
  }
  .lg-phone-row input::placeholder,.lg-code-row input::placeholder{color:#B6B3C2;}
  .lg-prefix{width:50px;text-align:center;font-size:12.5px;font-weight:600;color:#3E3A50;flex-shrink:0;}
  .lg-prefix-line{width:1px;height:18px;background:#DED9EC;flex-shrink:0;}
  .lg-code-btn{
    height:100%;padding:0 14px;border:0;background:transparent;
    color:#6B4AE8;font-family:inherit;font-size:12px;font-weight:700;white-space:nowrap;
  }
  .lg-code-btn:hover{color:#E6002A;}
  .lg-code-btn:disabled{color:#B6B3C2;cursor:not-allowed;}
  .lg-submit{
    margin-top:24px;width:100%;height:44px;border:0;border-radius:7px;color:#fff;
    font-size:14px;font-weight:700;font-family:inherit;
    background:linear-gradient(90deg,#E9113C 0%,#A3179B 52%,#6D28D9 100%);
  }
  .lg-submit:hover{filter:brightness(1.07);}
  .lg-submit:disabled{opacity:.65;cursor:not-allowed;filter:none;}

  /* 微信扫一扫 */
  .wx-qr{
    width:150px;height:150px;margin:20px auto 0;padding:8px;
    border:1px solid #EDEAF5;border-radius:8px;background:#fff;
    box-shadow:0 6px 20px rgba(84,52,150,.08);
  }
  .wx-title{margin-top:14px;text-align:center;font-size:12.5px;font-weight:700;color:#20202C;}
  .wx-status{margin-top:6px;text-align:center;font-size:11px;color:#9B98AA;}
  .wx-status.ok{color:#07A854;font-weight:700;}
  .wx-ops{display:flex;gap:8px;margin-top:14px;}
  .wx-btn{
    flex:1;height:32px;border:1px solid #E9E4F5;border-radius:6px;background:#fff;
    color:#6B5B82;font-family:inherit;font-size:11px;
  }
  .wx-btn:hover{border-color:#C9B6FF;color:#6B4AE8;}
  .wx-btn.primary{border:0;background:linear-gradient(90deg,#E9113C,#6D28D9);color:#fff;font-weight:700;}
  .wx-btn:disabled{opacity:.55;cursor:not-allowed;}
  .wx-hint{margin-top:10px;text-align:center;font-size:10px;color:#B0ACBE;line-height:1.6;}

  .lg-agree{margin-top:16px;text-align:center;font-size:10.5px;color:#A3A0B0;}
  .lg-agree a{color:#6B4AE8;}
  .lg-demo{
    margin-top:10px;padding:8px 12px;border-radius:6px;
    background:#F7F3FF;border:1px solid #EDE3FF;
    font-size:10.5px;line-height:1.6;color:#6B4AE8;
  }
  .lg-demo b{font-weight:800;}
  .lg-back{
    display:block;margin:10px auto 0;border:0;background:transparent;
    color:#B0ACBE;font-size:10.5px;font-family:inherit;padding:4px 8px;
  }
  .lg-back:hover{color:#6B4AE8;}

  @media (max-width:980px){
    .lg-brand{display:none;}
    .lg-scene{opacity:.6;}
    .login-mask{padding:24px;}
  }
  @media (max-width:640px){
    .login-mask{padding:14px;gap:0;}
    .login-card{width:min(400px,100%);padding:26px 22px 20px;}
    .lg-scene{opacity:.4;}
  }

  .lg-toast{
    position:fixed;left:50%;top:28px;z-index:300;transform:translate(-50%,-16px);
    max-width:min(520px,calc(100vw - 40px));text-align:center;
    background:rgba(23,23,33,.92);color:#fff;font-size:13.5px;line-height:1.6;
    padding:11px 20px;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.28);
    opacity:0;visibility:hidden;transition:opacity .22s,transform .22s,visibility .22s;
  }
  .lg-toast.show{opacity:1;visibility:visible;transform:translate(-50%,0);}

  /* ============ 余额不足提醒弹窗 ============ */
  .bm-card{width:min(420px,100%);text-align:center !important;padding:36px 36px 28px !important;}
  .bm-icon{
    width:52px;height:52px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
    background:rgba(255,1,0,.08);color:var(--red);font-size:30px;font-weight:800;line-height:1;
  }
  .bm-title{font-size:19px;font-weight:800;color:var(--ink);margin:0 0 10px;}
  .bm-desc{font-size:13.5px;color:var(--text);line-height:1.8;margin:0 0 22px;}
  .bm-desc b{color:var(--red);font-size:15px;}
  .bm-desc .bm-src{display:block;font-size:12px;color:var(--muted);margin-top:6px;}
  .bm-actions{display:flex;gap:12px;justify-content:center;}
  .bm-actions .c-btn{height:44px;padding:0 30px;font-size:14px;}
