/* ============================================================
   C 端会员端（H5）· 月白紫
   一块纸，一根细线，一个数字。分数卡是唯一允许「亮」的地方。
   ============================================================ */
body { background: #EDE8F7; }

.h5 {
  width: 100%; max-width: 440px; margin: 0 auto; min-height: 100vh; position: relative;
  background:
    radial-gradient(120% 46% at 76% -10%, rgba(139, 124, 246, .16) 0%, rgba(139, 124, 246, 0) 62%),
    linear-gradient(180deg, #FFFFFF 0%, #FBF8FF 30%, #F6F2FD 100%);
  color: #211A3D; padding: 0 16px 108px; overflow-x: hidden;
}
.back-site { display: none; }
@media (min-width: 900px) {
  body { display: flex; justify-content: center; }
  .h5 { border-left: 1px solid #E4DBF5; border-right: 1px solid #E4DBF5; }
  .back-site {
    position: fixed; left: 28px; top: 26px; z-index: 40; font-size: 12.5px; color: #8B7FAE;
    display: flex; align-items: center; gap: 6px;
  }
  .back-site:hover { color: #211A3D; }
}

/* ---------- 顶部 ---------- */
.h5-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 10px; }
.h5-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
}
.h5-brand img { width: 21px; height: 21px; }
.streak {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: #9A4A12;
  background: #fff; border: 1px solid #F5D9C8;
  padding: 5px 9px; border-radius: 3px;
}
.streak i { width: 5px; height: 5px; border-radius: 50%; background: #FF6B2C; }

.date-row { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 14px; }
.date-row b { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.date-row span { font-size: 12px; color: #8B7FAE; }

/* ---------- 分数卡：整页唯一带光的地方 ---------- */
.score-card {
  position: relative; border-radius: 16px; padding: 17px 17px 15px; overflow: hidden;
  background: linear-gradient(150deg, #FFFFFF 0%, #FFFFFF 46%, #F8F5FF 100%);
  border: 1px solid #fff;
  box-shadow: 0 1px 0 #fff inset, 0 14px 34px -22px rgba(78, 56, 168, .38), 0 2px 6px -3px rgba(78, 56, 168, .10);
}
.score-card::after {
  content: ""; position: absolute; left: -30%; top: -46%; width: 165%; height: 118%;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, .8) 47%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.score-card > * { position: relative; z-index: 1; }
.score-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #8B7FAE; letter-spacing: .06em; }
.score-body { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.score-ring { position: relative; width: 124px; height: 124px; flex: none; }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val b {
  font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1;
  letter-spacing: -.02em; color: #241B4C; font-variant-numeric: lining-nums tabular-nums;
}
.score-ring .val span { font-size: 9.5px; color: #A79FBF; margin-top: 5px; letter-spacing: .16em; }
.score-meta { flex: 1; min-width: 0; }
.score-meta .lvl { font-size: 12px; color: #6B5F8C; }
.score-meta .lvl b { color: #211A3D; font-weight: 600; }
.score-ring .val b { font-variant-numeric: lining-nums tabular-nums; }
.score-meta .xp { margin-top: 10px; font-size: 11px; color: #8B7FAE; }
.xpbar { height: 4px; background: #EFEAFB; margin-top: 6px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: #7C68FA; }
.score-meta .cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.score-meta .cmp span { font-size: 9.5px; color: #8B7FAE; }
.score-meta .cmp b {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 15px; color: #211A3D;
  margin-top: 3px; font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- 小节标题 ---------- */
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 10px; }
.sec-t h3 { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.sec-t a { font-size: 11.5px; color: #8B7FAE; }

/* ---------- 四维 ---------- */
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dim-t {
  border-radius: 10px; padding: 13px 13px 12px; text-align: left; position: relative;
  border: 1px solid var(--line); background: #fff;
  color: #211A3D; transition: border-color .2s; display: block; width: 100%;
}
.dim-t:active { background: #FBFAFE; }
.dim-t .h { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6B5F8C; }
.dim-t .h .nm { font-size: 12px; font-weight: 600; color: #211A3D; }
.dim-t .n {
  font-family: var(--serif); font-weight: 600; font-size: 27px; margin-top: 7px;
  letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums;
}
.dim-t .n small { font-size: 10px; font-family: var(--font); color: #8B7FAE; margin-left: 3px; letter-spacing: 0; }
.dim-t .sub { font-size: 10px; color: #8B7FAE; margin-top: 3px; }
.dim-t .track { height: 3px; background: #F1EDF9; margin-top: 9px; overflow: hidden; }
.dim-t .track i { display: block; height: 100%; }
.dim-t .done { position: absolute; top: 11px; right: 11px; font-size: 9px; color: #1B9A5B; }
.dim-t .done.wait { color: #B0A8C6; }

/* ---------- 今日记录 ---------- */
.task-list { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.task { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.task:last-child { border-bottom: 0; }
.task .ck {
  width: 17px; height: 17px; border-radius: 50%; border: 1.2px solid #CFC5E8;
  background: #fff; display: grid; place-items: center; font-size: 9px; color: transparent; flex: none;
}
.task .ck.on { background: #7C68FA; border-color: #7C68FA; color: #fff; }
.task .tx { flex: 1; font-size: 12.5px; }
.task .tx small { display: block; font-size: 10px; color: #8B7FAE; margin-top: 2px; }
.task .xp { font-size: 10.5px; color: #5F4BD8; font-family: var(--num); }

/* ---------- 八仔提示 ---------- */
.tip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 12px;
  border-radius: 10px; background: #FBF9FF; border: 1px solid #EDE6FB;
}
.tip img { width: 40px; height: 40px; flex: none; }
.tip p { font-size: 11.5px; line-height: 1.65; color: #6B5F8C; }
.tip b { color: #211A3D; }

/* ---------- 底部 tab ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px;
  height: 66px; display: flex; align-items: flex-start; padding-top: 9px; z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #8B82A6; }
.tab img { width: 21px; height: 21px; opacity: .72; }
.tab.on { color: #5F4BD8; font-weight: 600; }
.tab.on img { opacity: 1; }

/* ---------- 成长页 ---------- */
.lv-card {
  border-radius: 14px; padding: 17px; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.lv-row { display: flex; align-items: flex-end; justify-content: space-between; }
.lv-row .big {
  font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
}
.lv-row .big small { font-size: 12px; font-family: var(--font); font-weight: 400; color: #6B5F8C; margin-left: 6px; letter-spacing: 0; }
.lv-row .coin { text-align: right; font-size: 10px; color: #8B7FAE; }
.lv-row .coin b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; color: #211A3D; }
.lv-prog { margin-top: 14px; }
.lv-prog .pbar { height: 5px; background: #EFEAFB; overflow: hidden; }
.lv-prog .pbar i { display: block; height: 100%; background: #7C68FA; }
.lv-prog .pl { display: flex; justify-content: space-between; font-size: 10px; color: #8B7FAE; margin-top: 7px; }

.tier-line { display: flex; gap: 3px; margin-top: 16px; }
.tier-line span { flex: 1; height: 3px; background: #EFEAFB; }
.tier-line span.on { background: #7C68FA; }

.season { margin-top: 10px; border-radius: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.season .r { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #6B5F8C; }
.season .r b { color: #211A3D; font-family: var(--num); font-size: 15px; }
.season .big { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 8px 0 2px; }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge-i { text-align: center; }
.badge-i .bd {
  width: 100%; max-width: 60px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; font-weight: 600; position: relative; color: #211A3D;
  background: #FBF9FF; border: 1px solid #E6DDFA;
}
.badge-i.locked .bd { color: #B0A8C6; border-style: dashed; background: transparent; }
.badge-i .bd.on { border-color: #7C68FA; border-width: 1.5px; }
.badge-i span { display: block; font-size: 9.5px; color: #8B7FAE; margin-top: 6px; }

.rank { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.rank .row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.rank .row:last-child { border-bottom: 0; }
.rank .row.me { background: #F8F5FF; }
.rank .no { width: 18px; font-family: var(--num); color: #8B7FAE; }
.rank .nm { flex: 1; }
.rank .sc { font-family: var(--num); color: #211A3D; }
.rank .av {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; color: #6B5F8C; background: #F3F0FA; border: 1px solid #E6DDFA;
}

/* ---------- 记录页 ---------- */
.week-dots { display: flex; justify-content: space-between; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.wd { text-align: center; font-size: 9.5px; color: #8B7FAE; }
.wd .d {
  width: 26px; height: 26px; border-radius: 50%; margin: 6px auto 4px; display: grid; place-items: center;
  font-family: var(--num); font-size: 11px; color: #6B5F8C;
}
.wd .d.full { background: #7C68FA; color: #fff; }
.wd .d.part { background: #F2EDFF; border: 1px solid #E1D8F8; }
.wd .d.none { border: 1px dashed #D8CEEF; color: #B0A8C6; }

.day-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.day-row:last-child { border-bottom: 0; }
.day-row .dh { width: 46px; flex: none; }
.day-row .dh b { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; }
.day-row .dh span { font-size: 9.5px; color: #8B7FAE; }
.day-row .mini { flex: 1; display: flex; gap: 4px; }
.day-row .mini i {
  flex: 1; height: 26px; border-radius: 3px; display: grid; place-items: center;
  font-size: 10px; font-family: var(--num); background: #FBFAFE; border: 1px solid var(--line-soft); color: #6B5F8C;
}
.day-row .sc { font-family: var(--serif); font-weight: 600; font-size: 16px; width: 30px; text-align: right; }

/* ---------- 我的 ---------- */
.prof { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; }
.prof .av {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff;
  background: linear-gradient(160deg, #9A88FF, #5F4BD8);
}
.prof .nm { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.prof .id { font-size: 10.5px; color: #8B7FAE; margin-top: 4px; }

.card-box {
  border-radius: 14px; padding: 16px; position: relative; overflow: hidden;
  background: linear-gradient(146deg, #6E5BE8 0%, #5B47D2 58%, #4A38B4 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 16px 34px -20px rgba(74, 56, 180, .7);
}
.card-box .t { font-size: 10px; color: rgba(255, 255, 255, .72); letter-spacing: .12em; }
.card-box .nm { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-top: 8px; color: #fff; }
.card-box .sub { font-size: 10.5px; color: rgba(255, 255, 255, .8); margin-top: 4px; }
.card-box .left { position: absolute; right: 16px; bottom: 14px; text-align: right; font-size: 10px; color: rgba(255, 255, 255, .72); }
.card-box .left b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; color: #fff; }

.coin-row { display: flex; gap: 8px; margin-top: 10px; }
.coin-box { flex: 1; border-radius: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); }
.coin-box .k { font-size: 10px; color: #8B7FAE; }
.coin-box .v { font-family: var(--serif); font-weight: 600; font-size: 23px; margin-top: 4px; }
.coin-box .v small { font-size: 10px; font-family: var(--font); color: #8B7FAE; }

.list { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.list .it { display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.list .it:last-child { border-bottom: 0; }
.list .it .ar { margin-left: auto; color: #B0A8C6; font-size: 12px; }
.list .it small { color: #8B7FAE; font-size: 10.5px; margin-left: auto; }

/* ---------- 记一笔面板 ---------- */
.mask { position: fixed; inset: 0; background: rgba(21, 17, 31, .42); opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 440px;
  background: #fff; border-radius: 18px 18px 0 0; z-index: 51; padding: 8px 18px 26px;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1); max-height: 88vh; overflow-y: auto;
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px -28px rgba(21, 17, 31, .45);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet { color: #211A3D; }
.sheet .grab { width: 34px; height: 4px; border-radius: 2px; background: #E4DEF1; margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sheet .desc { font-size: 11px; color: #8B7FAE; margin-top: 6px; line-height: 1.65; }
.field2 { margin-top: 16px; }
.field2 label { display: block; font-size: 11px; color: #6B5F8C; margin-bottom: 8px; }
.field2 .hint { font-size: 10px; color: #A79FBF; float: right; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: #211A3D; font-size: 16px;
}
.stepper button:active { background: #F8F5FF; }
.stepper .v {
  font-family: var(--serif); font-weight: 600; font-size: 23px; min-width: 78px; text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.stepper .v small { font-size: 10px; color: #8B7FAE; font-family: var(--font); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: #6B5F8C; font-size: 12px;
}
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet .submit {
  width: 100%; height: 46px; border-radius: 6px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; margin-top: 22px;
}

.toast {
  position: fixed; left: 50%; bottom: 106px; transform: translate(-50%, 12px); z-index: 60;
  background: #171226; border: 1px solid rgba(255, 255, 255, .12); color: #F2EEFF;
  padding: 10px 16px; border-radius: 6px; font-size: 12px; opacity: 0; pointer-events: none;
  transition: .28s; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 16px 36px -20px rgba(21, 17, 31, .8);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: #B9A8FF; font-family: var(--num); }

/* ---------- 健康报告 ---------- */
.rep-card { border-radius: 12px; padding: 16px; margin-top: 10px; background: #fff; border: 1px solid var(--line); }
.rep-card h4 { font-size: 12.5px; color: #6B5F8C; font-weight: 600; }
.insight { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.insight:last-child { border-bottom: 0; }
.insight .no {
  width: 19px; height: 19px; border-radius: 2px; background: #F2EDFF; color: #5F4BD8;
  font-size: 10px; display: grid; place-items: center; font-family: var(--num); flex: none;
}
.insight p { font-size: 11.5px; line-height: 1.7; color: #6B5F8C; }
.insight p b { color: #211A3D; }
