﻿:root {
  --pink: #ff8fb1;
  --pink-deep: #f06e96;
  --pink-soft: #ffe7ef;
  --bg: #fff6f9;
  --card: #ffffff;
  --ink: #4a3b42;
  --sub: #9e8c94;
  --faint: #cdbec5;
  --line: #f6e2ea;
  --gold: #e9a83c;
  --gold-soft: #fff1d6;
  --coral: #d6746c;
  --coral-soft: #fff0ed;
  --mint: #4aa98c;
  --mint-soft: #e1f2ec;
  --radius: 20px;
  --shadow: 0 6px 18px rgba(196, 150, 168, 0.13);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; overflow-x: hidden; }

.app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 20px calc(96px + env(safe-area-inset-bottom));
  position: relative;
}

button { font-family: inherit; border: none; background: none; padding: 0; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ---------- 顶部 ---------- */
.top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.hello { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.hello-sub { font-size: 11px; color: var(--sub); margin-top: 3px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600;
  flex: none; overflow: hidden; box-shadow: 0 4px 12px rgba(255, 143, 177, .3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 64px; height: 64px; position: relative; font-size: 26px; }
.avatar .cam {
  position: absolute; right: -2px; bottom: -2px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  box-shadow: 0 2px 6px rgba(196, 150, 168, .2);
}

/* ---------- 余额卡 ---------- */
.balance {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
}
.balance .label { font-size: 12px; color: var(--sub); }
.balance .num { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.balance .num small { font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 4px; letter-spacing: 0; }
.balance .meta { font-size: 10.5px; color: var(--sub); margin-top: 8px; }

.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.15;
}
.ring .ring-txt b { font-size: 12px; }
.ring .ring-txt span { font-size: 9px; color: var(--sub); }

/* ---------- 提醒条 ---------- */
.notice {
  margin-top: 12px; border-radius: 16px; padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  background: var(--pink-soft); font-size: 12px; animation: slidein .35s ease;
}
.notice.bad { background: var(--coral-soft); }
.notice .dot {
  width: 24px; height: 24px; border-radius: 50%; background: #ffd6e2; color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none;
}
.notice.bad .dot { background: #ffdeda; color: var(--coral); }
.notice .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice .val { font-weight: 700; color: var(--pink-deep); }
.notice.bad .val { color: var(--coral); }

@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 按钮 ---------- */
.cta {
  width: 100%; margin-top: 14px; height: 56px; border-radius: 28px; background: var(--pink);
  color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 8px 20px rgba(255, 143, 177, .38);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease;
}
.cta:active { transform: scale(.97); }

.btn {
  height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; font-weight: 700;
  background: var(--pink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.btn.small { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 16px; }
.btn.ghost { background: #fff; border: 1px solid var(--pink); color: var(--pink-deep); }
.btn.plain { background: #f7f0f3; color: var(--sub); }
.btn:disabled { opacity: .45; }
.btn:active { transform: scale(.97); }

/* ---------- 区块 ---------- */
.section { margin-top: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { font-size: 14px; margin: 0; font-weight: 800; }
.section-head .more { font-size: 10.5px; color: var(--sub); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* ---------- 列表行 ---------- */
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: relative; }
.row + .row::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line);
}
.row .ic {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex: none;
}
.row .body { flex: 1; min-width: 0; }
.row .t { font-size: 15px; font-weight: 700; }
.row .s { font-size: 10.5px; color: var(--sub); margin-top: 3px; }
.row .r { font-size: 16px; font-weight: 800; color: var(--gold); flex: none; }
.row .r.minus { color: var(--coral); }
.row .r.tag { font-size: 9px; font-weight: 700; color: var(--mint); background: var(--mint-soft); padding: 4px 8px; border-radius: 9px; }

/* ---------- 挑战卡 ---------- */
.chal { padding: 14px 16px; }
.chal .pill {
  display: inline-block; font-size: 9px; font-weight: 800; padding: 4px 9px; border-radius: 10px;
  background: var(--mint-soft); color: var(--mint); margin-bottom: 8px;
}
.chal .pill.wait { background: var(--gold-soft); color: var(--gold); }
.chal .pill.done { background: #f2eef0; color: var(--sub); }
.chal .title { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.chal .title em { font-style: normal; color: var(--gold); font-size: 13px; }
.chal .sub { font-size: 9.5px; color: var(--sub); margin-top: 4px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pink); border-radius: 4px; transition: width .3s; }
.bar-txt { font-size: 9px; color: var(--sub); margin-top: 5px; }

/* 挑战押注 */
.bet {
  display: flex; gap: 18px; align-items: baseline; margin-top: 10px;
  font-size: 11px; color: var(--sub);
}
.bet b { font-size: 15px; color: var(--ink); font-weight: 800; }
.bet .win b { color: var(--gold); }

.rule-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: #fff8fb; border: 1px dashed #f0c3d4;
  font-size: 11.5px; line-height: 1.8; color: #8a7480; text-align: left;
  white-space: pre-line;
}

.hero.box { cursor: pointer; }
.hero.box:active { transform: scale(.99); }
.prize-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prize {
  font-size: 12px; background: #fff5f9; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 10px; color: var(--ink);
}
.prize.empty { background: #f7f3f5; color: var(--sub); }
.prize.trap { background: #fff0ed; border-color: #ffd6d0; color: var(--coral); }
.prize i { font-style: normal; font-size: 9px; color: var(--faint); margin-left: 5px; }

/* 盲盒里的两个固定选项 */
.box-warn {
  margin: 16px 0 10px; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--coral); letter-spacing: .5px;
}
.box-special { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.box-item {
  border-radius: 14px; padding: 14px 10px; text-align: center;
  border: 1px dashed; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.box-item b { font-size: 15px; font-weight: 800; line-height: 1.3; }
.box-item span { font-size: 11px; margin-top: 4px; opacity: .85; }
.box-item.empty { background: #f8f4f6; border-color: #e6dbe1; color: var(--sub); }
.box-item.trap { background: #fff1ee; border-color: #ffd3cc; color: var(--coral); }

/* 我的礼物（券） */
.coupons { display: flex; flex-direction: column; gap: 10px; }
.coupon {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.coupon .c-emoji {
  width: 42px; height: 42px; border-radius: 12px; background: #fff5f9;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none;
}
.coupon .c-body { flex: 1; min-width: 0; }
.coupon .c-name { font-size: 14px; font-weight: 700; }
.coupon .c-meta { font-size: 9.5px; color: var(--sub); margin-top: 3px; }
.coupon .c-state { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 9px; flex: none; }
.coupon.unused { border-color: #ffc9db; }
.coupon.unused .c-state { background: var(--pink); color: #fff; }
.coupon.used { opacity: .6; }
.coupon.used .c-state { background: #f2eef0; color: var(--sub); }
.coupon.back { opacity: .6; }
.coupon.back .c-state { background: var(--mint-soft); color: var(--mint); }

/* ---------- 底部导航 ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px;
  background: #fff; border-top: 1px solid var(--line); display: flex; align-items: flex-end;
  justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 30;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: #b09ea6;
}
.nav-item .ni { font-size: 19px; line-height: 1; }
.nav-item.on { color: var(--pink); font-weight: 700; }
.nav-gap { flex: 1; }

.fab {
  position: fixed; z-index: 31; bottom: calc(46px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: #fff;
  font-size: 30px; font-weight: 300; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 143, 177, .45);
}
.fab:active { transform: translateX(-50%) scale(.94); }

/* 首页左下角的小号大人入口 */
.adult-btn {
  position: fixed; z-index: 32;
  left: max(18px, calc(50% - 215px + 18px));
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(196, 150, 168, .18);
  color: var(--faint); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.adult-btn:active { background: var(--pink-soft); }

/* ---------- 底部弹层 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(70, 55, 62, .45); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 430px; background: #fff; border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; min-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  animation: up .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 16px; }
.sheet h3 { margin: 0; font-size: 21px; }
.sheet .hint { font-size: 11px; color: var(--sub); margin-top: 6px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 14px; }
.tile {
  border: 1px solid var(--line); background: #fffcfe; border-radius: 18px; padding: 12px;
  text-align: left; display: flex; flex-direction: column; gap: 2px; position: relative;
  transition: transform .12s ease, background .12s;
}
.tile:active { transform: scale(.97); background: #fff5f9; }
.tile .tic {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 8px;
}
.tile .tt { font-size: 13px; font-weight: 700; }
.tile .tp { font-size: 11px; font-weight: 800; color: var(--pink-deep); margin-top: 2px; }
.tile .tp.muted { color: var(--sub); font-weight: 500; font-size: 9px; }
.tile .wait-tag {
  position: absolute; right: 8px; top: 8px; font-size: 8px; color: var(--sub);
  background: #f5f0f2; border-radius: 7px; padding: 2px 6px;
}
.tile.plus { border-style: dashed; border-color: #f2cddc; align-items: flex-start; }

/* ---------- 心愿 ---------- */
.hero { border-radius: 24px; overflow: hidden; background: var(--pink-soft); }
.hero .art { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.hero .info { background: #fff; padding: 14px 18px 16px; }
.hero .name { font-size: 17px; font-weight: 800; }
.hero .price { font-size: 12px; color: var(--sub); margin-top: 3px; }
.hero .bar { margin-top: 12px; }
.hero .left { font-size: 10px; color: var(--sub); text-align: right; margin-top: 5px; }

.gift { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.gift .art { height: 78px; border-radius: 14px; background: #fff9fb; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.gift .name { font-size: 14px; font-weight: 700; margin-top: 10px; }
.gift .price { font-size: 10.5px; color: var(--sub); margin-top: 2px; }
.gift .act { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }

.dashbox {
  border: 2px dashed #f2cddc; border-radius: 18px; background: #fffbfd; padding: 18px;
  text-align: center; width: 100%; margin-top: 14px;
}
.dashbox b { color: var(--pink-deep); font-size: 14px; }
.dashbox span { display: block; font-size: 9.5px; color: var(--sub); margin-top: 5px; }

/* ---------- 徽章 ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; margin-top: 24px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.badge .bc {
  width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; position: relative; font-size: 26px; overflow: hidden;
}
.badge .bc .qm {
  font-size: 26px; line-height: 1; font-weight: 700; color: #d9cbd2;
  display: flex; align-items: center; justify-content: center;
}
.badge .bc img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
img.badge-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.badge .bc em { font-style: normal; }
.badge .bn { font-size: 8.5px; color: var(--sub); text-align: center; line-height: 1.2; }
.badge.lock .bc { background: #f6f1f3; color: #d8cbd2; }
.badge.lock .bn { color: var(--faint); }
.badge.new .bc { animation: pop .5s ease; box-shadow: 0 0 0 3px rgba(255, 143, 177, .35); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- 家长端 ---------- */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.prow + .prow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--line); }
.prow .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.prow .body { flex: 1; min-width: 0; }
.prow .t { font-size: 13px; font-weight: 700; }
.prow .s { font-size: 9px; color: var(--sub); margin-top: 3px; }
.prow .pts { font-size: 11px; font-weight: 800; color: var(--gold); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick .btn { width: 100%; }

.statrow { display: flex; padding: 14px 8px; }
.statrow > div { flex: 1; padding-left: 12px; }
.statrow b { display: block; font-size: 20px; font-weight: 800; }
.statrow span { font-size: 9px; color: var(--sub); }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  flex: 1; height: 38px; border-radius: 19px; font-size: 12px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); color: var(--sub);
}
.tabs button.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.tabs.five { gap: 6px; }
.tabs.five button { font-size: 11px; padding: 0 4px; }

select {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 10px; background: #fffafc; color: var(--ink); outline: none; font-size: 15px;
}
select:focus { border-color: var(--pink); }

/* 记录页的筛选 */
.filters {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px;
  padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; height: 32px; padding: 0 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--sub);
}
.filters button.on {
  background: var(--pink); color: #fff; border-color: var(--pink); font-weight: 700;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(70, 55, 62, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .18s;
}
.modal-card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 24px; padding: 22px 20px 18px;
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: pop2 .2s ease;
}
@keyframes pop2 { from { transform: scale(.94); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-card h3 { margin: 0 0 4px; font-size: 17px; }
.modal-card p.sub { margin: 0 0 14px; font-size: 11px; color: var(--sub); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; color: var(--sub); margin-bottom: 5px; }
.field input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 12px; background: #fffafc; color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--pink); }
.field textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  padding: 10px 12px; background: #fffafc; color: var(--ink); outline: none;
  font-size: 14px; line-height: 1.6; resize: vertical; min-height: 74px;
}
.field textarea:focus { border-color: var(--pink); }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }

/* ---------- 输入键盘（PIN）---------- */
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pinpad button {
  height: 54px; border-radius: 16px; background: #fff9fb; font-size: 20px; font-weight: 600;
  border: 1px solid var(--line);
}
.pinpad button:active { background: var(--pink-soft); }
.pinpad button:disabled { opacity: .4; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 18px 0 4px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: block; }
.pin-dots i.on { background: var(--pink); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: 110px;
  background: rgba(74, 59, 66, .94); color: #fff; font-size: 12px; padding: 10px 16px;
  border-radius: 14px; opacity: 0; pointer-events: none; transition: .22s; z-index: 80; max-width: 80%;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--faint); font-size: 11px; padding: 26px 0; }
.footnote { text-align: center; font-size: 9.5px; color: var(--faint); margin-top: 18px; line-height: 1.7; }

/* ---------- 确认窗 / 拍照 ---------- */
.ask-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ask-ic {
  width: 52px; height: 52px; border-radius: 50%; background: var(--pink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none;
}
.ask-name { font-size: 17px; font-weight: 800; }
.ask-pts { font-size: 12px; color: var(--pink-deep); font-weight: 700; margin-top: 3px; }

/* 分组标题 */
.group-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: .5px;
  padding: 10px 12px; border-radius: 16px; margin: 2px 0 12px;
}
.group-title.hot {
  color: var(--pink-deep);
  background: linear-gradient(180deg, #fff4f8, #ffe6ef);
  border: 1.5px dashed #ffb9cf;
  box-shadow: 0 3px 10px rgba(255, 143, 177, .13);
}
.group-title.calm {
  color: #a3899a;
  background: #fbf7f9;
  border: 1.5px dashed #ecd9e2;
  font-size: 13.5px;
}

/* 日期选择 */
.date-btn {
  width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fffafc; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 14px; color: var(--ink); margin: 2px 0 12px;
}
.date-btn b { font-weight: 700; }
.date-btn .chev { color: var(--faint); font-size: 11px; }
.date-btn:active { background: #fff2f7; }

.cal {
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 8px;
  margin: -4px 0 12px; background: #fff;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.cal-head b { font-size: 13px; }
.cal-head button {
  width: 30px; height: 30px; border-radius: 50%; background: #fff5f9;
  color: var(--pink-deep); font-size: 15px; font-weight: 700;
}
.cal-head button:active { background: var(--pink-soft); }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 9px; color: var(--faint); text-align: center; margin-bottom: 4px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day { height: 34px; border-radius: 10px; font-size: 12.5px; color: var(--ink); }
.cal-day.on { background: var(--pink); color: #fff; font-weight: 800; }
.cal-day:disabled { color: #e6d9df; }
.cal-pad { height: 34px; }

.cele-card.mini { max-width: 250px; padding: 22px 18px 16px; }
.cele-pts { font-size: 42px; font-weight: 800; color: var(--gold); line-height: 1; margin-top: 8px; }

.chiprow { display: flex; gap: 8px; margin: 4px 0 12px; }
.chip {
  height: 34px; padding: 0 16px; border-radius: 17px; background: #fff;
  border: 1px solid var(--line); font-size: 12px; color: var(--sub);
}
.chip.on { background: var(--pink); color: #fff; border-color: var(--pink); font-weight: 700; }

.photo-pick {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 14px; border: 1.5px dashed #f0c3d4; background: #fffafc;
  font-size: 13px; color: var(--pink-deep); font-weight: 700; cursor: pointer;
}
.photo-pick:active { background: #fff2f7; }
.ask-photo {
  display: block; width: 100%; max-height: 180px; object-fit: cover;
  border-radius: 14px; margin-top: 10px; border: 1px solid var(--line);
}

.row .ic .thumb, .prow .ic .thumb {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.prow a.ic { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.cam-tag {
  position: absolute; right: 8px; bottom: 8px; font-size: 11px; opacity: .7;
}
.tile { overflow: hidden; }

.chk {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  margin: 11px 2px; color: var(--ink);
}
.chk input { width: 18px; height: 18px; accent-color: var(--pink); }
.off-tag {
  font-size: 9px; color: var(--faint); background: #f5f0f2;
  padding: 2px 7px; border-radius: 7px; font-weight: 400;
}
button.badge { background: none; border: none; padding: 0; }

/* ---------- 兑换成功庆祝 ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 90; background: rgba(74, 59, 66, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .2s;
}
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute; top: -24px; border-radius: 2px; opacity: .95;
  animation-name: fall; animation-timing-function: linear;
  animation-iteration-count: 1; animation-fill-mode: forwards;
}
@keyframes fall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(108vh) rotate(560deg); opacity: .85; }
}
.cele-card {
  position: relative; background: #fff; border-radius: 28px; padding: 28px 24px 22px;
  width: 100%; max-width: 320px; text-align: center;
  animation: pop2 .38s cubic-bezier(.2, 1.35, .4, 1);
}
.cele-emoji { font-size: 64px; line-height: 1; animation: bob .9s ease-in-out infinite alternate; }
@keyframes bob {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-9px) scale(1.06); }
}
.cele-title { font-size: 22px; font-weight: 800; margin-top: 14px; color: var(--pink-deep); }
.cele-sub { font-size: 14px; color: var(--ink); margin-top: 6px; font-weight: 700; }
.cele-note { font-size: 10px; color: var(--sub); margin-top: 6px; }

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.hidden-input {
  position: fixed; left: -9999px; top: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.prow .ic img.thumb, .row .ic img.thumb { cursor: pointer; }

.sheet { position: relative; }
.sheet-x {
  position: absolute; right: 14px; top: 12px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--sub); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.sheet-x:active { background: var(--pink-soft); }
