/* 设计稿按 750px 宽，1rem = 100 设计像素 */
:root{
  --brand:#fd5858;
  --brand-soft:#ffeeee;
  --bg:#efefef;
  --card:#fff;
  --t1:#333;
  --t2:#666;
  --t3:#999;
  --line:#e5e5e5;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none !important}
html,body{margin:0;padding:0;height:100%}
html{font-size:13.3333vw}
@media (min-width:480px){html{font-size:64px}}
body{
  background:var(--bg);
  color:var(--t1);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
}
#app{
  position:relative;display:flex;flex-direction:column;
  width:100%;max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;
  background:var(--bg);
}
#view{flex:1;display:flex;flex-direction:column;min-height:0}
a{text-decoration:none;color:inherit}
img{display:block}

/* ---------------- tabbar ---------------- */
.tabbar{
  position:sticky;bottom:0;z-index:30;display:flex;
  height:.65rem;background:#fff;border-top:1px solid #f0f0f0;
  padding-bottom:env(safe-area-inset-bottom);
}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.02rem;color:#999}
.tab-ico{font-size:.26rem;line-height:1}
.tab-txt{font-size:.2rem}
.tab.on{color:var(--brand)}

/* ---------------- 登录 ---------------- */
.login{flex:1;background:#fff;display:flex;flex-direction:column;align-items:center;padding-bottom:.4rem}
.login-brand{margin-top:1.82rem;display:flex;flex-direction:column;align-items:center}
.login-logo{
  width:1.32rem;height:1.32rem;border-radius:.3rem;background:var(--brand);
  color:#fff;font-size:.62rem;font-weight:700;display:flex;align-items:center;justify-content:center;
  box-shadow:0 .1rem .3rem rgba(253,88,88,.28);
}
.login-name{margin-top:.24rem;font-size:.4rem;font-weight:700;letter-spacing:.04rem}
.login-slogan{margin-top:.12rem;font-size:.24rem;color:var(--t3)}
.field{
  width:6.22rem;height:.96rem;margin-top:.36rem;background:#f4f8fb;border-radius:.48rem;
  display:flex;align-items:center;padding:0 .4rem;border:2px solid transparent;transition:border-color .15s;
}
.field.focus{border-color:var(--brand)}
.field:first-of-type{margin-top:1.4rem}
.field .area{font-size:.36rem;font-weight:600;padding-right:.2rem;margin-right:.2rem;border-right:2px solid #dfdfdf}
.field input{
  flex:1;border:0;background:transparent;outline:none;font-size:.36rem;color:var(--t1);font-weight:600;
  font-family:inherit;
}
.field input::placeholder{color:#b9c4cc;font-weight:400}
.field .send{font-size:.28rem;color:var(--brand);padding-left:.2rem;white-space:nowrap;background:none;border:0;font-family:inherit}
.field .send[disabled]{color:#bbb}
.btn-primary{
  width:6.22rem;height:.96rem;margin-top:.64rem;border:0;border-radius:.48rem;background:var(--brand);
  color:#fff;font-size:.36rem;font-weight:600;font-family:inherit;
}
.btn-primary:active{opacity:.9}
.btn-demo{
  width:6.22rem;height:.88rem;margin-top:.24rem;border:2px dashed #f5a3a3;border-radius:.44rem;
  background:#fff7f7;color:var(--brand);font-size:.3rem;font-weight:600;font-family:inherit;
}
.btn-demo[disabled]{opacity:.55}
.hint{min-height:.36rem;margin-top:.16rem;font-size:.24rem;color:#4a90d9;text-align:center;line-height:1.4}
.agree.warn{background:#fff1f1;border-radius:.12rem;color:#e23b3b}
.btn-wx{
  width:6.22rem;height:1.16rem;margin-top:.3rem;border:2px solid #e6e6e6;border-radius:.58rem;background:#fff;
  color:#333;font-size:.34rem;font-weight:600;display:flex;align-items:center;justify-content:center;gap:.12rem;font-family:inherit;
}
.agree{
  margin-top:auto;padding:.6rem .6rem .3rem;display:flex;align-items:flex-start;gap:.14rem;
  font-size:.24rem;color:var(--t3);line-height:1.5;
}
.agree i{
  width:.3rem;height:.3rem;border-radius:50%;border:2px solid #ccc;flex:none;margin-top:.03rem;
  display:flex;align-items:center;justify-content:center;font-style:normal;font-size:.2rem;color:transparent;
}
.agree.on i{background:var(--brand);border-color:var(--brand);color:#fff}
.agree a{color:var(--brand)}

/* ---------------- 首页 ---------------- */
.home{flex:1;padding-bottom:.2rem}
.countdown{
  position:sticky;top:0;z-index:20;margin:.32rem auto 0;width:6.86rem;height:1rem;
  background:var(--brand-soft);border-radius:.18rem .18rem 0 0;
  display:flex;align-items:center;padding:0 .24rem;
}
.countdown b{font-size:.28rem;color:#f85555;margin-right:.16rem}
.clk{width:.46rem;height:.46rem;background:#333;color:#f2f2f2;border-radius:.04rem;font-size:.32rem;display:flex;align-items:center;justify-content:center}
.colon{font-size:.32rem;color:#000;padding:0 .06rem}
.countdown em{margin-left:.35rem;font-style:normal;font-size:.24rem;color:#d87878;font-weight:700;line-height:1.2}

.card{
  width:6.86rem;background:var(--card);border-radius:.18rem;padding:.22rem .36rem;
  margin:0 auto .2rem;box-shadow:0 .06rem .2rem rgba(0,0,0,.06);
}
.card:first-of-type{margin-top:-.06rem}
.card-hd{display:flex;align-items:center;margin-bottom:.06rem;padding-left:.1rem}
.avatar{width:1.2rem;height:1.2rem;border-radius:50%;object-fit:cover;flex:none}
.card-hd .name{margin-left:.26rem;font-size:.4rem;font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.badge{font-size:.2rem;color:#4a90d9;border:1px solid #cfe3f7;background:#f2f8ff;border-radius:.2rem;padding:.02rem .12rem}
.grid2{display:flex;flex-wrap:wrap;padding-left:.18rem}
.grid2 .cell{width:50%;display:flex;align-items:center;margin-top:.06rem}
.grid2 .k{font-size:.3rem;font-weight:700;color:#707070;margin-right:.16rem;white-space:nowrap}
.grid2 .v{font-size:.34rem;font-weight:700;color:var(--t1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desc{
  font-size:.3rem;color:var(--t2);line-height:1.5;background:#f5f5f5;border-radius:.16rem;
  padding:.1rem .18rem;margin-top:.14rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-ft{display:flex;justify-content:space-between;margin:.22rem .28rem 0}
.ghost,.solid{
  height:.64rem;min-width:2.28rem;border-radius:.32rem;font-size:.3rem;font-weight:700;letter-spacing:.02rem;
  display:flex;align-items:center;justify-content:center;font-family:inherit;
}
.ghost{border:2px solid #fa8d82;color:#fa8d82;background:#fff}
.solid{border:2px solid var(--brand);background:var(--brand);color:#fff}
.ghost:active,.solid:active{opacity:.85}
.empty{padding:2rem 0;text-align:center;color:var(--t3);font-size:.28rem}

/* ---------------- 我的 ---------------- */
.my{flex:1;background:#fff;padding-bottom:1rem}
.my-hd{
  background:linear-gradient(135deg,#fd5858,#ff8b7a);padding:.52rem .4rem .44rem;
  display:flex;align-items:center;color:#fff;
}
.my-hd .avatar{width:1.2rem;height:1.2rem;border:3px solid rgba(255,255,255,.6)}
.my-hd .meta{margin-left:.28rem;flex:1;min-width:0}
.my-hd .n{font-size:.4rem;font-weight:700}
.my-hd .c{margin-top:.1rem;font-size:.24rem;opacity:.9}
.my-hd .code{font-size:.22rem;background:rgba(255,255,255,.2);padding:.06rem .18rem;border-radius:.24rem}
.menu{margin-top:.2rem;background:#fff}
.menu-item{
  display:flex;align-items:center;justify-content:space-between;height:1rem;padding:0 .4rem;
  border-bottom:1px solid var(--line);font-size:.3rem;color:var(--t2);
}
.menu-item:last-child{border-bottom:0}
.menu-item .l{display:flex;align-items:center;gap:.2rem}
.menu-item .ico{width:.4rem;text-align:center;font-size:.32rem}
.menu-item .r{color:#c4c4c4;font-size:.26rem}
.my-out{margin:.6rem .4rem 0;height:.88rem;border-radius:.44rem;border:0;background:#fff;color:var(--brand);font-size:.3rem;width:calc(100% - .8rem);font-family:inherit}
.danger{color:#bbb;font-size:.26rem;text-align:center;margin-top:.32rem}

/* ---------------- 资料详情 ---------------- */
.detail{flex:1;background:#fff;padding-bottom:.4rem}
.detail-hd{background:linear-gradient(160deg,#ffd9d0,#ffe9e4 60%,#fff);padding:.4rem .4rem .2rem}
.detail-card{
  width:7.22rem;margin:-.5rem auto 0;background:#fff;border-radius:.18rem;padding:.26rem .3rem;
  display:flex;align-items:center;box-shadow:0 .06rem .24rem rgba(0,0,0,.08);
}
.detail-card .avatar{width:1.44rem;height:1.44rem;border:6px solid #ffb2b2}
.detail-card.male .avatar{border-color:#7eb7ee}
.detail-card .info{margin-left:.32rem;min-width:0}
.detail-card .n{font-size:.4rem;font-weight:600;display:flex;align-items:center;gap:.14rem}
.detail-card .sub{font-size:.3rem;color:#525252;margin-top:.1rem}
.sep{display:inline-block;width:2px;height:.22rem;background:#cbcbcb;margin:0 .16rem;vertical-align:middle}
.section{padding:.32rem}
.section + .section{border-top:1px solid #f3f3f3}
.section .st{display:flex;align-items:center;gap:.16rem;font-size:.4rem;font-weight:700;margin-bottom:.18rem}
.dot{width:.22rem;height:.22rem;border-radius:50%;background:var(--brand)}
.detail .grid2{padding-left:0}
.detail .grid2 .cell{margin-top:.2rem}
.detail .grid2 .k{font-size:.28rem;font-weight:400;color:#8a8a8a;margin-right:.12rem}
.detail .grid2 .v{font-size:.3rem;font-weight:600}
.detail .desc{margin-top:0;background:#f7f7f7}
.cta{
  position:sticky;bottom:0;background:#fff;border-top:1px solid #f0f0f0;
  padding:.2rem .3rem calc(.2rem + env(safe-area-inset-bottom));display:flex;gap:.2rem;
}
.cta button{flex:1;height:.88rem;border-radius:.44rem;font-size:.32rem;font-weight:700;font-family:inherit}
.cta .sec{background:#fff;border:2px solid #ddd;color:#666}
.cta .pri{background:var(--brand);border:2px solid var(--brand);color:#fff}
.back{
  position:absolute;left:.2rem;top:.2rem;z-index:10;width:.6rem;height:.6rem;border-radius:50%;
  background:rgba(0,0,0,.35);color:#fff;border:0;font-size:.34rem;line-height:1;
}

/* ---------------- 协议 ---------------- */
.agreement{padding:.4rem .4rem .8rem;background:#fff;flex:1;font-size:.28rem;line-height:1.8;color:#444;white-space:pre-wrap}
.agreement h1{font-size:.36rem;margin:0 0 .3rem}

/* ---------------- toast / modal ---------------- */
.toast{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:99;
  background:rgba(0,0,0,.78);color:#fff;font-size:.28rem;padding:.18rem .34rem;border-radius:.12rem;max-width:70vw;
}
.mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;display:flex;align-items:center;justify-content:center;padding:.6rem}
.modal{width:100%;max-width:5.6rem;background:#fff;border-radius:.2rem;padding:.4rem .36rem .3rem;text-align:center}
.modal h3{margin:0 0 .2rem;font-size:.34rem}
.modal p{margin:0;font-size:.28rem;color:#666;line-height:1.6}
.modal .acts{display:flex;gap:.2rem;margin-top:.36rem}
.modal button{flex:1;height:.8rem;border-radius:.4rem;font-size:.3rem;font-family:inherit;border:0}
.modal .c{background:#f2f2f2;color:#666}
.modal .k{background:var(--brand);color:#fff}
