:root{
  --rose:#E8739B; --rose-deep:#C8507F; --gold:#C9A24B;
  --ink:#2B2B33; --muted:#6F6F79; --muted2:#84848E; --bg:#F6F6F8; --card:#fff;
  --line:#ECECF1; --green:#3FB984; --warn:#F2994A;
  --danger:#E2574C; --success:#3FB984; --pink-bg:#FBEAF0;
  --line2:#F0F0F4; --body-bg:#EDEDF2;
  --btn-grad-start:#B84672; --btn-grad-end:#A63D68; /* 白字 ≥5:1 */
  --btn-blue-start:#315BC1; --btn-blue-end:#2A53A8;
  --btn-green-start:#1F7A52; --btn-green-end:#14583A;
  --success-deep:#2E9E6B; --pink-soft:#FCEEF4;
}
*{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent;}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--body-bg); color:var(--ink); display:flex; justify-content:center;}
.phone{width:100%; max-width:420px; min-height:100vh; background:var(--bg); display:flex; flex-direction:column; position:relative; box-shadow:0 0 40px rgba(0,0,0,.08);}

.app-header{background:linear-gradient(135deg,var(--rose),var(--rose-deep)); color:#fff; padding:18px 20px; font-size:18px; font-weight:700; min-height:60px; display:flex; align-items:center;}
.screen{flex:1; overflow-y:auto; padding-bottom:14px;}
.screen::-webkit-scrollbar{width:0;}

.card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; margin:0 16px 14px;}
.lbl{font-size:13px; color:var(--muted);}
.big-num{font-size:32px; font-weight:800; color:var(--rose-deep);}
.split{display:flex; gap:8px; margin-top:12px;}
.split>div{flex:1; background:var(--pink-soft); border-radius:10px; padding:8px; text-align:center;}
.split>div b{display:block; font-size:15px; color:var(--rose-deep);}
.split>div span{font-size:10px; color:var(--muted);}

.growth{display:flex; justify-content:space-around; text-align:center; margin-top:6px;}
.growth>div b{display:block; font-size:16px;}
.growth>div span{font-size:11px; color:var(--muted);}
.progress{height:8px; background:#EEE; border-radius:6px; margin:12px 0 8px; overflow:hidden;}
.progress i{display:block; height:100%; background:linear-gradient(90deg,var(--gold),#E0BC6A); width:28%;}
.mini{font-size:11px; color:var(--muted);}
.btn:focus-visible,.mini:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--rose-deep);outline-offset:2px;}

.grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:8px 16px 0;}
.grid4 .it{background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 4px; text-align:center; font-size:11px; color:#555;}
.grid4 .it .ic{font-size:20px; display:block; margin-bottom:4px;}

.banner-sm{background:linear-gradient(135deg,var(--pink-soft),#FBF4E6); border:1px solid #F6D6E3; border-radius:12px; padding:12px; font-size:12px; color:#9A4E6C; margin:0 16px 14px;}
.banner-sm b{color:var(--rose-deep);}
.notice{font-size:11px; color:var(--muted); background:#FBFBFD; border:1px dashed var(--line); border-radius:10px; padding:9px 12px; margin-top:8px;}
.btn{display:block; width:calc(100% - 32px); margin:12px 16px; background:linear-gradient(135deg,var(--btn-grad-start),var(--btn-grad-end)); color:#fff; border:none; border-radius:12px; padding:13px; font-size:14px; font-weight:700; text-align:center; transition:transform .12s ease, opacity .12s ease;}
.btn:active{transform:scale(.97); opacity:.9;}
.screen{animation:fadein .18s ease;}
@keyframes fadein{from{opacity:0;}to{opacity:1;}}
.btn.store{background:linear-gradient(135deg,var(--btn-blue-start),var(--btn-blue-end));} /* 白字 ≥6:1 */
.btn.green{background:linear-gradient(135deg,var(--btn-green-start),var(--btn-green-end));} /* 白字 ≥5.3:1 */

.qr-wrap{display:flex; gap:14px; align-items:center;}
.qr{width:96px; height:96px; background:#fff; border:1px solid var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:700; color:#CCC; letter-spacing:3px;}
.code{font-size:24px; font-weight:800; letter-spacing:2px; color:var(--rose-deep);}
.proj{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px;}
.proj .p{background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 6px; text-align:center;}
.proj .p .ph{height:40px; border-radius:8px; background:linear-gradient(135deg,var(--pink-soft),#F3E9F2); margin-bottom:6px;}
.proj .p b{font-size:12px; display:block;}
.proj .p span{font-size:10px; color:var(--muted);}

.bal{display:flex; gap:10px; margin:16px;}
.bal>div{flex:1; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center;}
.bal>div b{font-size:20px; display:block; color:var(--rose-deep);}
.bal>div span{font-size:11px; color:var(--muted);}
.tabs{display:flex; gap:6px; margin:8px 16px; flex-wrap:wrap;}
.tabs .t{font-size:11px; padding:5px 11px; border-radius:16px; background:#fff; border:1px solid var(--line); color:#666;}
.tabs .t.on{background:var(--btn-grad-start); color:#fff; border-color:var(--btn-grad-start);} /* 白字 5.05:1 */
.clist .c{display:flex; justify-content:space-between; align-items:center; padding:11px 2px; border-bottom:1px solid var(--line);}
.clist .c .left b{font-size:13px;}
.clist .c .left span{font-size:11px; color:var(--muted); display:block;}
.clist .c .amt{font-weight:800; color:var(--green); font-size:15px;}
.tag-t{font-size:10px; padding:1px 7px; border-radius:6px; background:#EAF7F0; color:var(--success-deep); margin-left:6px;}
.tag-w{font-size:10px; padding:1px 7px; border-radius:6px; background:#FFF5EC; color:var(--warn); margin-left:6px;}

.profile{background:linear-gradient(135deg,var(--rose),var(--rose-deep)); color:#fff; padding:28px 20px; display:flex; align-items:center; gap:14px;}
.avatar{width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700;}
.nm{font-size:18px; font-weight:700;}
.lv{font-size:12px; opacity:.9; margin-top:3px;}
.row{display:flex; justify-content:space-between; align-items:center; padding:12px 4px; border-bottom:1px solid var(--line); font-size:14px;}
.row:last-child{border-bottom:none;}
.ok{color:var(--green); font-size:12px;}

.bottom-nav{display:flex; border-top:1px solid var(--line); background:#fff; position:sticky; bottom:0;}
.bottom-nav div{flex:1; text-align:center; padding:8px 0 9px; font-size:11px; color:var(--muted);}
.bottom-nav div.on{color:var(--rose-deep); font-weight:700;}
.bottom-nav .ic{font-size:18px; display:block;}

/* 登录 / 通用补充 */
.login{text-align:center; padding:48px 24px 24px;}
.login .logo{font-size:54px; margin-bottom:8px;}
.login h2{font-size:20px; color:var(--rose-deep); margin-bottom:24px;}
.inp{width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:12px; font-size:15px; margin-bottom:14px; outline:none;}
.inp:focus{border-color:var(--rose);}
.loading{text-align:center; color:var(--muted); padding:40px 0; font-size:13px;}
.btn.ghost{background:#fff; color:var(--rose-deep); border:1px solid var(--line);}

/* 通用弹层 / 轻提示（替代原生 prompt / alert */
.mask{position:fixed; inset:0; background:rgba(30,10,20,.5); z-index:900; display:flex; align-items:center; justify-content:center; padding:24px;}
.mask .dlg{background:#fff; border-radius:16px; padding:20px 18px 16px; width:100%; max-width:320px; box-shadow:0 14px 34px rgba(0,0,0,.2);}
.mask .dlg h3{font-size:16px; color:var(--rose-deep); margin-bottom:6px;}
.mask .dlg .desc{font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:12px;}
.mask .dlg .err{color:#E2574C; font-size:12px; min-height:16px; margin:-8px 0 8px;}
.mask .dlg .acts{display:flex; gap:10px;}
.mask .dlg .acts .btn{margin:0; flex:1;}
.toast{position:fixed; left:50%; bottom:88px; transform:translateX(-50%); background:rgba(40,20,30,.9); color:#fff; font-size:13px; padding:10px 18px; border-radius:20px; z-index:950; max-width:80%; text-align:center; animation:tin .2s ease;}
@keyframes tin{from{opacity:0; transform:translate(-50%,8px);} to{opacity:1; transform:translate(-50%,0);}}
.more{display:block; width:calc(100% - 32px); margin:10px 16px 0; padding:10px; border:1px dashed var(--line); border-radius:12px; background:#fff; color:var(--rose-deep); font-size:13px;}
.more[disabled]{color:var(--muted); border-style:solid;}
