﻿:root{
  --bg:#f6f7ff;
  --card:#ffffff;
  --text:#172033;
  --muted:#74809a;
  --line:rgba(23,32,51,.08);
  --p:#6266f1;
  --p2:#8b5cf6;
  --green:#16a34a;
  --red:#ef4444;
  --orange:#f59e0b;
  --shadow:0 14px 36px rgba(31,41,77,.10);
  --radius:22px;
  --safe-bottom:env(safe-area-inset-bottom);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}
body{overflow-x:hidden}
button,input,textarea,select{font-family:inherit;font-size:16px}
button{border:0;cursor:pointer}
a{text-decoration:none;color:inherit}
.hide{display:none!important}
.page-shell{width:100%;max-width:520px;margin:0 auto;min-height:100vh;background:linear-gradient(180deg,#f2f4ff 0%,#f7f8ff 52%,#f8fafc 100%);position:relative;overflow:hidden}
.bg-glow{position:absolute;inset:-120px -90px auto auto;width:260px;height:260px;border-radius:999px;background:rgba(139,92,246,.18);filter:blur(8px);pointer-events:none}
.btn{height:46px;border-radius:16px;padding:0 18px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s}
.btn:active{transform:scale(.98)}
.btn-primary{color:#fff;background:linear-gradient(135deg,var(--p),var(--p2));box-shadow:0 12px 24px rgba(98,102,241,.25)}
.btn-dark{color:#fff;background:#121826}
.btn-light{color:#334155;background:#fff;border:1px solid var(--line)}
.btn-ghost{color:var(--p);background:rgba(98,102,241,.10)}
.btn-danger{color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c)}
.btn-full{width:100%}
.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(16px)}
.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}
.badge-ok{color:#118044;background:rgba(22,163,74,.12)}
.badge-warn{color:#a16207;background:rgba(245,158,11,.15)}
.badge-off{color:#b91c1c;background:rgba(239,68,68,.12)}
.muted{color:var(--muted)}
.empty{padding:18px;text-align:center;color:var(--muted);font-size:13px}

/* Auth */
.auth{min-height:100vh;padding:22px 18px 30px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:1}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.logo{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;color:#fff;font-weight:1000;background:linear-gradient(135deg,var(--p),var(--p2));box-shadow:0 14px 34px rgba(98,102,241,.30)}
.auth-brand h1{font-size:22px;margin:0;letter-spacing:.2px}
.auth-brand p{font-size:12px;margin:4px 0 0;color:var(--muted)}
.auth-hero{padding:22px;border-radius:28px;background:linear-gradient(135deg,#5b5ff5,#8b5cf6);color:#fff;box-shadow:0 18px 46px rgba(98,102,241,.26);margin-bottom:14px}
.auth-hero h2{font-size:24px;margin:0 0 8px}
.auth-hero p{margin:0;font-size:13px;line-height:1.7;color:rgba(255,255,255,.82)}
.auth-card{padding:18px}
.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#f1f3fb;padding:5px;border-radius:17px;margin-bottom:16px}
.auth-tab{height:38px;border-radius:13px;background:transparent;color:var(--muted);font-weight:900;font-size:13px}
.auth-tab.active{background:#fff;color:var(--p);box-shadow:0 8px 18px rgba(31,41,77,.08)}
.form{display:grid;gap:12px}
.field label{display:block;margin:0 0 7px;color:#66728a;font-size:12px;font-weight:900}
.field input{width:100%;height:48px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:0 14px;outline:none;color:var(--text)}
.field input:focus{border-color:rgba(98,102,241,.58);box-shadow:0 0 0 4px rgba(98,102,241,.10)}
.auth-note{margin-top:12px;font-size:12px;color:var(--muted);line-height:1.7}

/* Announcement */
.notice{display:none;margin:0 0 14px;padding:14px;border-radius:20px;border:1px solid rgba(98,102,241,.15);background:linear-gradient(135deg,rgba(98,102,241,.10),rgba(139,92,246,.08)),#fff}
.notice.show{display:block}
.notice-title{display:flex;align-items:center;gap:8px;margin:0 0 7px;font-size:15px;font-weight:1000}
.notice-content{margin:0;color:#56637c;font-size:13px;line-height:1.65;white-space:pre-wrap}
.notice-time{margin-top:8px;color:var(--muted);font-size:11px}

/* App */
.app{display:none;min-height:100vh;padding-bottom:calc(84px + var(--safe-bottom));position:relative;z-index:1}
.app.show{display:block}
.app-header{position:sticky;top:0;z-index:20;padding:12px 14px 10px;background:rgba(246,247,255,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(23,32,51,.04)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.header-brand{display:flex;align-items:center;gap:10px}
.header-logo{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:1000;background:linear-gradient(135deg,var(--p),var(--p2))}
.header-brand h2{font-size:17px;margin:0}
.header-brand p{font-size:11px;margin:2px 0 0;color:var(--muted)}
.user-pill{height:34px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;gap:7px;color:#334155;font-size:12px;font-weight:900;max-width:145px}
.user-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.main{padding:14px}

/* Home */
.balance-card{position:relative;overflow:hidden;padding:20px;border-radius:28px;background:linear-gradient(135deg,#555bf3,#8b5cf6);color:#fff;box-shadow:0 18px 46px rgba(98,102,241,.28)}
.balance-card::after{content:"";position:absolute;right:-70px;top:-80px;width:180px;height:180px;border-radius:999px;background:rgba(255,255,255,.14)}
.balance-label{font-size:13px;color:rgba(255,255,255,.75);margin-bottom:8px}
.balance-num{display:flex;align-items:flex-end;gap:8px}
.balance-num b{font-size:43px;line-height:1;font-weight:1000;letter-spacing:-1px}
.balance-num span{font-size:14px;color:rgba(255,255,255,.82);padding-bottom:5px}
.balance-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.balance-actions .btn{height:43px;background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.20);backdrop-filter:blur(10px)}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}
.stat{padding:14px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 26px rgba(31,41,77,.06)}
.stat p{margin:0 0 8px;color:var(--muted);font-size:12px;font-weight:800}
.stat b{font-size:20px}
.quick-card{padding:15px;margin-top:12px}
.quick-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.quick-title h3{margin:0;font-size:16px}
.quick-list{display:grid;gap:9px}
.quick-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#fafbff}
.quick-left{display:flex;align-items:center;gap:10px}
.quick-icon{width:36px;height:36px;border-radius:14px;display:grid;place-items:center;background:#eef1ff}

/* Views */
.view{display:none}
.view.active{display:block}
.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 0 13px}
.page-title h3{font-size:22px;margin:0}
.page-title p{margin:4px 0 0;color:var(--muted);font-size:12px}
.search{margin-bottom:12px}
.search input{width:100%;height:46px;border:1px solid var(--line);border-radius:17px;padding:0 14px;background:#fff;outline:none}
.project-list,.record-list{display:grid;gap:11px}
.project-card{padding:15px}
.project-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.project-name{font-size:16px;font-weight:1000;margin:0 0 5px}
.project-id{font-size:12px;color:var(--muted)}
.project-desc{font-size:13px;line-height:1.65;color:#56637c;margin:10px 0}
.project-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.meta{padding:10px;border-radius:15px;background:#f7f8fd}
.meta span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
.meta b{font-size:13px}
.price{color:var(--p);font-weight:1000}
.record-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;background:#edf0fa;padding:5px;border-radius:18px}
.record-tab{height:39px;border-radius:14px;background:transparent;color:var(--muted);font-weight:1000}
.record-tab.active{background:#fff;color:var(--p);box-shadow:0 8px 18px rgba(31,41,77,.08)}
.record-card{padding:14px}
.record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.record-head b{font-size:15px}
.record-time{font-size:12px;color:var(--muted);margin-top:4px}
.record-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px dashed rgba(23,32,51,.08);font-size:13px}
.record-row span:first-child{color:var(--muted)}

/* Tabbar */
.tabbar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:90;width:100%;max-width:520px;padding:8px 10px calc(8px + var(--safe-bottom));background:rgba(255,255,255,.94);border-top:1px solid var(--line);backdrop-filter:blur(20px);box-shadow:0 -12px 36px rgba(31,41,77,.10)}
.tabbar-inner{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.tabbar button{height:54px;border-radius:17px;background:transparent;color:#7b8497;font-weight:900;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.tabbar button i{font-style:normal;font-size:18px}
.tabbar button.active{background:rgba(98,102,241,.10);color:var(--p)}

/* Modal */
.modal-mask{position:fixed;inset:0;z-index:110;display:none;align-items:flex-end;justify-content:center;background:rgba(15,23,42,.45);backdrop-filter:blur(8px);padding:14px}
.modal-mask.show{display:flex}
.modal{width:100%;max-width:520px;max-height:90vh;overflow:auto;background:#fff;border-radius:26px 26px 20px 20px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.modal-head{position:sticky;top:0;background:#fff;z-index:1;padding:18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.modal-head h3{font-size:19px;margin:0}
.close{width:38px;height:38px;border-radius:14px;background:#f1f3f8;color:#111827;font-size:20px}
.modal-body{padding:16px}
.plans{display:grid;gap:10px;margin-bottom:14px}
.plan{padding:14px;border:1px solid var(--line);border-radius:19px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.plan.active{border-color:rgba(98,102,241,.55);background:rgba(98,102,241,.06);box-shadow:0 12px 28px rgba(98,102,241,.10)}
.plan b{font-size:18px}.plan span{color:var(--muted);font-size:13px}
.form-grid{display:grid;gap:12px}
.toast{position:fixed;left:14px;right:14px;bottom:calc(92px + var(--safe-bottom));z-index:200;display:none;max-width:492px;margin:0 auto;padding:13px 15px;border-radius:16px;background:#111827;color:#fff;font-size:13px;text-align:center;box-shadow:0 18px 44px rgba(0,0,0,.22)}
.toast.show{display:block}

/* Desktop/H5 container */
@media(min-width:760px){
  body{background:#e9ecf8}
  .page-shell{box-shadow:0 0 0 1px rgba(15,23,42,.06),0 24px 80px rgba(15,23,42,.16)}
}
@media(max-width:360px){
  .main{padding:11px}
  .balance-card{padding:17px}
  .balance-num b{font-size:36px}
  .tabbar{padding-left:6px;padding-right:6px}
  .tabbar button{font-size:10px}
}

/* ========== PC + M 自适应正式版 ========== */
/* 大屏不再显示手机壳宽度，改成正式桌面布局 */
@media (min-width: 900px){
  html, body{
    background:
      radial-gradient(circle at 88% 0, rgba(139,92,246,.14), transparent 30%),
      radial-gradient(circle at 0 0, rgba(98,102,241,.10), transparent 30%),
      linear-gradient(135deg,#eef2ff,#f8fafc);
  }

  .page-shell{
    max-width:none;
    width:100%;
    min-height:100vh;
    margin:0;
    box-shadow:none;
    background:
      radial-gradient(circle at 92% 0, rgba(139,92,246,.14), transparent 30%),
      linear-gradient(135deg,#f6f8ff,#f8fafc);
  }

  .bg-glow{
    width:420px;
    height:420px;
    right:-120px;
    top:-160px;
  }

  /* PC 登录页：正式居中卡片，不显示手机壳 */
  .auth{
    width:min(460px, calc(100% - 40px));
    min-height:100vh;
    margin:0 auto;
    padding:48px 0;
    justify-content:center;
  }

  .auth-brand{
    justify-content:center;
    margin-bottom:22px;
  }

  .auth-card{
    padding:22px;
    border-radius:26px;
  }

  /* PC 登录页不显示欢迎大横幅 */
  .auth-hero{
    display:none!important;
  }

  /* PC 主界面 */
  .app.show{
    display:block;
    width:min(1280px, 100%);
    min-height:100vh;
    margin:0 auto;
    padding-left:260px;
    padding-bottom:0;
  }

  .app-header{
    position:sticky;
    top:0;
    z-index:30;
    padding:18px 30px;
    background:rgba(246,248,255,.82);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(23,32,51,.06);
  }

  .header-logo{
    width:42px;
    height:42px;
    border-radius:15px;
  }

  .header-brand h2{
    font-size:19px;
  }

  .header-brand p{
    font-size:12px;
  }

  .user-pill{
    height:38px;
    padding:0 14px;
    max-width:220px;
  }

  .main{
    padding:26px 30px 44px;
  }

  .notice{
    margin-bottom:18px;
    padding:17px;
    border-radius:22px;
  }

  .balance-card{
    padding:30px;
    border-radius:30px;
  }

  .balance-num b{
    font-size:52px;
  }

  .balance-actions{
    width:360px;
    max-width:100%;
  }

  .stats-grid{
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin:16px 0;
  }

  .stat{
    padding:18px;
  }

  .quick-card{
    padding:20px;
  }

  .page-title{
    margin-bottom:18px;
  }

  .page-title h3{
    font-size:26px;
  }

  .search input,
  .search{
    max-width:460px;
  }

  .project-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  .project-card{
    padding:18px;
  }

  .record-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  .record-tabs{
    max-width:420px;
  }

  .record-card{
    padding:18px;
  }

  /* PC 左侧导航 */
  .tabbar{
    left:calc(50% - 640px);
    transform:none;
    top:0;
    bottom:auto;
    width:250px;
    max-width:250px;
    height:100vh;
    padding:28px 16px;
    background:rgba(255,255,255,.78);
    border-top:0;
    border-right:1px solid rgba(23,32,51,.08);
    box-shadow:18px 0 46px rgba(31,41,77,.06);
  }

  .tabbar::before{
    content:"PointHub";
    display:block;
    margin:4px 10px 24px;
    font-size:23px;
    font-weight:1000;
    color:#172033;
  }

  .tabbar::after{
    content:"点数服务管理中心";
    position:absolute;
    top:60px;
    left:26px;
    font-size:12px;
    color:#74809a;
  }

  .tabbar-inner{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:70px;
  }

  .tabbar button{
    height:52px;
    border-radius:18px;
    flex-direction:row;
    justify-content:flex-start;
    padding:0 16px;
    gap:12px;
    font-size:14px;
  }

  .tabbar button i{
    font-size:18px;
  }

  .tabbar button.active{
    background:linear-gradient(135deg,rgba(98,102,241,.12),rgba(139,92,246,.10));
    color:#4f46e5;
  }

  .modal-mask{
    align-items:center;
  }

  .modal{
    border-radius:28px;
    max-width:460px;
  }
}

@media (min-width:900px) and (max-width:1279px){
  .app.show{
    width:100%;
  }

  .tabbar{
    left:0;
  }
}

/* 正式版：隐藏测试提示 */
.auth-note{
  display:none!important;
}

/* 正式版：登录页欢迎横幅隐藏，手机和 PC 都不显示 */
.auth-hero{
  display:none!important;
}


/* ========== 正式版充值弹窗优化 ========== */
.recharge-summary{
  margin:12px 0 14px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(98,102,241,.08),rgba(139,92,246,.06)),#fff;
  border:1px solid rgba(98,102,241,.14);
}
.recharge-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  font-size:14px;
}
.recharge-summary-row span{
  color:var(--muted);
}
.recharge-summary-row b{
  color:var(--text);
  font-size:15px;
}
.recharge-summary-row .pay-money{
  color:var(--p);
  font-size:20px;
  font-weight:1000;
}
.recharge-submit{
  width:100%;
  height:48px;
  margin-top:4px;
  border-radius:17px;
  color:#fff;
  font-weight:1000;
  background:linear-gradient(135deg,var(--p),var(--p2));
  box-shadow:0 14px 28px rgba(98,102,241,.22);
}
.recharge-submit:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.plan{
  min-height:62px;
}
.plan-left{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.plan-label{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.plan-price{
  color:var(--p);
  font-weight:1000;
}
.recharge-manual-fields{
  display:none!important;
}
@media(min-width:900px){
  .plans{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .modal{
    max-width:480px;
  }
}


/* ========== 充值套餐营销展示 ========== */
.plan{
  position:relative;
}
.plan-badge{
  position:absolute;
  right:12px;
  top:-9px;
  min-width:42px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#ff7a18,#ef4444);
  font-size:11px;
  font-weight:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(239,68,68,.22);
}
.plan-desc{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}
.plan-price-box{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
}
.plan-original{
  color:var(--muted);
  font-size:11px;
  text-decoration:line-through;
}
.plan-save{
  color:#ef4444;
  font-size:11px;
  font-weight:900;
}


/* ========== 正式版表单文案与输入体验优化 ========== */
.field input::placeholder{
  color:#a2adc2;
  font-size:14px;
}
.field label{
  letter-spacing:.2px;
}
.form-tip{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.auth-tabs button,
.auth-tab{
  letter-spacing:.2px;
}


/* ========== 充值成功动效与到账反馈 ========== */
.balance-card.recharge-glow,
.balance.recharge-glow{
  animation: rechargeBalanceGlow 1.35s ease both;
}
@keyframes rechargeBalanceGlow{
  0%{transform:scale(1);box-shadow:0 18px 46px rgba(98,102,241,.28)}
  28%{transform:scale(1.018);box-shadow:0 0 0 6px rgba(255,255,255,.24),0 22px 60px rgba(98,102,241,.46)}
  100%{transform:scale(1);box-shadow:0 18px 46px rgba(98,102,241,.28)}
}
.recharge-fly-points{
  position:fixed;
  left:50%;
  top:48%;
  z-index:260;
  transform:translate(-50%,-50%);
  pointer-events:none;
  padding:9px 14px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  font-size:18px;
  font-weight:1000;
  box-shadow:0 16px 38px rgba(22,163,74,.32);
  animation: rechargeFlyToBalance 1.25s cubic-bezier(.18,.8,.26,1) both;
}
@keyframes rechargeFlyToBalance{
  0%{opacity:0;transform:translate(-50%,20px) scale(.78)}
  18%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}
  70%{opacity:1;transform:translate(-50%,-190px) scale(.98)}
  100%{opacity:0;transform:translate(-50%,-245px) scale(.72)}
}
.recharge-success-mask{
  position:fixed;
  inset:0;
  z-index:240;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  pointer-events:none;
}
.recharge-success-card{
  width:min(360px,92vw);
  border:1px solid rgba(255,255,255,.62);
  border-radius:28px;
  padding:22px 20px;
  text-align:center;
  background:rgba(255,255,255,.94);
  box-shadow:0 28px 80px rgba(15,23,42,.22);
  backdrop-filter:blur(18px);
  animation: rechargeSuccessPop 1.65s ease both;
}
@keyframes rechargeSuccessPop{
  0%{opacity:0;transform:translateY(18px) scale(.88)}
  16%{opacity:1;transform:translateY(0) scale(1.03)}
  72%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(-10px) scale(.96)}
}
.recharge-success-icon{
  width:58px;
  height:58px;
  margin:0 auto 10px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:28px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 16px 30px rgba(22,163,74,.28);
}
.recharge-success-title{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:1000;
}
.recharge-success-sub{
  margin:7px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.recharge-success-points{
  margin-top:10px;
  color:var(--p);
  font-size:24px;
  font-weight:1000;
}
.recharge-confetti{
  position:fixed;
  z-index:250;
  width:8px;
  height:14px;
  border-radius:3px;
  pointer-events:none;
  animation: rechargeConfettiFall 1.1s ease-out forwards;
}
@keyframes rechargeConfettiFall{
  0%{opacity:0;transform:translateY(0) rotate(0deg) scale(.6)}
  15%{opacity:1}
  100%{opacity:0;transform:translateY(150px) rotate(240deg) scale(1)}
}
.balance-num b.balance-counting,
#balance.balance-counting{
  animation: balanceNumberPulse .55s ease both;
}
@keyframes balanceNumberPulse{
  0%{filter:brightness(1)}
  50%{filter:brightness(1.35)}
  100%{filter:brightness(1)}
}
@media(max-width:560px){
  .recharge-success-card{border-radius:25px}
  .recharge-success-title{font-size:19px}
  .recharge-success-points{font-size:22px}
}


/* ========== M端充值到账动画加强 ========== */
.balance-card.recharge-glow,
.balance.recharge-glow{
  animation: rechargeBalanceGlowMobile 1.45s ease both;
}
@keyframes rechargeBalanceGlowMobile{
  0%{transform:scale(1);filter:brightness(1);box-shadow:0 18px 46px rgba(98,102,241,.28)}
  18%{transform:scale(1.018);filter:brightness(1.12);box-shadow:0 0 0 7px rgba(255,255,255,.22),0 24px 66px rgba(98,102,241,.50)}
  42%{transform:scale(1.006);filter:brightness(1.08)}
  100%{transform:scale(1);filter:brightness(1);box-shadow:0 18px 46px rgba(98,102,241,.28)}
}
#balance.balance-counting,
.balance-num b.balance-counting{
  animation: balanceNumberMobilePulse .7s ease both;
}
@keyframes balanceNumberMobilePulse{
  0%{transform:scale(1);filter:brightness(1)}
  45%{transform:scale(1.045);filter:brightness(1.45)}
  100%{transform:scale(1);filter:brightness(1)}
}
.mobile-recharge-done{
  position:fixed;
  left:50%;
  top:44%;
  z-index:500;
  width:min(330px,88vw);
  transform:translate(-50%,-50%);
  pointer-events:none;
  padding:20px 18px;
  border-radius:28px;
  text-align:center;
  background:rgba(255,255,255,.96);
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  border:1px solid rgba(255,255,255,.68);
  backdrop-filter:blur(18px);
  animation: mobileRechargeDonePop 1.7s ease both;
}
@keyframes mobileRechargeDonePop{
  0%{opacity:0;transform:translate(-50%,-42%) scale(.82)}
  16%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}
  68%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-58%) scale(.96)}
}
.mobile-recharge-icon{
  width:58px;
  height:58px;
  margin:0 auto 10px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:29px;
  font-weight:1000;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 16px 30px rgba(22,163,74,.30);
}
.mobile-recharge-title{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:1000;
}
.mobile-recharge-sub{
  margin:7px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.mobile-recharge-points{
  margin-top:10px;
  color:var(--p);
  font-size:26px;
  font-weight:1000;
}
.mobile-fly-points{
  position:fixed;
  left:50%;
  top:54%;
  z-index:510;
  transform:translate(-50%,-50%);
  pointer-events:none;
  padding:9px 15px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  font-size:18px;
  font-weight:1000;
  box-shadow:0 16px 38px rgba(22,163,74,.32);
  animation: mobileFlyPoints 1.3s cubic-bezier(.18,.8,.26,1) both;
}
@keyframes mobileFlyPoints{
  0%{opacity:0;transform:translate(-50%,25px) scale(.78)}
  18%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}
  70%{opacity:1;transform:translate(-50%,-170px) scale(.98)}
  100%{opacity:0;transform:translate(-50%,-220px) scale(.72)}
}
.mobile-confetti{
  position:fixed;
  z-index:505;
  width:8px;
  height:13px;
  border-radius:3px;
  pointer-events:none;
  animation: mobileConfettiFall 1.15s ease-out forwards;
}
@keyframes mobileConfettiFall{
  0%{opacity:0;transform:translateY(0) rotate(0deg) scale(.65)}
  15%{opacity:1}
  100%{opacity:0;transform:translateY(145px) rotate(260deg) scale(1)}
}
@media(min-width:900px){
  .mobile-recharge-done{
    top:48%;
  }
  .mobile-fly-points{
    top:50%;
  }
}


/* ========== 账号中心正式版 ========== */
.profile-grid{display:grid;gap:12px}
.profile-card{padding:16px}
.profile-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed rgba(23,32,51,.08);font-size:14px}
.profile-row:last-child{border-bottom:0}
.profile-row span:first-child{color:var(--muted)}
.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
@media(min-width:900px){
  .profile-grid{grid-template-columns:1fr 1fr}
}


/* ========== 账号导航图标优化 ========== */
.nav-icon-account{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(98,102,241,.14),rgba(139,92,246,.18));
  box-shadow:inset 0 0 0 1px rgba(98,102,241,.10);
  flex:0 0 24px;
}
.nav-icon-account svg{
  width:15px;
  height:15px;
  stroke:#6d63ff;
  stroke-width:1.9;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
button.active .nav-icon-account,
.nav-item.active .nav-icon-account{
  background:linear-gradient(135deg,rgba(98,102,241,.18),rgba(139,92,246,.24));
  box-shadow:inset 0 0 0 1px rgba(98,102,241,.18),0 8px 18px rgba(98,102,241,.12);
}
button.active .nav-icon-account svg,
.nav-item.active .nav-icon-account svg{
  stroke:#5a54f5;
}


/* ========== 用户端高级 SVG 导航图标 ========== */
.ph-nav-icon{
  width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(98,102,241,.10),rgba(139,92,246,.14));
  box-shadow:inset 0 0 0 1px rgba(98,102,241,.10);
  color:#6b63ff;
  flex:0 0 25px;
  transition:.18s ease;
}
.ph-nav-icon svg{
  width:15px;
  height:15px;
  stroke:currentColor;
  stroke-width:2.15;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tabbar button.active .ph-nav-icon,
.nav a.active .ph-nav-icon,
.nav-item.active .ph-nav-icon{
  color:#fff;
  background:linear-gradient(135deg,#6266f1,#8b5cf6);
  box-shadow:0 10px 22px rgba(98,102,241,.28);
}
.tabbar button:active .ph-nav-icon{
  transform:scale(.94);
}


/* ========== 账号中心 API Token ========== */
.api-token-box{margin-top:10px;display:grid;gap:9px}
.api-token-input{
  width:100%;
  min-height:74px;
  padding:11px 12px!important;
  border-radius:16px!important;
  border:1px solid var(--line)!important;
  background:#f8fafc!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.5!important;
  word-break:break-all;
  resize:none;
}
.api-token-tip{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.7}
.api-token-code{
  display:block;margin-top:7px;padding:10px;border-radius:14px;background:#f8fafc;
  color:#475569;font-size:12px;line-height:1.6;word-break:break-all
}


/* ========== 用户端项目 API 文档按钮 ========== */
.api-doc-btn{height:32px;border:0;border-radius:12px;background:linear-gradient(135deg,#6266f1,#8b5cf6);color:#fff;font-size:12px;font-weight:900;padding:0 10px;box-shadow:0 8px 18px rgba(98,102,241,.18)}
.api-doc-btn.disabled{background:#e5e7eb;color:#94a3b8;box-shadow:none}
.api-doc-modal-mask{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.52);display:flex;align-items:flex-end;justify-content:center;padding:12px;backdrop-filter:blur(10px)}
.api-doc-modal{width:100%;max-width:620px;max-height:88vh;overflow:auto;background:#fff;border-radius:26px 26px 20px 20px;box-shadow:0 24px 70px rgba(15,23,42,.22)}
.api-doc-head{position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #e5e7eb}
.api-doc-head h3{margin:0;font-size:18px;font-weight:900}
.api-doc-close{width:38px;height:38px;border:0;border-radius:14px;background:#f1f5f9;font-size:22px}
.api-doc-body{padding:16px;display:grid;gap:12px}
.api-doc-section{padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #eef2ff}
.api-doc-section span{display:block;margin-bottom:6px;color:#64748b;font-size:12px;font-weight:900}
.api-doc-pre{white-space:pre-wrap;word-break:break-word;margin:0;font-family:Consolas,monospace;font-size:12px;line-height:1.65;color:#334155}


/* ========== API 文档清晰阅读版 ========== */
.api-doc-modal-mask{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center;padding:12px;backdrop-filter:blur(10px)}
.api-doc-modal{width:100%;max-width:760px;max-height:90vh;overflow:auto;background:#f8fafc;border-radius:26px 26px 20px 20px;box-shadow:0 24px 70px rgba(15,23,42,.25)}
.api-doc-head{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #e5e7eb}
.api-doc-head h3{margin:0;font-size:18px;font-weight:900;color:#172033}
.api-doc-close{width:38px;height:38px;border:0;border-radius:14px;background:#f1f5f9;font-size:22px;color:#334155}
.api-doc-body{padding:14px;display:grid;gap:12px}
.api-doc-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.api-doc-mini{padding:11px;border-radius:16px;background:#fff;border:1px solid #e5e7eb}
.api-doc-mini span{display:block;font-size:11px;font-weight:900;color:#64748b;margin-bottom:4px}
.api-doc-mini b{font-size:13px;color:#172033;word-break:break-word}
.api-doc-block{padding:14px;border-radius:18px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 8px 22px rgba(31,41,77,.05)}
.api-doc-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px;font-weight:900;color:#172033}
.api-doc-title i{width:24px;height:24px;border-radius:10px;background:linear-gradient(135deg,#6266f1,#8b5cf6);color:#fff;display:inline-grid;place-items:center;font-style:normal;font-size:12px}
.api-doc-table{display:grid;gap:8px}
.api-doc-row{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 0;border-bottom:1px dashed #e5e7eb}
.api-doc-row:last-child{border-bottom:0}
.api-doc-row span{font-size:12px;font-weight:900;color:#64748b}
.api-doc-row b,.api-doc-row em{font-size:13px;color:#334155;font-style:normal;word-break:break-word}
.api-doc-pre{white-space:pre-wrap;word-break:break-word;margin:0;padding:12px;border-radius:14px;background:#0f172a;color:#e2e8f0;font-family:Consolas,monospace;font-size:12px;line-height:1.65;overflow:auto}
.api-doc-list{display:grid;gap:8px}
.api-doc-item{padding:10px;border-radius:14px;background:#f8fafc;border:1px solid #eef2ff}
.api-doc-item b{display:block;font-size:13px;color:#172033;margin-bottom:4px}
.api-doc-item code{display:block;font-family:Consolas,monospace;font-size:12px;color:#6266f1;word-break:break-word}
.api-doc-note{font-size:12px;line-height:1.75;color:#64748b;background:#f8fafc;border-left:4px solid #6266f1;padding:10px 12px;border-radius:12px}
@media(max-width:640px){
  .api-doc-summary{grid-template-columns:1fr}
  .api-doc-row{grid-template-columns:1fr;gap:4px}
  .api-doc-modal{border-radius:24px 24px 0 0}
}


/* ========== 多接口文档阅读版 ========== */
.api-doc-list-tabs{display:flex;flex-wrap:wrap;gap:8px;overflow:auto;padding-bottom:4px}
.api-doc-list-tabs button{flex:0 0 auto;border:0;border-radius:999px;background:#eef2ff;color:#4f46e5;padding:8px 11px;font-size:12px;font-weight:900}
.api-doc-list-wrap{display:grid;gap:12px}
.api-doc-entry{padding:14px;border-radius:18px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 8px 22px rgba(31,41,77,.05)}
.api-doc-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.api-doc-entry-title{margin:0;font-size:15px;font-weight:900;color:#172033}
.api-doc-entry-group{display:inline-flex;border-radius:999px;background:#f1f5ff;color:#4f46e5;padding:5px 8px;font-size:11px;font-weight:900;white-space:nowrap}
.api-doc-entry-summary{margin:0 0 10px;color:#64748b;font-size:13px;line-height:1.7}
.api-doc-entry-grid{display:grid;grid-template-columns:90px 1fr;gap:8px;padding:8px 0;border-top:1px dashed #e5e7eb}
.api-doc-entry-grid span{color:#64748b;font-size:12px;font-weight:900}
.api-doc-entry-grid b{color:#334155;font-size:13px;word-break:break-word}
.api-doc-entry pre{white-space:pre-wrap;word-break:break-word;margin:8px 0 0;padding:12px;border-radius:14px;background:#0f172a;color:#e2e8f0;font-family:Consolas,monospace;font-size:12px;line-height:1.65;overflow:auto}
.api-doc-entry-note{margin-top:10px;background:#f8fafc;border-left:4px solid #6266f1;border-radius:12px;padding:10px 12px;color:#64748b;font-size:12px;line-height:1.7}
@media(max-width:640px){.api-doc-entry-grid{grid-template-columns:1fr;gap:4px}}


/* ========== 接口目录 M端分行显示修复 ========== */
@media(max-width:640px){
  .api-doc-list-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  .api-doc-list-tabs button{
    width:100%;
    min-width:0;
    padding:10px 12px!important;
    border-radius:14px!important;
    font-size:12px!important;
    line-height:1.45!important;
    white-space:normal!important;
    word-break:break-word!important;
    text-align:center!important;
  }
}
@media(max-width:420px){
  .api-doc-list-tabs{
    grid-template-columns:1fr!important;
  }
}


/* ========== API 文档目录交互优化 ========== */
.api-doc-list-tabs{
  align-items:stretch;
}
.api-doc-list-tabs .api-doc-tab{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid transparent!important;
  transition:.16s ease;
}
.api-doc-list-tabs .api-doc-tab:hover{
  transform:translateY(-1px);
  border-color:#c7d2fe!important;
  background:#e0e7ff!important;
}
.api-doc-list-tabs .api-doc-tab.active{
  color:#fff!important;
  background:linear-gradient(135deg,#6266f1,#8b5cf6)!important;
  border-color:#818cf8!important;
  box-shadow:0 10px 22px rgba(98,102,241,.22);
}
.api-doc-entry.active{
  border-color:#a5b4fc!important;
  box-shadow:0 14px 34px rgba(98,102,241,.16)!important;
}

/* M端目录按钮统一高度 + 分行显示 */
@media(max-width:640px){
  .api-doc-list-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  .api-doc-list-tabs .api-doc-tab{
    width:100%;
    min-width:0;
    min-height:46px;
    padding:10px 12px!important;
    border-radius:14px!important;
    font-size:12px!important;
    line-height:1.35!important;
    white-space:normal!important;
    word-break:break-word!important;
    text-align:center!important;
  }
}
@media(max-width:420px){
  .api-doc-list-tabs{
    grid-template-columns:1fr!important;
  }
  .api-doc-list-tabs .api-doc-tab{
    justify-content:flex-start;
    text-align:left!important;
  }
}


/* ========== 测试扣点页面 ========== */
.test-use-card{
  border:1px solid #e5e7eb;
  border-radius:24px;
  background:#fff;
  padding:16px;
  box-shadow:0 12px 30px rgba(31,41,77,.08);
}
.test-use-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.test-use-grid .full{grid-column:1/-1}
.test-use-field label{
  display:block;
  margin-bottom:6px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.test-use-field input,
.test-use-field select,
.test-use-field textarea{
  width:100%;
  min-height:44px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  padding:10px 12px;
  outline:none;
  font-size:14px;
}
.test-use-field textarea{
  min-height:90px;
  resize:vertical;
  line-height:1.6;
}
.test-use-info{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.test-use-info-item{
  border:1px solid #eef2ff;
  border-radius:18px;
  background:#f8fafc;
  padding:12px;
}
.test-use-info-item span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  margin-bottom:5px;
}
.test-use-info-item b{
  color:#172033;
  font-size:14px;
  word-break:break-word;
}
.test-use-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.test-use-actions button{
  min-height:44px;
  border:0;
  border-radius:16px;
  padding:0 15px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}
.test-use-actions .primary{
  color:#fff;
  background:linear-gradient(135deg,#6266f1,#8b5cf6);
  box-shadow:0 12px 26px rgba(98,102,241,.22);
}
.test-use-actions .gray{
  background:#f1f5f9;
  color:#334155;
}
.test-use-result{
  margin-top:14px;
  border-radius:18px;
  border:1px solid #e5e7eb;
  background:#0f172a;
  color:#e2e8f0;
  padding:13px;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:Consolas,monospace;
  font-size:12px;
  line-height:1.65;
  max-height:320px;
  overflow:auto;
}
.test-use-tip{
  margin-top:12px;
  border-left:4px solid #6366f1;
  border-radius:14px;
  background:#f8fafc;
  color:#64748b;
  padding:11px 13px;
  font-size:12px;
  line-height:1.75;
}
@media(max-width:640px){
  .test-use-grid{grid-template-columns:1fr}
  .test-use-info{grid-template-columns:1fr}
  .test-use-actions button{width:100%}
  .test-use-field input,
  .test-use-field select,
  .test-use-field textarea{
    font-size:16px;
  }
}


/* ========== API目录跳转修复 ========== */
.api-doc-entry{
  scroll-margin-top:88px;
}
.api-doc-list-tabs .api-doc-tab{
  cursor:pointer;
  user-select:none;
}
@media(max-width:640px){
  .api-doc-entry{
    scroll-margin-top:76px;
  }
}


/* ========== 用户中心项目分类布局 ========== */
.project-category-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:2px 2px 9px;
  margin:0 0 10px;
  scrollbar-width:none;
}
.project-category-tabs::-webkit-scrollbar{display:none}
.project-category-tab{
  flex:0 0 auto;
  min-height:38px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  color:#64748b;
  padding:0 13px;
  font-size:12px;
  font-weight:1000;
  box-shadow:0 8px 18px rgba(31,41,77,.05);
}
.project-category-tab.active{
  border-color:#c7d2fe;
  color:#4f46e5;
  background:linear-gradient(135deg,#eef2ff,#f5f3ff);
  box-shadow:0 12px 24px rgba(99,102,241,.14);
}
.project-category-summary{
  margin:0 0 12px;
  border:1px solid #e2e8f0;
  border-left:5px solid #6366f1;
  border-radius:18px;
  background:#fff;
  padding:10px 12px;
  color:#475569;
  font-size:12px;
  line-height:1.7;
  box-shadow:0 10px 24px rgba(31,41,77,.06);
}
.project-category-group{
  display:grid;
  gap:11px;
  margin-bottom:15px;
}
.project-category-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:4px 0 0;
  padding:2px 2px;
}
.project-category-title h4{
  margin:0;
  font-size:16px;
  font-weight:1000;
  color:#172033;
}
.project-category-title span{
  flex:0 0 auto;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.request-id-mini{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  border-radius:999px;
  padding:0 9px;
  font-size:11px;
  font-weight:1000;
  border:1px solid #e2e8f0;
  color:#64748b;
  background:#f8fafc;
}
.request-id-mini.required{
  border-color:#bfdbfe;
  color:#2563eb;
  background:#eff6ff;
}
.request-id-mini.optional{
  border-color:#fed7aa;
  color:#c2410c;
  background:#fff7ed;
}
.project-actions-line{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
@media(min-width:760px){
  .project-list{
    grid-template-columns:1fr;
  }
  .project-category-group{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .project-category-title{
    grid-column:1/-1;
  }
}


/* ========== API 文档目录吸顶 ========== */
.api-doc-nav-sticky{
  position:sticky;
  top:0;
  z-index:30;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #e2e8f0;
  border-radius:0 0 22px 22px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  box-shadow:0 12px 28px rgba(31,41,77,.12);
}
.api-doc-nav-sticky .api-doc-nav-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#172033;
  font-weight:1000;
  font-size:15px;
}
.api-doc-nav-sticky .api-doc-list-tabs{
  margin:0;
  padding:0 2px 2px;
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.api-doc-nav-sticky .api-doc-list-tabs::-webkit-scrollbar{
  display:none;
}
.api-doc-nav-sticky .api-doc-tab{
  flex:0 0 auto;
  min-height:36px;
  border-radius:999px;
  white-space:nowrap;
}
.api-doc-modal{
  scroll-padding-top:118px;
}
.api-doc-entry{
  scroll-margin-top:118px;
}
@media(max-width:640px){
  .api-doc-nav-sticky{
    top:0;
    padding:10px 12px;
    border-radius:0 0 20px 20px;
  }
  .api-doc-nav-sticky .api-doc-nav-title{
    margin-bottom:8px;
    font-size:14px;
  }
  .api-doc-modal{
    scroll-padding-top:105px;
  }
  .api-doc-entry{
    scroll-margin-top:105px;
  }
}


/* ========== 用户中心记录分页 ========== */
.record-pager{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  padding:10px;
  box-shadow:0 10px 22px rgba(31,41,77,.06);
}
.record-pager button{
  min-width:82px;
  height:38px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,#6266f1,#8b5cf6);
  color:#fff;
  font-size:13px;
  font-weight:1000;
  cursor:pointer;
}
.record-pager button:disabled{
  cursor:not-allowed;
  opacity:.45;
  background:#e2e8f0;
  color:#64748b;
}
.record-pager-info{
  flex:1;
  min-width:0;
  text-align:center;
  color:#475569;
  font-size:12px;
  font-weight:900;
  line-height:1.55;
}
.record-pager-info span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:800;
}


/* ========== 每个请求文档备注 ========== */
.api-doc-entry-note{
  margin-top:12px;
  border:1px solid #e0e7ff;
  border-left:5px solid #6366f1;
  border-radius:16px;
  background:linear-gradient(135deg,#eef2ff,#f8fafc);
  padding:11px 12px;
  color:#334155;
  font-size:13px;
  line-height:1.75;
  white-space:pre-wrap;
}
.api-doc-entry-note b{
  display:block;
  color:#3730a3;
  margin-bottom:5px;
  font-size:12px;
}


/* ========== 兑换码弹窗 ========== */
.redeem-code-box{
  display:grid;
  gap:10px;
}
.redeem-code-box input{
  width:100%;
  height:46px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:0 14px;
  outline:none;
  font-size:15px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.redeem-code-tip{
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}


/* ========== 充值优惠券 ========== */
.coupon-input-row{
  display:flex;
  gap:8px;
  margin:10px 0 12px;
}
.coupon-input-row input{
  flex:1;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 12px;
  outline:none;
  text-transform:uppercase;
}
.coupon-input-row button{
  height:42px;
  border-radius:14px;
  padding:0 13px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:1000;
}
.coupon-tip{
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  margin-top:-4px;
  margin-bottom:10px;
}
.coupon-discount-text{
  color:#16a34a!important;
  font-weight:1000;
}


/* ========== 充值页面布局优化版 ========== */
.recharge-modal{
  max-width:620px!important;
  width:min(620px,calc(100vw - 24px));
  max-height:min(88vh,780px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.recharge-modal-head{
  align-items:flex-start;
  gap:12px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(148,163,184,.18);
}
.recharge-modal-head h3{
  margin:0;
  font-size:20px;
  font-weight:1000;
}
.recharge-modal-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.recharge-modal-body{
  padding:14px 16px 10px;
  overflow:auto;
  overscroll-behavior:contain;
  background:linear-gradient(180deg,#f8fafc,#fff 42%);
}
.recharge-section{
  border:1px solid rgba(148,163,184,.20);
  background:rgba(255,255,255,.94);
  border-radius:22px;
  padding:14px;
  margin-bottom:12px;
  box-shadow:0 12px 26px rgba(15,23,42,.05);
}
.recharge-section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.recharge-section-title b{
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:1000;
}
.recharge-section-title small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.step-dot{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  border-radius:999px;
  color:#fff;
  font-weight:1000;
  background:linear-gradient(135deg,var(--p),var(--p2));
  box-shadow:0 9px 18px rgba(99,102,241,.22);
}
.recharge-plan-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px!important;
}
.recharge-modal .plan{
  min-height:104px;
  align-items:flex-start;
  border-radius:20px;
  padding:14px;
  background:#fff;
  border:1px solid rgba(148,163,184,.24);
  transition:.16s ease;
}
.recharge-modal .plan:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(15,23,42,.08);
}
.recharge-modal .plan.active{
  border-color:rgba(99,102,241,.75);
  box-shadow:0 16px 34px rgba(99,102,241,.16);
  background:linear-gradient(135deg,rgba(238,242,255,.92),#fff);
}
.recharge-modal .plan-left b{
  font-size:19px;
  color:#111827;
}
.recharge-modal .plan-desc{
  max-width:100%;
  line-height:1.35;
}
.recharge-modal .plan-price-box{
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:8px;
}
.recharge-coupon-section{
  background:linear-gradient(135deg,#f0fdf4,#fff);
  border-color:rgba(34,197,94,.20);
}
.coupon-input-row{
  display:grid!important;
  grid-template-columns:1fr auto auto;
  gap:8px;
  margin:0 0 8px!important;
}
.coupon-input-row input{
  height:44px;
  min-width:0;
  background:#fff;
  border:1px solid rgba(148,163,184,.36);
  border-radius:15px;
  padding:0 13px;
  outline:none;
  font-weight:900;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.coupon-input-row input:focus{
  border-color:rgba(99,102,241,.70);
  box-shadow:0 0 0 4px rgba(99,102,241,.10);
}
.coupon-input-row button{
  height:44px;
  border-radius:15px;
  padding:0 14px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:1000;
  white-space:nowrap;
}
.coupon-input-row .coupon-clear-btn{
  background:#f1f5f9;
  color:#475569;
}
.coupon-tip{
  margin:0!important;
  padding:9px 11px;
  border-radius:14px;
  background:rgba(255,255,255,.76);
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}
.recharge-summary{
  margin:0!important;
  padding:14px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid rgba(99,102,241,.18)!important;
}
.recharge-summary-row{
  padding:8px 0!important;
}
.recharge-summary-row:first-child{
  padding-top:0!important;
}
.recharge-summary-row.final-row{
  margin-top:6px;
  padding-top:12px!important;
  border-top:1px dashed rgba(148,163,184,.35);
}
.recharge-summary-row.final-row span{
  color:#111827;
  font-weight:900;
}
.recharge-summary-row .pay-money{
  color:#dc2626!important;
  font-size:24px!important;
}
.coupon-discount-text{
  color:#16a34a!important;
  font-weight:1000;
}
.recharge-pay-footer{
  position:sticky;
  bottom:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 16px 16px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(148,163,184,.22);
  box-shadow:0 -14px 30px rgba(15,23,42,.08);
}
.pay-footer-left{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.pay-footer-left span{
  color:var(--muted);
  font-size:12px;
}
.pay-footer-left b{
  color:#dc2626;
  font-size:24px;
  line-height:1.15;
  font-weight:1000;
}
.pay-footer-left small{
  color:#64748b;
  font-size:12px;
  margin-top:2px;
}
.recharge-pay-footer .recharge-submit{
  width:auto!important;
  min-width:190px;
  height:50px;
  margin:0!important;
  border-radius:17px;
}
.recharge-manual-fields{
  display:none!important;
}
@media(max-width:640px){
  .modal-mask{
    align-items:flex-end!important;
  }
  .recharge-modal{
    width:100vw!important;
    max-width:100vw!important;
    max-height:92vh;
    border-radius:24px 24px 0 0!important;
  }
  .recharge-modal-head{
    padding:16px 14px 12px;
  }
  .recharge-modal-body{
    padding:12px 12px 8px;
  }
  .recharge-section{
    border-radius:20px;
    padding:12px;
    margin-bottom:10px;
  }
  .recharge-plan-grid{
    grid-template-columns:1fr;
    gap:9px!important;
  }
  .recharge-modal .plan{
    min-height:88px;
  }
  .coupon-input-row{
    grid-template-columns:1fr;
  }
  .coupon-input-row button{
    width:100%;
  }
  .recharge-pay-footer{
    padding:12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .pay-footer-left b{
    font-size:22px;
  }
  .recharge-pay-footer .recharge-submit{
    min-width:150px;
    flex:0 0 150px;
  }
}
@media(max-width:380px){
  .recharge-pay-footer{
    align-items:stretch;
    flex-direction:column;
  }
  .recharge-pay-footer .recharge-submit{
    width:100%!important;
    min-width:0;
  }
}


/* ========== 兑换码页面布局优化版 ========== */
.redeem-modal{
  max-width:520px!important;
  width:min(520px,calc(100vw - 24px));
  max-height:min(86vh,680px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.redeem-modal-head{
  align-items:flex-start;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(148,163,184,.18);
}
.redeem-modal-head h3{
  margin:0;
  font-size:20px;
  font-weight:1000;
}
.redeem-modal-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.redeem-modal-body{
  padding:14px 16px 10px;
  overflow:auto;
  background:linear-gradient(180deg,#f8fafc,#fff 50%);
}
.redeem-section{
  border:1px solid rgba(148,163,184,.20);
  background:#fff;
  border-radius:22px;
  padding:14px;
  margin-bottom:12px;
  box-shadow:0 12px 26px rgba(15,23,42,.05);
}
.redeem-step-title{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.redeem-step-title b{
  display:block;
  font-size:15px;
  color:var(--text);
  font-weight:1000;
}
.redeem-step-title small{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}
.redeem-big-input{
  width:100%;
  height:52px;
  border:1px solid rgba(148,163,184,.36);
  border-radius:18px;
  padding:0 15px;
  outline:none;
  font-size:17px;
  font-weight:1000;
  letter-spacing:.8px;
  text-transform:uppercase;
  background:#fff;
}
.redeem-big-input:focus{
  border-color:rgba(99,102,241,.70);
  box-shadow:0 0 0 4px rgba(99,102,241,.10);
}
.redeem-code-tip{
  margin-top:10px;
  color:#64748b;
  font-size:12px;
  line-height:1.7;
  background:#f8fafc;
  border-radius:14px;
  padding:10px 11px;
}
.redeem-notice-section{
  background:linear-gradient(135deg,#eef2ff,#fff);
  border-color:rgba(99,102,241,.20);
}
.redeem-notice-card{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.redeem-notice-card div{
  border:1px solid rgba(99,102,241,.14);
  background:rgba(255,255,255,.74);
  border-radius:16px;
  padding:10px;
}
.redeem-notice-card b{
  display:block;
  font-size:12px;
  color:#4f46e5;
  margin-bottom:5px;
}
.redeem-notice-card span{
  display:block;
  font-size:12px;
  color:#475569;
  line-height:1.4;
}
.redeem-footer{
  display:flex;
  gap:10px;
  padding:13px 16px 16px;
  background:rgba(255,255,255,.96);
  border-top:1px solid rgba(148,163,184,.22);
  box-shadow:0 -14px 30px rgba(15,23,42,.08);
}
.redeem-footer button{
  flex:1;
  height:48px;
  border-radius:17px;
}
@media(max-width:640px){
  .redeem-modal{
    width:100vw!important;
    max-width:100vw!important;
    max-height:82vh;
    border-radius:24px 24px 0 0!important;
  }
  .redeem-modal-body{
    padding:12px;
  }
  .redeem-section{
    padding:12px;
    border-radius:20px;
  }
  .redeem-notice-card{
    grid-template-columns:1fr;
  }
  .redeem-footer{
    padding:12px 12px calc(12px + env(safe-area-inset-bottom));
  }
}


/* ========== API 文档目录固定在顶部 + 用户补充说明 ========== */
#apiDocModal .api-doc-modal{display:flex!important;flex-direction:column!important;overflow:hidden!important}
#apiDocModal .api-doc-head{position:relative!important;top:auto!important;z-index:50!important;flex:0 0 auto!important}
#apiDocModal .api-doc-nav-fixed{flex:0 0 auto;z-index:45;margin:0;padding:12px 14px;border-bottom:1px solid #e2e8f0;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 10px 24px rgba(31,41,77,.10)}
#apiDocModal .api-doc-nav-fixed .api-doc-nav-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#172033;font-weight:1000;font-size:15px}
#apiDocModal .api-doc-nav-fixed .api-doc-nav-title i{width:24px;height:24px;border-radius:10px;background:linear-gradient(135deg,#6266f1,#8b5cf6);color:#fff;display:inline-grid;place-items:center;font-style:normal;font-size:12px}
#apiDocModal .api-doc-nav-fixed .api-doc-list-tabs{margin:0;padding:0 2px 2px;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#apiDocModal .api-doc-nav-fixed .api-doc-list-tabs::-webkit-scrollbar{display:none}
#apiDocModal .api-doc-nav-fixed .api-doc-tab{flex:0 0 auto;min-height:38px;border-radius:999px;white-space:nowrap}
#apiDocModal .api-doc-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding-top:16px}
#apiDocModal .api-doc-entry{scroll-margin-top:16px!important}
#apiDocModal .api-doc-entry-note.public-note{margin-top:12px;border:1px solid #bbf7d0;border-left:5px solid #22c55e;border-radius:16px;background:linear-gradient(135deg,#f0fdf4,#f8fafc);padding:11px 12px;color:#166534;font-size:13px;line-height:1.75;white-space:pre-wrap}
#apiDocModal .api-doc-entry-note.public-note b{display:block;color:#15803d;margin-bottom:5px;font-size:12px}
@media(max-width:640px){
  #apiDocModal .api-doc-nav-fixed{padding:10px 12px}
  #apiDocModal .api-doc-nav-fixed .api-doc-nav-title{margin-bottom:8px;font-size:14px}
  #apiDocModal .api-doc-nav-fixed .api-doc-list-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;overflow:visible!important}
  #apiDocModal .api-doc-nav-fixed .api-doc-tab{width:100%;min-width:0;white-space:normal!important;word-break:break-word}
}
@media(max-width:420px){#apiDocModal .api-doc-nav-fixed .api-doc-list-tabs{grid-template-columns:1fr!important}}


/* ========== M端充值弹窗和交易记录显示修复 ========== */
html, body{
  max-width:100%;
  overflow-x:hidden;
}
.page-shell,
.app,
.main,
.view,
.card,
.record-list,
.record-card{
  max-width:100%;
  min-width:0;
}
.record-list{
  width:100%;
  overflow:visible;
}
.record-card{
  overflow:hidden;
}
.record-head{
  min-width:0;
}
.record-head > div{
  min-width:0;
  flex:1 1 auto;
}
.record-head b{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}
.record-head .badge,
.record-head .status,
.record-head span[class*="badge"]{
  flex:0 0 auto;
}
.record-time{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.record-row{
  min-width:0;
  align-items:flex-start;
}
.record-row span:first-child{
  flex:0 0 auto;
  white-space:nowrap;
}
.record-row b{
  min-width:0;
  max-width:70%;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}
.record-row code{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-all;
}
.record-main-text{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

/* M端弹窗不再被顶部/底部裁切，头部固定，内容区域滚动 */
.modal{
  overscroll-behavior:contain;
}
.modal-head{
  flex:0 0 auto;
}
.modal-body{
  min-height:0;
}
.recharge-modal{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.recharge-modal .modal-head{
  position:relative!important;
  top:auto!important;
  z-index:4!important;
}
.recharge-modal .recharge-modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
.recharge-modal .recharge-pay-footer{
  flex:0 0 auto;
}
.recharge-section,
.recharge-summary,
.coupon-input-row,
.recharge-pay-footer{
  max-width:100%;
  min-width:0;
}
.recharge-section-title{
  min-width:0;
}
.recharge-section-title > div{
  min-width:0;
}
.recharge-section-title b,
.recharge-section-title small{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.coupon-input-row input{
  min-width:0;
}

@media(max-width:899px){
  .main{
    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:calc(92px + var(--safe-bottom))!important;
  }

  .page-title{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
    gap:10px!important;
  }
  .page-title > div{
    min-width:0;
    flex:1 1 220px;
  }
  .page-title h3,
  .page-title p{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  .record-tabs{
    width:100%;
  }
  .record-list{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .record-card{
    padding:13px!important;
    border-radius:20px!important;
  }
  .record-head{
    gap:8px!important;
  }
  .record-row{
    gap:10px!important;
    padding:8px 0!important;
  }
  .record-row b{
    max-width:64%;
  }

  .modal-mask{
    align-items:center!important;
    padding:
      max(8px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom))!important;
  }
  .modal{
    width:100%!important;
    max-width:520px!important;
    max-height:calc(100vh - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    border-radius:24px!important;
  }
  .recharge-modal{
    height:auto!important;
    max-height:calc(100vh - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
  }
  .recharge-modal .recharge-modal-head{
    padding:13px 14px!important;
    border-bottom:1px solid rgba(148,163,184,.22)!important;
  }
  .recharge-modal .recharge-modal-head h3{
    font-size:18px!important;
  }
  .recharge-modal .recharge-modal-head p{
    font-size:12px!important;
    line-height:1.45!important;
    margin-top:3px!important;
  }
  .recharge-modal .close{
    width:36px!important;
    height:36px!important;
    flex:0 0 auto!important;
  }
  .recharge-modal .recharge-modal-body{
    padding:11px!important;
  }
  .recharge-section{
    padding:11px!important;
    border-radius:19px!important;
    margin-bottom:10px!important;
  }
  .recharge-section-title{
    gap:9px!important;
    margin-bottom:10px!important;
  }
  .step-dot{
    flex:0 0 auto!important;
  }

  .recharge-modal .recharge-plan-grid{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .recharge-modal .plan{
    min-height:0!important;
    padding:11px 12px!important;
    border-radius:18px!important;
    align-items:flex-start!important;
    overflow:hidden!important;
  }
  .recharge-modal .plan-left{
    min-width:0!important;
  }
  .recharge-modal .plan-left b{
    font-size:16px!important;
    line-height:1.35!important;
  }
  .recharge-modal .plan-label,
  .recharge-modal .plan-desc,
  .recharge-modal .plan span{
    font-size:12px!important;
  }
  .recharge-modal .plan-price-box{
    margin-top:6px!important;
  }
  .recharge-modal .plan-price{
    font-size:13px!important;
    white-space:normal!important;
  }

  .coupon-input-row{
    grid-template-columns:1fr auto auto!important;
    gap:6px!important;
  }
  .coupon-input-row input{
    height:42px!important;
    padding:0 10px!important;
    font-size:14px!important;
  }
  .coupon-input-row button{
    height:42px!important;
    padding:0 10px!important;
    min-width:52px!important;
  }

  .recharge-summary{
    padding:11px!important;
    border-radius:17px!important;
  }
  .recharge-summary-row{
    gap:8px!important;
    align-items:flex-start!important;
    font-size:13px!important;
  }
  .recharge-summary-row span{
    flex:0 0 auto;
  }
  .recharge-summary-row b{
    min-width:0;
    max-width:68%;
    text-align:right;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .recharge-summary-row .pay-money{
    font-size:20px!important;
  }

  .recharge-pay-footer{
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
    gap:9px!important;
  }
  .pay-footer-left{
    min-width:0!important;
  }
  .pay-footer-left b{
    font-size:20px!important;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .pay-footer-left small{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .recharge-pay-footer .recharge-submit{
    min-width:128px!important;
    height:46px!important;
    padding:0 14px!important;
    flex:0 0 auto!important;
  }
}

@media(max-width:380px){
  .coupon-input-row{
    grid-template-columns:1fr 54px 54px!important;
  }
  .coupon-input-row button{
    padding:0 8px!important;
    font-size:13px!important;
  }
  .record-row{
    flex-wrap:wrap;
  }
  .record-row b{
    max-width:100%;
    width:100%;
    text-align:left;
  }
  .recharge-pay-footer{
    align-items:stretch!important;
  }
  .recharge-pay-footer .recharge-submit{
    min-width:112px!important;
  }
}


/* ========== M端充值套餐标签完整显示修复 ========== */
.recharge-modal .plan-badge{
  white-space:normal!important;
  word-break:keep-all!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.15!important;
  text-align:center!important;
  z-index:3!important;
}

@media(max-width:899px){
  .recharge-modal .plan{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "badge badge"
      "left price"!important;
    align-items:start!important;
    overflow:visible!important;
    row-gap:7px!important;
  }
  .recharge-modal .plan-badge{
    position:static!important;
    grid-area:badge!important;
    justify-self:end!important;
    align-self:start!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:22px!important;
    padding:4px 9px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    white-space:normal!important;
    word-break:keep-all!important;
  }
  .recharge-modal .plan-left{
    grid-area:left!important;
    min-width:0!important;
  }
  .recharge-modal .plan-price-box{
    grid-area:price!important;
    justify-self:end!important;
    align-items:flex-end!important;
    min-width:86px!important;
    max-width:120px!important;
    margin-top:0!important;
  }
  .recharge-modal .plan-price,
  .recharge-modal .plan-original,
  .recharge-modal .plan-save{
    white-space:normal!important;
    text-align:right!important;
    line-height:1.25!important;
  }
}

@media(max-width:380px){
  .recharge-modal .plan{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "badge"
      "left"
      "price"!important;
  }
  .recharge-modal .plan-badge{
    justify-self:start!important;
  }
  .recharge-modal .plan-price-box{
    justify-self:start!important;
    align-items:flex-start!important;
    max-width:100%!important;
  }
  .recharge-modal .plan-price,
  .recharge-modal .plan-original,
  .recharge-modal .plan-save{
    text-align:left!important;
  }
}



/* ========== 功能开关 + 兑换码购买链接 ========== */
.feature-disabled{
  opacity:.58!important;
  filter:grayscale(.12);
}
.redeem-service-status{
  margin-top:10px;
  padding:9px 11px;
  border-radius:14px;
  font-size:12px;
  font-weight:900;
  line-height:1.45;
}
.redeem-service-status.ok{
  color:#166534;
  background:#dcfce7;
  border:1px solid #bbf7d0;
}
.redeem-service-status.off{
  color:#991b1b;
  background:#fee2e2;
  border:1px solid #fecaca;
}
.redeem-purchase-box{
  margin-top:10px;
  padding:11px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff7ed,#fff);
  border:1px solid rgba(251,146,60,.28);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.redeem-purchase-box a{
  flex:0 0 auto;
  padding:9px 12px;
  border-radius:999px;
  color:#fff;
  font-weight:1000;
  text-decoration:none;
  background:linear-gradient(135deg,#f97316,#ef4444);
  box-shadow:0 12px 22px rgba(249,115,22,.20);
}
.redeem-purchase-box span{
  min-width:0;
  color:#9a3412;
  font-size:12px;
  line-height:1.45;
}
@media(max-width:420px){
  .redeem-purchase-box{
    align-items:stretch;
    flex-direction:column;
  }
  .redeem-purchase-box a{
    text-align:center;
  }
}



/* ========== 注册开关 + 注册送币提示 ========== */
.register-bonus-tip{
  margin:4px 0 8px;
  padding:10px 12px;
  border-radius:14px;
  font-size:12px;
  font-weight:900;
  line-height:1.55;
}
.register-bonus-tip.ok{
  color:#166534;
  background:#dcfce7;
  border:1px solid #bbf7d0;
}
.register-bonus-tip.off{
  color:#991b1b;
  background:#fee2e2;
  border:1px solid #fecaca;
}
.auth-tab.feature-disabled{
  opacity:.55;
}



/* ========== 兑换码购买按钮可见性修复 ========== */
.redeem-purchase-box:not(.hide){
  display:flex!important;
}
.redeem-purchase-box.hide{
  display:none!important;
}
.redeem-purchase-box a{
  cursor:pointer;
}



/* ========== 二期：用户端 Loading / 富文本公告 ========== */
.global-loading{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(15,23,42,.25);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.global-loading.hide{display:none!important}
.global-loading-box{
  min-width:150px;
  padding:18px 20px;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 28px 70px rgba(15,23,42,.18);
  display:flex;
  align-items:center;
  gap:12px;
}
.spinner{
  width:24px;height:24px;border-radius:50%;
  border:3px solid rgba(109,93,252,.22);
  border-top-color:#6d5dfc;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.notice-content{
  white-space:normal!important;
  line-height:1.65!important;
}
.notice-content a{
  color:#4f46e5;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px dashed rgba(79,70,229,.45);
}



/* ========== 三期：通知中心 + UI 打磨 ========== */
.notify-float-btn{
  position:fixed;
  right:18px;
  bottom:86px;
  z-index:1200;
  width:48px;
  height:48px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#6d5dfc,#8b5cf6);
  color:#fff;
  font-size:20px;
  box-shadow:0 18px 35px rgba(109,93,252,.28);
}
.notify-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
}
.notify-modal{max-width:560px}
.notify-list{display:flex;flex-direction:column;gap:10px}
.notify-item{
  border:1px solid rgba(148,163,184,.24);
  background:#fff;
  border-radius:18px;
  padding:12px;
}
.notify-item.unread{
  border-color:rgba(109,93,252,.42);
  background:linear-gradient(135deg,#f5f3ff,#fff);
}
.notify-item-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.notify-item-head span{font-size:12px;color:#64748b}
.notify-item p{margin:8px 0;color:#334155;line-height:1.55}
.notify-item a{color:#4f46e5;font-weight:900;text-decoration:none}
.card,.modal,.auth-card{
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform:translateY(-1px);
}
@media(max-width:520px){
  .notify-float-btn{right:14px;bottom:78px}
  .notify-modal{max-width:calc(100vw - 22px)}
}



/* ========== 通知显示修复 ========== */
.notify-list{
  min-height:72px;
  max-height:52vh;
  overflow:auto;
}
.notify-item{
  text-align:left;
}
.notify-item .gray-btn{
  margin-top:8px;
  padding:8px 12px;
  border-radius:12px;
}




/* ========== PC端布局最终优化：减少大屏留白 + 弹窗按钮对齐 ========== */
@media (min-width: 900px){
  body{
    overflow-x:hidden;
  }

  .page-shell{
    width:100%;
    max-width:none!important;
    margin:0!important;
    overflow:visible!important;
  }

  .app.show{
    display:grid!important;
    grid-template-columns:250px minmax(0,1fr);
    column-gap:32px;
    width:min(1540px, calc(100vw - 72px));
    margin:0 auto;
    padding:0 0 34px!important;
    min-height:100vh;
    align-items:start;
  }

  .app-header{
    position:sticky!important;
    top:0;
    left:auto;
    width:250px!important;
    min-height:100vh;
    padding:30px 16px!important;
    border:0!important;
    background:rgba(255,255,255,.72)!important;
    box-shadow:inset -1px 0 0 rgba(15,23,42,.06);
    backdrop-filter:blur(18px);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
  }

  .header-row{
    display:flex!important;
    flex-direction:column;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:54px!important;
  }

  .header-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    padding:0 10px;
  }

  .header-logo{
    width:42px!important;
    height:42px!important;
    border-radius:16px!important;
    flex:0 0 42px;
  }

  .header-brand h2{
    font-size:22px!important;
    letter-spacing:-.4px;
  }

  .header-brand p{
    font-size:12px!important;
  }

  .user-pill{
    order:5;
    width:100%;
    max-width:none!important;
    height:42px!important;
    justify-content:center;
    margin-top:16px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }

  .tabbar{
    position:static!important;
    width:100%!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }

  .tabbar button{
    width:100%!important;
    height:54px!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    padding:0 16px!important;
    border-radius:18px!important;
    font-size:14px!important;
    gap:12px!important;
    color:#758097;
  }

  .tabbar button i,
  .tabbar .ph-nav-icon{
    flex:0 0 auto;
  }

  .tabbar button.active{
    color:var(--p)!important;
    background:linear-gradient(135deg,rgba(98,102,241,.13),rgba(139,92,246,.10))!important;
    box-shadow:0 14px 30px rgba(98,102,241,.10);
  }

  .main{
    width:100%!important;
    max-width:none!important;
    padding:28px 0 42px!important;
    min-width:0;
  }

  .notice{
    margin-bottom:18px!important;
    padding:20px!important;
    border-radius:24px!important;
  }

  .balance-card{
    min-height:252px!important;
    padding:32px!important;
    border-radius:30px!important;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .balance-num b{
    font-size:54px!important;
  }

  .balance-actions{
    width:min(380px, 100%);
    grid-template-columns:1fr 1fr;
    gap:10px!important;
  }

  .balance-actions .btn:nth-child(3){
    grid-column:1 / 2;
  }

  .stats-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:14px!important;
    margin:16px 0 18px!important;
  }

  .stat{
    min-height:88px;
    padding:18px!important;
    border-radius:18px!important;
  }

  .quick-card,
  .record-card,
  .profile-card,
  .project-category-group,
  .coupon-card{
    border-radius:22px!important;
  }

  .project-category-group{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .record-layout,
  .profile-grid{
    gap:16px!important;
  }

  .modal-mask{
    align-items:center!important;
    padding:30px!important;
  }

  .modal{
    max-width:560px!important;
    border-radius:26px!important;
    max-height:calc(100vh - 64px)!important;
  }

  .redeem-modal{
    width:min(560px, calc(100vw - 64px))!important;
    max-width:560px!important;
  }

  .redeem-modal-body{
    padding:16px!important;
  }

  .redeem-section{
    border-radius:22px!important;
    padding:16px!important;
  }

  .redeem-code-input{
    height:52px!important;
    border-radius:16px!important;
  }

  .redeem-footer{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px 16px 16px!important;
    border-radius:0 0 26px 26px;
  }

  .redeem-footer button{
    width:100%!important;
    height:52px!important;
    margin:0!important;
    border-radius:17px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:15px!important;
    line-height:1!important;
  }

  .redeem-footer .recharge-submit:disabled,
  .redeem-footer button:disabled{
    opacity:.62!important;
    color:#fff!important;
    background:linear-gradient(135deg,#a5b4fc,#a78bfa)!important;
    box-shadow:none!important;
  }

  .redeem-purchase-box{
    align-items:center!important;
  }
}

@media (min-width: 1400px){
  .app.show{
    width:min(1640px, calc(100vw - 88px));
    grid-template-columns:260px minmax(0,1fr);
    column-gap:40px;
  }

  .app-header{
    width:260px!important;
  }
}

@media (min-width: 900px) and (max-width: 1180px){
  .app.show{
    width:calc(100vw - 32px);
    grid-template-columns:220px minmax(0,1fr);
    column-gap:18px;
  }

  .app-header{
    width:220px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .project-category-group{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}




/* ========== 实测修复：PC左侧导航重复/错位 + M端铃铛遮挡弹窗按钮 ========== */
@media (min-width: 900px){
  .app.show{
    display:grid!important;
    grid-template-columns:250px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    grid-template-areas:"sidebar main"!important;
    column-gap:32px!important;
    align-items:start!important;
  }

  .app-header{
    grid-area:sidebar!important;
    z-index:1!important;
  }

  .main{
    grid-area:main!important;
  }

  .tabbar{
    grid-area:sidebar!important;
    align-self:start!important;
    justify-self:stretch!important;
    position:sticky!important;
    top:220px!important;
    z-index:3!important;
    margin:220px 0 0!important;
    width:100%!important;
  }

  .tabbar-inner{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }

  .app-header .header-row{
    min-height:auto!important;
  }
}

@media (min-width: 1400px){
  .app.show{
    grid-template-columns:260px minmax(0,1fr)!important;
  }
}

/* M端：弹窗打开时，通知铃铛不能盖住充值/兑换按钮 */
.notify-float-btn{
  z-index:90!important;
}
.modal-mask{
  z-index:1100!important;
}
.modal-mask.show ~ .notify-float-btn,
body:has(.modal-mask.show) .notify-float-btn{
  display:none!important;
}

/* M端兑换弹窗底部按钮保持同一水平线 */
@media(max-width:640px){
  .redeem-footer button,
  .redeem-footer .recharge-submit{
    margin:0!important;
    align-self:center!important;
  }
  .redeem-footer{
    align-items:center!important;
  }
}



/* ========== 实测修复2：彻底覆盖旧PC侧栏伪元素/left定位 ========== */
@media (min-width: 900px){
  .tabbar{
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    max-width:none!important;
    height:auto!important;
    padding:0!important;
    border-right:0!important;
    box-shadow:none!important;
  }
  .tabbar::before,
  .tabbar::after{
    display:none!important;
    content:""!important;
  }
  .tabbar-inner{
    margin-top:0!important;
  }
}
