* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --teal: #0FA37F; --teal2: #12B48D; --teal-d: #0B8164;
  --ink: #14242E; --ink2: #5C6E7A; --ink3: #94A3AE; --ink4: #B4C0C8;
  --bg: #F2F6F7; --card: #fff; --line: #EEF3F4; --gold: #DE9A22;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(120% 90% at 15% 0%, #e8f1ef 0%, #eef2f4 42%, #e9eef1 100%);
  color: var(--ink); -webkit-font-smoothing: antialiased;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; min-height: 100vh;
}
.wrap { display: flex; align-items: center; gap: 46px; max-width: 1080px; width: 100%; justify-content: center; }

/* ---------- 左侧说明 ---------- */
.side { width: 330px; flex: 0 0 330px; }
.side .kicker { font-size: 11px; letter-spacing: 2px; color: var(--teal); font-weight: 700; }
.side h1 { font-size: 25px; line-height: 1.35; margin-top: 10px; letter-spacing: -.3px; }
.side .lede { font-size: 13px; color: var(--ink2); line-height: 1.85; margin-top: 12px; }
.side .lede b { color: var(--teal-d); }
.steps { list-style: none; margin-top: 20px; border-left: 2px solid #dfe9e7; padding-left: 0; }
.steps li {
  position: relative; padding: 0 0 15px 20px; font-size: 12.5px; color: var(--ink3); line-height: 1.5;
  transition: color .2s;
}
.steps li::before {
  content: ''; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: #dfe9e7; transition: all .2s;
}
.steps li b { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.steps li span { font-size: 11px; }
.steps li.on { color: var(--ink2); }
.steps li.on b { color: var(--teal-d); }
.steps li.on::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(15,163,127,.14); }
.steps li.done::before { background: #b9ddd2; }

.tools { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tools .lbl { font-size: 10.5px; color: var(--ink4); letter-spacing: 1px; margin-bottom: 2px; }
.tools button {
  font: inherit; font-size: 12px; text-align: left; cursor: pointer;
  border: 1px solid #dfe8e9; background: rgba(255,255,255,.72); color: var(--ink2);
  border-radius: 10px; padding: 9px 12px; transition: all .16s;
}
.tools button:hover { border-color: #b9ddd2; background: #fff; color: var(--teal-d); transform: translateX(2px); }
.tools button.danger:hover { border-color: #f0c7c7; color: #c04c4c; }

/* ---------- 手机 ---------- */
.phoneWrap { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 auto; }
.phone {
  width: 375px; height: 790px; background: var(--bg); border-radius: 46px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 0 0 11px #16242c, 0 0 0 12px #2c3d46, 0 34px 60px -14px rgba(12,38,48,.42);
}
.sbar {
  height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 12px; font-weight: 650; color: var(--ink); position: relative; z-index: 5;
}
.sbar .right { display: flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: .5px; }
.sbar .bars { display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.sbar .bars i { width: 2.5px; background: currentColor; border-radius: 1px; display: block; }
.sbar .bars i:nth-child(1) { height: 4px; } .sbar .bars i:nth-child(2) { height: 6px; }
.sbar .bars i:nth-child(3) { height: 8px; } .sbar .bars i:nth-child(4) { height: 9px; opacity: .32; }
.sbar .batt { width: 21px; height: 11px; border: 1.2px solid currentColor; border-radius: 3px; padding: 1.4px; opacity: .85; }
.sbar .batt i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1px; }
.sbar.dark { color: #d7e6eb; }
.notch {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 104px; height: 26px; background: #16242c; border-radius: 16px;
}

.screen {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 16px 18px;
  scrollbar-width: none; position: relative;
}
.screen::-webkit-scrollbar { display: none; }
.screen.dark { background: radial-gradient(130% 62% at 50% 0%, #17303a 0%, #0c181e 58%, #0a151a 100%); padding: 0; overflow: hidden; }

/* ---------- 顶部 ---------- */
.htop { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 2px 14px; }
.hdate { font-size: 11.5px; color: var(--ink3); letter-spacing: .6px; }
.htitle { font-size: 25px; font-weight: 750; letter-spacing: -.4px; margin-top: 4px; }
.hsub { font-size: 11px; color: var(--ink3); margin-top: 6px; }
.streak {
  background: var(--card); border-radius: 14px; padding: 9px 13px; text-align: center;
  box-shadow: 0 4px 14px rgba(20,49,60,.07);
}
.streak b { display: block; font-size: 20px; color: var(--teal); line-height: 1.15; }
.streak span { font-size: 9.5px; color: var(--ink3); }

.card { background: var(--card); border-radius: 18px; box-shadow: 0 4px 16px rgba(20,49,60,.055); }

/* ---------- 今日进度 ---------- */
.hero { padding: 18px 17px 17px; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; }
.hero-k { font-size: 11px; color: var(--ink3); letter-spacing: .8px; }
.hero-n { display: flex; align-items: baseline; margin-top: 5px; }
.hero-n b { font-size: 42px; font-weight: 750; line-height: 1; letter-spacing: -1.5px; }
.hero-n span { font-size: 14px; color: var(--ink3); margin-left: 5px; font-weight: 500; }
.hero-r { text-align: right; padding-bottom: 4px; }
.hero-r i { font-size: 10px; color: var(--ink4); font-style: normal; display: block; }
.hero-r b { font-size: 23px; color: var(--teal); font-weight: 750; line-height: 1.3; letter-spacing: -.5px; }
.hero-r span { font-size: 9.5px; color: var(--ink4); }
.bar { height: 8px; border-radius: 5px; background: #EDF3F4; margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #34CBA4, #0B8164); transition: width .5s cubic-bezier(.2,.9,.3,1); }
.state {
  margin-top: 12px; padding: 9px 11px; border-radius: 10px; background: #F4F8F8;
  font-size: 11.5px; color: var(--ink2); line-height: 1.55;
}
.state b { color: var(--teal-d); }
.btn {
  width: 100%; margin-top: 13px; height: 46px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, #14BA92, #0B8164); color: #fff; font: inherit;
  font-size: 14.5px; font-weight: 650; letter-spacing: .3px;
  box-shadow: 0 8px 18px -4px rgba(11,129,100,.42); transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: scale(.985); box-shadow: 0 4px 10px -4px rgba(11,129,100,.4); }
.btn.ghost { background: #F2F7F7; color: var(--ink2); box-shadow: none; }

.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 3px 10px; }
.sec b { font-size: 14px; font-weight: 700; }
.sec span { font-size: 11px; color: var(--ink3); }

.week { display: flex; justify-content: space-between; padding: 14px 14px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wdd {
  width: 30px; height: 30px; border-radius: 50%; background: #F1F5F6; display: flex;
  align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: #C3CFD5;
}
.wdd.on { background: var(--teal); color: #fff; }
.wdd.today { box-shadow: 0 0 0 2.5px #b7e8d8; }
.wdd.future { opacity: .45; }
.wd i { font-size: 9.5px; color: var(--ink4); font-style: normal; }

/* ---------- 题目列表 ---------- */
.qlist { background: var(--card); border-radius: 18px; padding: 4px 13px; box-shadow: 0 4px 16px rgba(20,49,60,.055); }
.qrow { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid #F2F6F7; cursor: pointer; }
.qrow:active { opacity: .72; }
.qrow:last-child { border-bottom: none; }
.qthumb {
  position: relative; width: 62px; height: 50px; border-radius: 8px; overflow: hidden;
  flex: 0 0 62px; background: #EEF3F4;
}
.qthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qthumb .gl { position: absolute; background: rgba(255,255,255,.5); pointer-events: none; }
.qthumb .gl.v { top: 0; bottom: 0; width: 1px; }
.qthumb .gl.h { left: 0; right: 0; height: 1px; }
.qthumb .qno {
  position: absolute; left: 3px; top: 3px; background: rgba(14,30,38,.66); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 4px; font-weight: 600;
}
.qthumb.done::after {
  content: '✓'; position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px;
  background: var(--teal); color: #fff; border-radius: 50%; font-size: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.qmid { flex: 1; min-width: 0; padding: 0 11px; }
.qt { font-size: 13px; font-weight: 600; line-height: 1.35; }
.qs { font-size: 10.5px; color: var(--ink4); margin-top: 4px; display: flex; gap: 7px; align-items: center; }
.qs.has { color: var(--teal); font-weight: 600; }
.qact {
  height: 29px; padding: 0 13px; border-radius: 15px; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; font: inherit; font-size: 11.5px; font-weight: 650;
  display: flex; align-items: center; flex: 0 0 auto; transition: filter .15s;
}
.qact:active { filter: brightness(.93); }
.qact.again { background: #F2F7F7; color: var(--ink2); }

/* ---------- 排行 ---------- */
.seg { display: flex; background: #E9EFF0; border-radius: 11px; padding: 3px; margin: 2px 0 12px; }
.seg button {
  flex: 1; height: 32px; border: 0; background: transparent; border-radius: 9px; font: inherit;
  font-size: 12.5px; color: var(--ink2); cursor: pointer; font-weight: 600; transition: all .18s;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(20,49,60,.1); }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.dchip {
  width: 48px; flex: 0 0 48px; padding: 7px 0 8px; border-radius: 11px; background: #fff; border: 0;
  display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit;
  box-shadow: 0 2px 8px rgba(20,49,60,.05); transition: all .18s;
}
.dchip i { font-size: 9px; color: var(--ink4); font-style: normal; }
.dchip b { font-size: 11.5px; margin-top: 2px; font-weight: 650; }
.dchip span { font-size: 9px; color: var(--ink3); margin-top: 3px; }
.dchip.on { background: linear-gradient(150deg, #14BA92, #0B8164); box-shadow: 0 6px 14px -3px rgba(15,163,127,.42); }
.dchip.on i, .dchip.on b { color: #fff; }
.dchip.on span { color: #bff0e2; }

.ov { margin-top: 2px; display: flex; align-items: center; padding: 14px 4px; }
.ov > div { flex: 1; text-align: center; }
.ov b { font-size: 20px; display: block; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
.ov b.sm { font-size: 15.5px; color: var(--teal); }
.ov b.warn { color: #D98324; }
.ov b i { font-size: 11px; color: var(--ink4); font-style: normal; font-weight: 500; }
.ov span { font-size: 9.5px; color: var(--ink4); }
.ovline { width: 1px; height: 26px; background: var(--line); flex: 0 0 1px !important; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 18px 5px 0; }
.pod { flex: 1; max-width: 104px; display: flex; flex-direction: column; align-items: center; }
.pava {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 21px;
  box-shadow: 0 4px 12px rgba(20,49,60,.13);
}
.pod.p1 .pava { width: 58px; height: 58px; font-size: 26px; border: 2px solid #F3CB84; box-shadow: 0 6px 16px -2px rgba(233,163,46,.4); }
.pname { font-size: 11px; font-weight: 650; margin-top: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptime { font-size: 11px; color: var(--teal); font-weight: 750; margin-top: 2px; }
.pod.mine .pava { box-shadow: 0 0 0 2.5px #0FA37F, 0 4px 12px rgba(20,49,60,.13); }
.pod.mine .pname { color: var(--teal-d); }
.pod.mine .pname::after { content: ' · 我'; font-size: 9px; color: var(--teal); }
.pod { cursor: pointer; }
.pbar2 {
  width: 100%; margin-top: 8px; border-radius: 10px 10px 0 0; display: flex;
  justify-content: center; padding-top: 8px; color: #fff; font-size: 14px; font-weight: 750;
}
.b1 { height: 62px; background: linear-gradient(180deg, #F7C66B, #EDA32E); }
.b2 { height: 46px; background: linear-gradient(180deg, #C9D7DE, #A9BCC6); }
.b3 { height: 37px; background: linear-gradient(180deg, #E0B090, #C98F68); }

.mecard {
  margin-top: 13px; background: #fff; border-radius: 15px; padding: 13px 14px;
  box-shadow: 0 3px 12px rgba(20,49,60,.05); border: 1.5px solid #CDEEE3;
}
.mecard .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.mecard .top b { font-size: 13px; }
.mecard .top span { color: var(--gold); font-weight: 700; font-size: 12px; }
.mecard .bar { height: 6px; margin-top: 9px; }
.mecard .bar i { background: linear-gradient(90deg, #F6C063, #E79A1F); }
.mecard .tip { font-size: 10px; color: var(--ink3); margin-top: 8px; line-height: 1.5; }

.rows { margin-top: 10px; }
.row {
  display: flex; align-items: center; background: #fff; border-radius: 13px; padding: 10px 12px;
  margin-bottom: 7px; box-shadow: 0 2px 8px rgba(20,49,60,.045); cursor: pointer;
  transition: transform .14s, box-shadow .14s; border: 0; width: 100%; font: inherit; text-align: left;
}
.row:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(20,49,60,.09); }
.row .rk { width: 21px; font-size: 11.5px; color: var(--ink4); font-weight: 700; flex: 0 0 21px; }
.row .ra {
  width: 34px; height: 34px; border-radius: 50%; background: #F4F7F8; display: flex;
  align-items: center; justify-content: center; font-size: 15px; flex: 0 0 34px;
}
.row .rm { flex: 1; padding: 0 10px; min-width: 0; }
.row .rm b { font-size: 13px; display: block; font-weight: 650; }
.row .rm span { font-size: 9.5px; color: var(--ink4); }
.row .rr { text-align: right; flex: 0 0 auto; }
.row .rr b { font-size: 13.5px; display: block; font-weight: 750; letter-spacing: -.2px; }
.row .rr span { font-size: 9px; color: #C08A3E; }
.row.me { border: 1.5px solid #CDEEE3; background: #F8FDFB; }

.pend { background: #fff; border-radius: 16px; padding: 4px 13px; box-shadow: 0 3px 12px rgba(20,49,60,.05); }
.prow { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #F2F6F7; cursor: pointer; }
.prow:last-child { border-bottom: none; }
.pava2 {
  width: 29px; height: 29px; border-radius: 50%; background: #F4F7F8; display: flex;
  align-items: center; justify-content: center; font-size: 13px; filter: grayscale(.4); flex: 0 0 29px;
}
.pmid { flex: 1; padding: 0 10px; min-width: 0; }
.pmid b { font-size: 12.5px; font-weight: 600; display: block; }
.pmid span { font-size: 9.5px; color: var(--ink4); }
.pdots { display: flex; gap: 3px; }
.pdot { width: 7px; height: 7px; border-radius: 2px; background: #E6EDEE; }
.pdot.on { background: var(--teal); }

/* ---------- 我的 ---------- */
.prof { display: flex; align-items: center; gap: 13px; padding: 16px; }
.prof .ava {
  width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(140deg, #E7F7F1, #D3F0E6);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.prof b { font-size: 17px; display: block; letter-spacing: -.2px; }
.prof span { font-size: 11px; color: var(--ink3); display: block; margin-top: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 11px; }
.gcell { background: #fff; border-radius: 14px; padding: 13px 4px; text-align: center; box-shadow: 0 3px 11px rgba(20,49,60,.05); }
.gcell b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.5px; }
.gcell span { font-size: 9.5px; color: var(--ink4); }
.gcell b em { font-size: 10px; font-style: normal; color: var(--ink4); font-weight: 500; }

.bests { background: #fff; border-radius: 16px; padding: 4px 13px; box-shadow: 0 3px 12px rgba(20,49,60,.05); }
.brow { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px solid #F2F6F7; font-size: 12.5px; }
.brow:last-child { border-bottom: none; }
.brow .bn { width: 22px; color: var(--ink4); font-size: 11px; font-weight: 700; }
.brow .bt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.brow .bv { font-weight: 700; color: var(--teal); }
.brow .bv.none { color: var(--ink4); font-weight: 500; }

.cal { background: #fff; border-radius: 16px; padding: 14px 13px 10px; box-shadow: 0 3px 12px rgba(20,49,60,.05); }
.calhead { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 10px; }
.calhead b { font-size: 13px; }
.calhead button { border: 0; background: #F3F7F8; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; color: var(--ink2); font-size: 12px; }
.calw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.calw span { text-align: center; font-size: 9.5px; color: var(--ink4); padding: 2px 0; }
.calg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink3); }
.cell.out { color: #D7DFE2; }
.cell.done { background: #E6F6F0; color: var(--teal-d); font-weight: 700; }
.cell.today { box-shadow: 0 0 0 2px #9AD9C4 inset; }
.caltip { font-size: 10px; color: var(--ink4); text-align: center; padding: 8px 0 2px; }

/* ---------- 拼图页 ---------- */
.pz { position: absolute; inset: 0; display: flex; flex-direction: column; color: #EAF3F6; }
.pz-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 4px; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 11px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #D6E6EB; font-size: 15px; display: flex;
  align-items: center; justify-content: center; flex: 0 0 34px;
}
.iconbtn:active { background: rgba(255,255,255,.16); }
.pz-title { flex: 1; min-width: 0; }
.pz-title b { font-size: 13.5px; display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-title span { font-size: 10px; color: #7E96A2; display: block; margin-top: 3px; }
.pz-time {
  font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px;
  color: #5FE0BC; flex: 0 0 auto;
}
.pz-meta { display: flex; align-items: center; justify-content: space-between; padding: 2px 20px 8px; font-size: 10.5px; color: #7E96A2; }
.pz-meta b { color: #B7CBD4; font-weight: 600; }
.pz-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 18px; min-height: 0; position: relative; }
.board {
  position: relative; border-radius: 12px; overflow: hidden; background: #0a161b;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.07);
  touch-action: manipulation;
}
.tile {
  position: absolute; left: 0; top: 0; width: 33.3333%; height: 33.3333%;
  background-repeat: no-repeat; background-size: 300% 300%;
  transition: transform .26s cubic-bezier(.3,.9,.3,1), box-shadow .15s;
  will-change: transform; cursor: pointer;
}
.tile::after {
  content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.tile.sel { z-index: 3; box-shadow: 0 0 0 3px #35D6B0, 0 8px 22px rgba(0,0,0,.5); }
.tile.sel::after { box-shadow: inset 0 0 0 2px #35D6B0; }
.tile.ok::after { box-shadow: inset 0 0 0 1px rgba(53,214,176,.55); }
.tile.noanim { transition: none; }

.peek { position: absolute; inset: 0; background: #0a161b; border-radius: 12px; display: none; z-index: 6; }
.peek.show { display: block; animation: fadein .18s ease; }
.peek img { width: 100%; height: 100%; object-fit: contain; }
.peek span {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 10px; color: #cfe0e6; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 10px;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.pz-foot { padding: 10px 18px 26px; display: flex; gap: 10px; }
.pz-foot button {
  flex: 1; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06); color: #C7DAE2; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer;
}
.pz-foot button:active { background: rgba(255,255,255,.13); }

.startmask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 0 30px; z-index: 7;
  background: radial-gradient(90% 60% at 50% 45%, rgba(9,22,28,.86), rgba(9,22,28,.97));
}
.startmask .sm-k { font-size: 11px; letter-spacing: 1.5px; color: #6E8B98; }
.startmask h3 { font-size: 19px; margin-top: 10px; color: #EAF3F6; font-weight: 700; line-height: 1.4; }
.startmask .sm-img {
  height: 88px; max-width: 100%; border-radius: 9px; margin-top: 14px;
  object-fit: contain; opacity: .92; background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09);
}
.startmask p { font-size: 11.5px; color: #8FA5AF; margin-top: 12px; line-height: 1.7; }
.startmask .go {
  margin-top: 22px; height: 46px; padding: 0 40px; border-radius: 13px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #14BA92, #0B8164); color: #fff; font: inherit;
  font-size: 14.5px; font-weight: 700; box-shadow: 0 10px 24px -6px rgba(20,186,146,.5);
}
.startmask .go:active { transform: scale(.98); }
.startmask .peekline { font-size: 10.5px; color: #5E7783; margin-top: 14px; }

/* ---------- 结算 ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  background: #fff; color: var(--ink); border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 44px rgba(0,0,0,.5);
  animation: up .3s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet .handle { width: 38px; height: 4px; border-radius: 3px; background: #E2E9EB; margin: -8px auto 14px; }
.res-k { font-size: 11px; color: var(--ink3); letter-spacing: .8px; text-align: center; }
.res-t {
  font-size: 46px; font-weight: 750; text-align: center; letter-spacing: -2px;
  line-height: 1.1; margin-top: 4px; color: var(--teal);
}
.res-t small { font-size: 19px; font-weight: 650; letter-spacing: 0; }
.res-tag {
  display: inline-block; margin: 9px auto 0; background: #FFF5E4; color: #B8791A;
  font-size: 10.5px; padding: 4px 11px; border-radius: 20px; font-weight: 650;
}
.res-tag.plain { background: #EFF6F4; color: var(--teal-d); }
.res-center { text-align: center; }
.res-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.rrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.rrow span { color: var(--ink3); }
.rrow b { font-weight: 650; }
.res-plan { margin-top: 14px; background: #F5F9F9; border-radius: 12px; padding: 11px 13px; }
.res-plan .pl-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); }
.res-plan .pl-top b { color: var(--teal-d); }
.res-plan .bar { height: 6px; margin-top: 8px; }
.res-btns { display: flex; gap: 9px; margin-top: 16px; }
.res-btns button {
  flex: 1; height: 46px; border-radius: 13px; border: 0; font: inherit; font-size: 13.5px;
  font-weight: 650; cursor: pointer;
}
.res-btns .primary { background: linear-gradient(135deg, #14BA92, #0B8164); color: #fff; flex: 1.5; box-shadow: 0 8px 18px -5px rgba(11,129,100,.45); }
.res-btns .plain { background: #F2F7F7; color: var(--ink2); }

/* ---------- 底栏 ---------- */
.tabbar {
  flex: 0 0 auto; height: 62px; display: flex; background: rgba(255,255,255,.94);
  border-top: 1px solid #E9EFF0; padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px); z-index: 8;
}
.tabbar.hide { display: none; }
.tab {
  flex: 1; border: 0; background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer; font: inherit;
  color: #A9B8C0; padding: 0;
}
.tab.on { color: var(--teal-d); }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 9.5px; font-weight: 550; }

/* ---------- 浮层 ---------- */
.toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 14px);
  background: rgba(16,32,40,.93); color: #fff; font-size: 12.5px; padding: 10px 18px;
  border-radius: 22px; opacity: 0; pointer-events: none; transition: all .26s; z-index: 999;
  max-width: 78%; text-align: center; line-height: 1.5;
  box-shadow: 0 8px 22px rgba(8,26,34,.28); backdrop-filter: blur(6px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.detail-mask {
  position: absolute; inset: 0; background: rgba(10,24,30,.42); z-index: 11;
  display: flex; align-items: flex-end; animation: fadein .2s;
}
.detail {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 20px 22px;
  animation: up .28s cubic-bezier(.2,.9,.3,1); max-height: 74%; overflow-y: auto;
}
.detail h4 { font-size: 15px; text-align: center; }
.detail .dsub { font-size: 11px; color: var(--ink3); text-align: center; margin-top: 5px; }
.dlist { margin-top: 14px; }
.drow { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.drow:last-child { border-bottom: none; }
.drow .dn { width: 24px; color: var(--ink4); font-size: 11px; font-weight: 700; }
.drow .dt { flex: 1; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow .dv { font-weight: 700; color: var(--teal); }
.drow .dv.no { color: #C9D4D9; font-weight: 500; }
.detail .close { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #F2F7F7; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; margin-top: 14px; cursor: pointer; }

@media (max-width: 900px) {
  body { padding: 0; display: block; }
  .wrap { display: block; }
  .side { display: none; }
  .phoneWrap { min-height: 100vh; }
  .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
  .notch { display: none; }
  .sbar { height: 30px; flex-basis: 30px; }
  .pz-top { padding-top: 12px; }
}

/* ============================================================
   以下为 Web 应用新增：登录 / 注册 / 加载态 / 头像
   ============================================================ */
.pava, .row .ra, .pava2, .prof .ava { background-clip: padding-box; }
.loading { padding: 80px 0; text-align: center; color: var(--ink3); font-size: 12.5px; }
.loading::before {
  content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid #d9ece6; border-top-color: var(--teal); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.errbox { padding: 60px 20px; text-align: center; color: var(--ink2); font-size: 12.5px; line-height: 1.8; }
.errbox .btn { width: auto; padding: 0 28px; margin-top: 14px; }

.side .who {
  margin-top: 20px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.72);
  border: 1px solid #dfe8e9; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: var(--ink2);
}
.side .who i {
  width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 16px; flex: 0 0 30px;
}
.side .who b { display: block; color: var(--ink); font-size: 13px; }
.side .who span { font-size: 10.5px; color: var(--ink3); }

.auth { min-height: 100%; display: flex; flex-direction: column; padding: 8px 2px 24px; }
.auth-brand { text-align: center; padding: 26px 0 20px; }
.auth-brand .logo {
  width: 68px; height: 68px; margin: 0 auto; border-radius: 22px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #14BA92, #0B8164); box-shadow: 0 14px 28px -8px rgba(11,129,100,.5);
}
.auth-brand h2 { font-size: 22px; margin-top: 16px; letter-spacing: -.3px; }
.auth-brand p { font-size: 11.5px; color: var(--ink3); margin-top: 6px; letter-spacing: .4px; }
.auth-card { padding: 18px 16px 16px; }
.fld { display: block; margin-bottom: 13px; }
.fld > span { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 600; margin-bottom: 6px; }
.fld > small { display: block; font-size: 10px; color: var(--ink4); margin-top: 5px; }
.fld input {
  width: 100%; height: 44px; border: 1.5px solid #E3EBED; border-radius: 12px; padding: 0 13px; font: inherit;
  font-size: 14px; color: var(--ink); background: #FAFCFC; outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,163,127,.12); }
.fld input.bad { border-color: #E39A9A; }
.form-err { min-height: 18px; font-size: 11.5px; color: #C04C4C; margin: -2px 2px 2px; line-height: 1.5; }
.btn[disabled] { opacity: .6; cursor: default; }
.auth-alt { text-align: center; font-size: 12.5px; color: var(--ink3); margin-top: 18px; }
.auth-alt a { color: var(--teal-d); font-weight: 650; text-decoration: none; }

.ava-pick { margin-bottom: 14px; }
.ava-pick > span { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 600; margin-bottom: 8px; }
.ava-now {
  width: 76px; height: 76px; margin: 2px auto 14px; border-radius: 26px; font-size: 38px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(20,49,60,.22);
  transition: background .2s, transform .2s;
}
.ava-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ava-opt {
  aspect-ratio: 1; border-radius: 16px; border: 2px solid transparent; font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform .14s, border-color .14s, box-shadow .14s;
}
.ava-opt:hover { transform: translateY(-2px); }
.ava-opt.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,163,127,.18); transform: scale(1.04); }
.ava-opt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
