/* ============================================================
   时愿星屿 · 打卡积分工作台
   高级淡粉 + 乳白渐变 + 蝴蝶星星 + 闪光细节
   ============================================================ */

:root {
  --pink-50:  #FFF8F9;
  --pink-100: #FDEEF3;
  --pink-200: #F9DCE6;
  --pink-300: #F3C3D5;
  --pink-400: #E9A3BD;
  --pink-500: #DC87A6;
  --pink-600: #C4608A;
  --pink-700: #A64A72;

  --cream:    #FFFCFA;
  --milk:     #FBF4F1;
  --milk-2:   #F7EBE8;

  --champagne:#E8D5B7;
  --gold:     #D9BC8C;
  --gold-deep:#B9955E;

  --ink:      #4A3F47;
  --ink-2:    #7A6B73;
  --ink-3:    #A6959E;
  --ink-4:    #C9B8C0;

  --line:     rgba(196, 96, 138, .12);
  --line-2:   rgba(196, 96, 138, .06);

  --shadow-s: 0 2px 10px rgba(196, 96, 138, .07);
  --shadow-m: 0 8px 28px rgba(196, 96, 138, .11);
  --shadow-l: 0 18px 48px rgba(196, 96, 138, .16);

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-num: "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--milk);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全局背景渐变 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 60% at 50% 0%, #FFF2F6 0%, rgba(255,242,246,0) 60%),
    radial-gradient(90% 50% at 100% 18%, #FDEDE6 0%, rgba(253,237,230,0) 55%),
    radial-gradient(80% 45% at 0% 30%, #F7F0FB 0%, rgba(247,240,251,0) 55%),
    linear-gradient(175deg, #FFFCFB 0%, #FBF4F1 45%, #F9EFED 100%);
  background-attachment: fixed;
}

/* ---------------- 装饰层 ---------------- */

.deco-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bfly {
  position: absolute;
  fill: rgba(233, 163, 189, .34);
  width: 46px;
  height: 38px;
}

.bfly-a {
  top: 9%;
  right: 8%;
  animation: drift1 17s ease-in-out infinite;
  filter: blur(.2px);
}

.bfly-b {
  top: 52%;
  left: 5%;
  width: 32px;
  height: 27px;
  fill: rgba(217, 188, 140, .30);
  animation: drift2 21s ease-in-out infinite;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) rotate(-8deg) scale(1); }
  25%  { transform: translate(-18px, 22px) rotate(6deg) scale(1.06); }
  50%  { transform: translate(8px, 44px) rotate(-4deg) scale(.96); }
  75%  { transform: translate(-12px, 18px) rotate(8deg) scale(1.03); }
  100% { transform: translate(0, 0) rotate(-8deg) scale(1); }
}

@keyframes drift2 {
  0%   { transform: translate(0, 0) rotate(10deg); }
  33%  { transform: translate(24px, -30px) rotate(-6deg); }
  66%  { transform: translate(10px, -12px) rotate(14deg); }
  100% { transform: translate(0, 0) rotate(10deg); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .5;
}

.blob-1 {
  width: 220px; height: 220px;
  top: -60px; left: -70px;
  background: radial-gradient(circle, rgba(249, 220, 230, .9), rgba(249, 220, 230, 0));
}

.blob-2 {
  width: 260px; height: 260px;
  bottom: -80px; right: -90px;
  background: radial-gradient(circle, rgba(255, 236, 224, .85), rgba(255, 236, 224, 0));
}

/* 四角星 */
.st {
  fill: var(--pink-300);
}
.st-a { position: absolute; top: 18px; right: 22px; width: 14px; height: 14px; opacity: .55; animation: twinkle 3.4s ease-in-out infinite; }
.st-b { position: absolute; top: 62px; right: 46px; width: 8px; height: 8px; opacity: .4; fill: var(--gold); animation: twinkle 4.6s ease-in-out infinite .8s; }
.st-modal { width: 16px; height: 16px; opacity: .5; animation: twinkle 3s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { opacity: .22; transform: scale(.85) rotate(0deg); }
  50%      { opacity: .75; transform: scale(1.15) rotate(18deg); }
}

/* ---------------- 视图容器 ---------------- */

.view {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.view.hidden { display: none; }

/* ---------------- 启动加载 ---------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(175deg, #FFFCFB, #FBF4F1 60%, #F9EFED);
  transition: opacity .45s ease, visibility .45s;
}

.boot.done { opacity: 0; visibility: hidden; }

.boot-mark {
  font-size: 30px;
  color: var(--pink-300);
  animation: twinkle 1.8s ease-in-out infinite;
}

.boot-text {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .08em;
}

/* ============================================================
   登录 / 注册
   ============================================================ */

.auth-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 22px calc(28px + var(--safe-b));
  gap: 18px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 38px 26px 28px;
  border-radius: var(--r-xl);
  animation: cardIn .6s cubic-bezier(.22, .9, .3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 246, 248, .78));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 20px 50px rgba(196, 96, 138, .13),
    0 2px 8px rgba(196, 96, 138, .05);
  border: 1px solid rgba(255, 255, 255, .82);
}

.auth-brand {
  text-align: center;
  margin-bottom: 26px;
}

.brand-line {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--pink-500);
  margin-bottom: 10px;
  opacity: .9;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}

.auth-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .03em;
}

/* 分段切换 */
.seg {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(249, 220, 230, .45);
  margin-bottom: 22px;
}

.seg-btn {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .28s cubic-bezier(.3, .9, .3, 1);
}

.seg-btn.is-on {
  background: #fff;
  color: var(--pink-600);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(196, 96, 138, .12);
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form.hidden { display: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .05em;
  padding-left: 2px;
}

.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-s);
  border: 1px solid rgba(196, 96, 138, .16);
  background: rgba(255, 255, 255, .78);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .22s, box-shadow .22s, background .22s;
}

.field input::placeholder { color: var(--ink-4); }

.field input:focus {
  border-color: var(--pink-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 163, 189, .15);
}

/* 主按钮 */
.btn-main {
  position: relative;
  width: 100%;
  padding: 14px 20px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, #F3B8CE, #E89AB8 45%, #DE8AAC);
  color: #fff;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(220, 135, 166, .34), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transition: transform .18s, box-shadow .25s;
}

.btn-main span { position: relative; z-index: 2; }

.btn-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .58), transparent);
  transform: skewX(-18deg);
  animation: sweep 3.4s ease-in-out infinite;
}

@keyframes sweep {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.btn-main:active { transform: scale(.975); box-shadow: 0 6px 16px rgba(220, 135, 166, .3); }
.btn-main:disabled { opacity: .55; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(196, 96, 138, .3);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .5);
  color: var(--pink-500);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.btn-ghost:active { background: rgba(249, 220, 230, .6); border-color: var(--pink-300); }

.auth-tip {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  min-height: 18px;
}

.auth-tip.err { color: #D2708F; }
.auth-tip.ok { color: #6E9E80; }

/* ============================================================
   底部专属签名
   ============================================================ */

.footer-sign {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #D9C3CE;
  padding: 18px 0 24px;
  user-select: none;
  line-height: 1.6;
}

.fs-star { margin: 0 4px; opacity: .8; }

.footer-sign .icp {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .06em;
  color: #CBB4BF;
  text-decoration: none;
}

.footer-sign-app {
  padding: 8px 0 calc(14px + var(--safe-b));
  font-size: 9px;
}

/* ============================================================
   主应用框架
   ============================================================ */

.app-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: linear-gradient(180deg, rgba(255, 252, 251, .96) 55%, rgba(255, 252, 251, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-hello {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

.top-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  margin-top: 1px;
}

.streak-chip {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #FFF4F7);
  border: 1px solid rgba(233, 163, 189, .28);
  box-shadow: 0 4px 12px rgba(233, 163, 189, .16);
}

.sc-icon { font-size: 12px; }
.sc-num { font-family: var(--font-num); font-size: 16px; font-weight: 700; color: var(--pink-600); }
.sc-unit { font-size: 10px; color: var(--ink-3); }

.screen {
  flex: 1;
  padding: 2px 18px 18px;
}

/* 底部导航 */
.tab-bar {
  position: sticky;
  bottom: 0;
  z-index: 45;
  display: flex;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(255, 252, 251, .93);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(196, 96, 138, .08);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 14px;
  transition: background .2s;
}

.tab-ic {
  font-size: 18px;
  filter: grayscale(.42) opacity(.62);
  transition: filter .25s, transform .25s;
  line-height: 1.2;
}

.tab-tx {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  transition: color .25s;
}

.tab.is-on .tab-ic { filter: none; transform: translateY(-1px) scale(1.08); }
.tab.is-on .tab-tx { color: var(--pink-600); font-weight: 600; }

/* ============================================================
   通用卡片
   ============================================================ */

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .96), rgba(255, 250, 251, .88));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 16px 16px;
  margin-bottom: 13px;
  position: relative;
  overflow: hidden;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .03em;
  margin-bottom: 12px;
}

.card-title .ct-ic { font-size: 15px; }
.card-title .ct-right { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

.sec-title {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .14em;
  text-indent: .14em;
  margin: 20px 0 10px;
}

.sec-title:first-child { margin-top: 4px; }

.muted { color: var(--ink-3); }
.tiny { font-size: 11.5px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ============================================================
   打卡页 —— Hero
   ============================================================ */

.hero {
  position: relative;
  border-radius: var(--r-l);
  padding: 20px 20px 18px;
  margin-bottom: 14px;
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(255, 236, 242, .95) 0%, rgba(255, 246, 240, .6) 40%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(150deg, #FFFDFC 0%, #FFF4F7 52%, #FDEDF1 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 14px 34px rgba(196, 96, 138, .1), 0 1px 0 #fff inset;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 130px; height: 130px;
  right: -40px; top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 220, 230, .8), rgba(249, 220, 230, 0) 70%);
  pointer-events: none;
}

.hero-date {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.hero-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-score {
  font-family: var(--font-num);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #E9A3BD, #C4608A 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.hero-score.pop { transform: scale(1.08); }

.hero-score-unit {
  font-size: 13px;
  color: var(--pink-500);
  letter-spacing: .04em;
}

.hero-score-hint {
  font-size: 11px;
  color: var(--ink-4);
  margin-left: 2px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.hero-meta b {
  font-family: var(--font-num);
  font-size: 13.5px;
  color: var(--pink-600);
  font-weight: 700;
  margin: 0 2px;
}

/* 进度条 */
.progress-wrap { margin-top: 14px; }

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(249, 220, 230, .7);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F7CBD9, #E9A3BD 60%, #DC87A6);
  width: 0;
  transition: width .8s cubic-bezier(.22, .9, .3, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: flow 2.4s linear infinite;
}

@keyframes flow {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 7px;
  letter-spacing: .02em;
}

.progress-text b { color: var(--pink-600); font-family: var(--font-num); font-size: 12.5px; }

/* ============================================================
   打卡项
   ============================================================ */

.ci {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, .97), rgba(255, 251, 252, .9));
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 15px 15px 14px;
  margin-bottom: 11px;
  transition: box-shadow .3s, border-color .3s;
}

.ci.is-filled {
  border-color: rgba(233, 163, 189, .4);
  box-shadow: 0 6px 20px rgba(196, 96, 138, .1);
}

.ci-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.ci-ic {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
  background: linear-gradient(145deg, #FFF1F5, #FCE4EC);
  flex: none;
}

.ci-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.ci-points {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-500);
  min-width: 42px;
  text-align: right;
  transition: color .25s;
}

.ci-points.zero { color: var(--ink-4); }

.ci-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ci-input {
  flex: 1;
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid rgba(196, 96, 138, .14);
  background: rgba(255, 255, 255, .85);
  font-family: var(--font-num);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-width: 0;
}

.ci-input::placeholder { color: var(--ink-4); font-family: var(--font); font-size: 14px; }

.ci-input:focus {
  border-color: var(--pink-300);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(233, 163, 189, .14);
}

.ci-unit {
  font-size: 12.5px;
  color: var(--ink-3);
  flex: none;
}

/* 店铺选择 */
.shop-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.shop-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 96, 138, .18);
  background: rgba(255, 255, 255, .72);
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .22s cubic-bezier(.3, .9, .3, 1);
}

.shop-chip.is-on {
  background: linear-gradient(105deg, #F7CBD9, #E9A3BD);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 5px 14px rgba(233, 163, 189, .38);
}

/* 上传 */
.up-row {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.up-box {
  flex: 1;
  position: relative;
  height: 74px;
  border-radius: 11px;
  border: 1px dashed rgba(196, 96, 138, .28);
  background: rgba(255, 250, 251, .8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.up-box:active { background: rgba(249, 220, 230, .45); }

.up-box.has-img { border-style: solid; border-color: transparent; }

.up-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-ic { font-size: 15px; opacity: .55; }
.up-tx { font-size: 10.5px; color: var(--ink-3); }

.up-box.has-img .up-ic,
.up-box.has-img .up-tx { display: none; }

.up-box.has-img::after {
  content: '已上传';
  position: absolute;
  right: 4px; bottom: 4px;
  font-size: 9px;
  color: #fff;
  background: rgba(196, 96, 138, .72);
  padding: 1px 5px;
  border-radius: 5px;
}

.up-box input[type=file] { display: none; }

/* 休息开关 */
.rest-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, .72);
  border: 1px dashed rgba(196, 96, 138, .2);
  margin-bottom: 13px;
  cursor: pointer;
  transition: all .25s;
}

.rest-toggle.is-on {
  background: linear-gradient(150deg, #FFF9FA, #FDF0F4);
  border-style: solid;
  border-color: var(--pink-300);
}

.rt-check {
  width: 19px; height: 19px;
  border-radius: 6px;
  border: 1.5px solid rgba(196, 96, 138, .3);
  display: grid;
  place-items: center;
  flex: none;
  transition: all .22s;
  font-size: 11px;
  color: transparent;
}

.rest-toggle.is-on .rt-check {
  background: linear-gradient(135deg, #F3B8CE, #DE8AAC);
  border-color: transparent;
  color: #fff;
}

.rt-text { font-size: 13.5px; color: var(--ink-2); }
.rest-toggle.is-on .rt-text { color: var(--pink-600); font-weight: 600; }

.rt-hint { margin-left: auto; font-size: 11px; color: var(--ink-4); }

/* 已打卡状态 */
.done-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, #FFF6F9, #FDECF1);
  border: 1px solid rgba(233, 163, 189, .3);
  margin-bottom: 13px;
}

.db-ic { font-size: 17px; }
.db-tx { font-size: 13.5px; color: var(--pink-700); font-weight: 600; }
.db-tx small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   弹窗
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 63, 71, .32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .28s ease both;
}

.modal.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 372px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px 22px 22px;
  border-radius: var(--r-xl);
  animation: modalIn .42s cubic-bezier(.22, .9, .3, 1) both;
  -webkit-overflow-scrolling: touch;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.modal-lock { padding: 16px; }

.modal-deco {
  position: absolute;
  top: 20px; right: 24px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
}

.modal-sub {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.7;
}

.modal-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
}

/* 店铺登记列表 */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-item {
  padding: 13px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(196, 96, 138, .13);
  position: relative;
}

.shop-item-head {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}

.shop-idx {
  font-size: 11px;
  color: var(--pink-500);
  background: rgba(249, 220, 230, .7);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}

.shop-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.shop-fields { display: flex; flex-direction: column; gap: 8px; }

.shop-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(196, 96, 138, .14);
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.shop-input:focus {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(233, 163, 189, .13);
}

.shop-up {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shop-up-preview {
  width: 46px; height: 46px;
  border-radius: 9px;
  border: 1px dashed rgba(196, 96, 138, .28);
  background: rgba(255, 250, 251, .9);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--ink-4);
  overflow: hidden;
  flex: none;
  cursor: pointer;
}

.shop-up-preview img { width: 100%; height: 100%; object-fit: cover; }

.shop-up-tx { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* 打卡成功 */
.celebrate {
  text-align: center;
  padding: 34px 24px 26px;
  overflow: visible;
}

.cel-title {
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--pink-500);
  margin-bottom: 14px;
}

.cel-score {
  font-family: var(--font-num);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #E9A3BD, #C4608A 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: scorePop .7s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes scorePop {
  0%   { opacity: 0; transform: scale(.5); }
  60%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.cel-unit {
  font-size: 13px;
  color: var(--pink-500);
  margin: 6px 0 16px;
  letter-spacing: .1em;
}

.cel-rank {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(249, 220, 230, .55);
  font-size: 12.5px;
  color: var(--pink-700);
  margin-bottom: 14px;
}

.cel-rank:empty { display: none; }

.cel-encourage {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.8;
  padding: 12px 8px;
  margin-bottom: 6px;
  border-top: 1px dashed rgba(196, 96, 138, .16);
  border-bottom: 1px dashed rgba(196, 96, 138, .16);
}

.cel-encourage.hidden { display: none; }

/* 飞散的星星 */
.fly-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.fly-stars i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink-300);
  opacity: 0;
  animation: fly 1.1s ease-out forwards;
}

@keyframes fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(12px);
  z-index: 500;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(74, 63, 71, .88);
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
  backdrop-filter: blur(8px);
  max-width: 84vw;
  text-align: center;
  line-height: 1.5;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(196, 96, 138, .92); }
.toast.ok { background: rgba(110, 158, 128, .92); }

/* ============================================================
   我的 —— 日历
   ============================================================ */

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.cal-nav {
  display: flex;
  gap: 6px;
}

.cal-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(196, 96, 138, .16);
  background: rgba(255, 255, 255, .8);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.cal-btn:active { background: rgba(249, 220, 230, .6); }
.cal-btn:disabled { opacity: .35; cursor: not-allowed; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-wd {
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: .04em;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .5);
  border: 1px solid transparent;
  position: relative;
  cursor: default;
  transition: all .2s;
}

.cal-day.empty { background: transparent; border: 0; }
.cal-day.is-today { border-color: var(--pink-300); font-weight: 700; color: var(--pink-600); }
.cal-day.s-active { background: linear-gradient(150deg, #FFF3F7, #FCE7EE); color: var(--pink-700); font-weight: 600; }
.cal-day.s-rest { background: rgba(247, 235, 232, .8); color: var(--ink-3); }
.cal-day.s-auto-rest { background: linear-gradient(150deg, #FFF8F0, #FDF0E4); color: #B98E5E; }
.cal-day.s-missed { background: rgba(250, 246, 246, .6); color: var(--ink-4); }
.cal-day.s-future { opacity: .38; }
.cal-day.has-detail { cursor: pointer; }
.cal-day.has-detail:active { transform: scale(.94); }

.cal-pt {
  font-family: var(--font-num);
  font-size: 8.5px;
  line-height: 1;
  color: var(--pink-500);
  margin-top: 1px;
}

.cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.cal-legend span { display: flex; align-items: center; gap: 4px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* 明细行 */
.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}

.detail-row:last-child { border-bottom: 0; }

.dr-date {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--ink-2);
  width: 42px;
  flex: none;
}

.dr-body { flex: 1; min-width: 0; }
.dr-main { font-size: 13px; color: var(--ink); }
.dr-sub { font-size: 11px; color: var(--ink-4); margin-top: 1px; }

.dr-pts {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-500);
  flex: none;
}

/* 统计格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.stat-cell {
  text-align: center;
  padding: 12px 4px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--line-2);
}

.stat-num {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1.1;
}

.stat-num small { font-size: 10.5px; font-weight: 400; color: var(--ink-3); margin-left: 1px; }
.stat-label { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: .02em; }

/* ============================================================
   排行榜
   ============================================================ */

.rank-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line-2);
  margin-bottom: 8px;
  transition: all .25s;
}

.rank-item.is-me {
  background: linear-gradient(120deg, #FFF4F8, #FDECF2);
  border-color: rgba(233, 163, 189, .42);
  box-shadow: 0 4px 14px rgba(196, 96, 138, .1);
}

.rank-no {
  width: 26px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  flex: none;
}

.rank-no.top1 { color: #D4A24C; font-size: 17px; }
.rank-no.top2 { color: #A8A8B3; font-size: 16px; }
.rank-no.top3 { color: #C08A63; font-size: 16px; }

.rank-name {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rank-name .me-tag {
  font-size: 9.5px;
  color: #fff;
  background: var(--pink-400);
  padding: 1px 6px;
  border-radius: 5px;
  flex: none;
  font-weight: 400;
}

.rank-score {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-600);
  flex: none;
}

.rank-gap {
  font-size: 10px;
  color: var(--ink-4);
  text-align: right;
  flex: none;
  width: 100%;
  padding-left: 8px;
}

/* 我的名次卡 */
.my-rank-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(255, 236, 242, .9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #FFFDFC, #FFF3F7);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(196, 96, 138, .1);
  margin-bottom: 13px;
}

.mrc-rank {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1;
}

.mrc-rank small { font-size: 12px; font-weight: 400; color: var(--ink-3); }

.mrc-info { flex: 1; }
.mrc-total { font-family: var(--font-num); font-size: 20px; font-weight: 700; color: var(--ink); }
.mrc-total small { font-size: 11px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.mrc-gap { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   更多页 / 规则
   ============================================================ */

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line-2);
  margin-bottom: 9px;
  cursor: pointer;
  transition: background .2s;
}

.menu-item:active { background: rgba(249, 220, 230, .5); }

.mi-ic { font-size: 15px; width: 20px; text-align: center; }
.mi-tx { flex: 1; font-size: 14px; color: var(--ink); }
.mi-arrow { color: var(--ink-4); font-size: 13px; }

.rules-body { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

.rules-sec { margin-bottom: 22px; }

.rules-sec h3 {
  font-size: 14px;
  color: var(--pink-700);
  margin: 0 0 9px;
  font-weight: 600;
  letter-spacing: .03em;
}

.rules-sec ul {
  margin: 0;
  padding-left: 17px;
  list-style: none;
}

.rules-sec li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 2px;
}

.rules-sec li::before {
  content: '·';
  position: absolute;
  left: -13px;
  color: var(--pink-300);
  font-weight: 700;
}

.rules-sub h4 {
  font-size: 13px;
  color: var(--ink);
  margin: 13px 0 6px;
  font-weight: 600;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 10px 0;
}

.rules-table th {
  text-align: left;
  padding: 8px 10px;
  background: rgba(249, 220, 230, .45);
  color: var(--pink-700);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(196, 96, 138, .1);
}

.rules-table td {
  padding: 8px 10px;
  border: 1px solid rgba(196, 96, 138, .1);
  vertical-align: top;
  white-space: pre-line;
}

.rules-note {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 250, 240, .9);
  border: 1px solid rgba(217, 188, 140, .24);
  font-size: 12px;
  color: #8F7550;
  line-height: 1.75;
  margin-top: 10px;
}

/* ============================================================
   月度总结信笺
   ============================================================ */

.letter {
  position: relative;
  border-radius: var(--r-l);
  padding: 28px 22px 24px;
  margin-bottom: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 249, 250, .95), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #FFFDFC, #FFF8F6 55%, #FDF3EF);
  box-shadow: 0 16px 40px rgba(196, 96, 138, .11);
  overflow: hidden;
}

.letter.gold {
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.letter.gold::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, #F0DFC2, #D9BC8C 30%, #F5E9D5 55%, #C9A671 80%, #F0DFC2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.letter-to {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.letter-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  margin-bottom: 22px;
}

.sum-bigscore-label {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .2em;
  text-indent: .2em;
}

.sum-bigscore {
  font-family: var(--font-num);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #E9A3BD, #C4608A 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2px 0 8px;
}

.sum-rankline {
  display: inline-block;
  font-size: 12px;
  color: var(--pink-700);
  background: rgba(249, 220, 230, .5);
  padding: 4px 13px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.sum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}

.sum-cell {
  text-align: center;
  padding: 12px 4px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(196, 96, 138, .07);
}

.sum-cell b {
  display: block;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1.2;
}

.sum-cell span {
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.5;
  display: block;
  margin-top: 3px;
}

.sum-badge {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(255, 249, 238, .95), rgba(253, 244, 232, .8));
  border: 1px solid rgba(217, 188, 140, .3);
  font-size: 12.5px;
  color: #9A7B4E;
  line-height: 1.75;
  text-align: center;
}

.sum-badge.gray {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(196, 96, 138, .1);
  color: var(--ink-2);
}

.sum-stickers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

/* 不规则贴纸 */
.sticker {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: none;
}

.sticker:nth-child(1) { transform: rotate(-6deg); }
.sticker:nth-child(2) { transform: rotate(4deg); }
.sticker:nth-child(3) { transform: rotate(-3deg); }
.sticker:nth-child(4) { transform: rotate(7deg); }
.sticker:nth-child(5) { transform: rotate(-5deg); }

.sticker-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FDE4EC, #F8CDDC);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: 0 6px 16px rgba(233, 163, 189, .3);
}

.sticker:nth-child(2n) .sticker-bg {
  background: linear-gradient(145deg, #FBEEDC, #F4DFC4);
  border-radius: 56% 44% 48% 52% / 46% 56% 44% 54%;
  box-shadow: 0 6px 16px rgba(217, 188, 140, .3);
}

.sticker-num {
  position: relative;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(196, 96, 138, .3);
  line-height: 1;
}

.sticker-num small {
  font-size: 9px;
  font-weight: 500;
  display: block;
  text-align: center;
  margin-top: 1px;
  opacity: .9;
}

.sum-closing {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(196, 96, 138, .16);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 2;
}

.sum-closing .sc-sign {
  display: block;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: .12em;
}

/* 月份切换 */
.month-switch {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.month-switch::-webkit-scrollbar { display: none; }

.ms-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 96, 138, .16);
  background: rgba(255, 255, 255, .72);
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .22s;
  flex: none;
}

.ms-chip.is-on {
  background: linear-gradient(105deg, #F3B8CE, #E89AB8);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(233, 163, 189, .35);
}

/* ============================================================
   后台
   ============================================================ */

.admin-tab {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.admin-tab::-webkit-scrollbar { display: none; }

.at-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(196, 96, 138, .14);
  background: rgba(255, 255, 255, .7);
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: all .22s;
}

.at-btn.is-on {
  background: linear-gradient(105deg, #F3B8CE, #E89AB8);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .7);
  border-left: 3px solid var(--pink-300);
  margin-bottom: 8px;
  font-size: 13px;
}

.alert-item.high { border-left-color: #DE8AAC; background: linear-gradient(100deg, #FFF5F8, rgba(255, 255, 255, .8)); }
.alert-item.mid { border-left-color: #EBC79A; background: linear-gradient(100deg, #FFFBF3, rgba(255, 255, 255, .8)); }

.ai-name { font-weight: 600; color: var(--ink); }
.ai-text { flex: 1; font-size: 12px; color: var(--ink-2); }

/* 表格 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tbl th {
  padding: 9px 8px;
  text-align: left;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 11.5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  vertical-align: middle;
}

.tbl tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.7;
}

.badge.ok { background: rgba(110, 158, 128, .13); color: #5E8E70; }
.badge.wait { background: rgba(235, 199, 154, .22); color: #A78449; }
.badge.no { background: rgba(166, 149, 158, .14); color: var(--ink-3); }
.badge.new { background: rgba(233, 163, 189, .2); color: var(--pink-700); }

.btn-sm {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(196, 96, 138, .2);
  background: rgba(255, 255, 255, .8);
  font-family: var(--font);
  font-size: 11.5px;
  color: var(--pink-600);
  cursor: pointer;
  transition: background .2s;
}

.btn-sm:active { background: rgba(249, 220, 230, .6); }
.btn-sm.warn { color: #B98E5E; border-color: rgba(217, 188, 140, .4); }
.btn-sm.gray { color: var(--ink-3); border-color: rgba(166, 149, 158, .2); }

/* 空态 */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--ink-4);
  font-size: 13px;
  line-height: 1.9;
}

.empty-ic { font-size: 32px; opacity: .5; margin-bottom: 10px; }

/* 加载中 */
.loading {
  text-align: center;
  padding: 40px 0;
  color: var(--ink-4);
  font-size: 12.5px;
}

/* 图片预览 */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(30, 22, 27, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .22s ease;
}

.img-viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

/* ---------------- 后台：截图核对 ---------------- */

.proof-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.proof {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(196, 96, 138, .16);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 3px 10px rgba(196, 96, 138, .1);
  cursor: pointer;
  transition: transform .2s;
}

.proof img:active { transform: scale(.97); }

.proof-empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1px dashed rgba(196, 96, 138, .22);
  background: rgba(255, 250, 251, .8);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: var(--ink-4);
}

.proof-label {
  font-size: 10px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .02em;
}

.proof-hint {
  margin: 0 0 12px;
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
}

.proof-norecord {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(255, 250, 251, .85);
  border: 1px dashed rgba(196, 96, 138, .2);
  font-size: 11.5px;
  color: var(--ink-4);
  text-align: center;
}

.base-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255, 249, 238, .95), rgba(253, 245, 235, .8));
  border: 1px solid rgba(217, 188, 140, .26);
  margin-bottom: 12px;
}

.br-tx {
  flex: 1;
  font-size: 11.5px;
  color: #8F7550;
  line-height: 1.5;
}

.br-tx b {
  font-family: var(--font-num);
  font-size: 14px;
  color: #B9955E;
  margin: 0 2px;
}

.br-btn {
  flex: none;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(217, 188, 140, .4);
  background: rgba(255, 255, 255, .85);
  font-family: var(--font);
  font-size: 11px;
  color: #9A7B4E;
  cursor: pointer;
}

.br-btn:active { background: rgba(253, 244, 232, .9); }

/* 底数异常提示条 */
.warn-bar {
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #A2560F;
  background: rgba(255, 244, 230, .95);
  border: 1px solid rgba(226, 158, 74, .3);
}

/* 补录底数弹窗里的上传块 */
.fb-up {
  width: 84px;
  cursor: pointer;
}
.fb-up .proof-empty { font-size: 22px; color: var(--pink-300); }


.br-none {
  flex: none;
  font-size: 10.5px;
  color: var(--ink-4);
}

.edit-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: .04em;
}

.edit-divider::before,
.edit-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(196, 96, 138, .12);
}

/* 滚动条 */
::-webkit-scrollbar { width: 0; height: 0; }

/* 小屏微调 */
@media (max-width: 360px) {
  .hero-score { font-size: 36px; }
  .cel-score { font-size: 48px; }
}

/* ============================================================
   v4 新增：多店引流 / 身份 / 头像 / 领奖台 / 出单填 0
   ============================================================ */

/* 通用隐藏（原来只给 .view / .modal / .auth-form 单独写了） */
.hidden { display: none !important; }

/* ---------------- 顶栏头像 ---------------- */
.top-left { display: flex; align-items: center; gap: 10px; }
.top-tx { min-width: 0; }

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: linear-gradient(145deg, var(--pink-200), var(--pink-400));
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(196, 96, 138, .16);
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-sm { width: 32px; height: 32px; font-size: 13px; }
.av-md { width: 42px; height: 42px; font-size: 16px; }
.av-lg { width: 52px; height: 52px; font-size: 20px; }
.av-xl { width: 66px; height: 66px; font-size: 25px; }

/* ---------------- 身份标签 ---------------- */
.tt {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 999px;
  font-weight: 500;
  vertical-align: 1px;
  white-space: nowrap;
}
.tt-star {
  color: var(--pink-600);
  background: rgba(233, 163, 189, .16);
  border: 1px solid rgba(233, 163, 189, .38);
}
.tt-pilot {
  color: #86704A;
  background: rgba(232, 213, 183, .34);
  border: 1px solid rgba(217, 188, 140, .58);
}
.rank-name .tt, .pd-name .tt, .me-name .tt { margin-left: 0; }

/* ---------------- 打卡页：多店引流 ---------------- */
.shop-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.pick-hint {
  margin: 8px 2px 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.pick-empty {
  padding: 12px 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  border: 1px dashed rgba(196, 96, 138, .2);
  border-radius: var(--r-s);
  margin-top: 8px;
}

.entry-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  border-radius: var(--r-s);
  padding: 10px 11px 4px;
  margin-top: 8px;
}
.entry-box.is-ro { background: rgba(255, 255, 255, .45); }

.eb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.eb-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.eb-last {
  font-size: 10.5px;
  color: var(--ink-3);
  background: rgba(232, 213, 183, .3);
  padding: 1px 7px;
  border-radius: 999px;
}
.eb-lead {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pink-600);
}
.eb-lead.is-zero { color: var(--ink-4); }

/* 出单填 0 时的安慰语 */
.zero-tip {
  margin-top: 7px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: linear-gradient(120deg, rgba(255, 246, 250, .95), rgba(253, 236, 242, .9));
  border-radius: 11px;
  border: 1px solid rgba(233, 163, 189, .18);
}

/* ---------------- 排行榜领奖台 ---------------- */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 14px 2px 0;
  margin-bottom: 8px;
}
.pd-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pd-ghost { flex: 1 1 0; }
.pd-crown { height: 17px; font-size: 14px; line-height: 1; }
.pd-av { margin: 2px 0 6px; }
.pd-c1 .pd-av { filter: drop-shadow(0 4px 10px rgba(217, 188, 140, .45)); }
.pd-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.pd-name .me-tag { margin-left: 0; }
.pd-title { margin: 3px 0 2px; min-height: 15px; }
.pd-score {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-600);
}
.pd-score small { font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 1px; }

.pd-base {
  width: 100%;
  margin-top: 7px;
  border-radius: 11px 11px 0 0;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.pd-c1 .pd-base {
  height: 84px;
  background: linear-gradient(180deg, #FFF2DC, #F5DDB0);
  border: 1px solid rgba(217, 188, 140, .5);
  border-bottom: 0;
}
.pd-c2 .pd-base {
  height: 62px;
  background: linear-gradient(180deg, #FDF2F6, #F3DFE7);
  border: 1px solid rgba(233, 163, 189, .35);
  border-bottom: 0;
}
.pd-c3 .pd-base {
  height: 48px;
  background: linear-gradient(180deg, #F9F3EC, #EEE1D4);
  border: 1px solid rgba(201, 184, 192, .4);
  border-bottom: 0;
}
.pd-no {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: rgba(122, 107, 115, .55);
}
.pd-c1 .pd-no { color: rgba(150, 116, 62, .75); }
.pd-col.is-me .pd-base { box-shadow: 0 0 0 2px rgba(233, 163, 189, .5) inset; }

.rank-item .rank-av { flex: none; }

/* ---------------- 设置页：我的卡片 ---------------- */
.me-card {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.me-info { min-width: 0; }
.me-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------------- 选身份 / 换头像 ---------------- */
.title-pick {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 4px;
}
.title-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-m);
  border: 1px solid rgba(196, 96, 138, .16);
  background: rgba(255, 255, 255, .72);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: all .22s cubic-bezier(.3, .9, .3, 1);
}
.title-opt.is-on {
  border-color: var(--pink-400);
  background: linear-gradient(120deg, #FFF4F8, #FDECF2);
  box-shadow: 0 5px 16px rgba(196, 96, 138, .12);
}
.to-ic { font-size: 20px; line-height: 1; }
.to-tx { display: flex; flex-direction: column; }
.to-nm { font-size: 14px; font-weight: 600; color: var(--ink); }
.to-ds { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.av-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin: 18px 0 10px;
}
.av-pick { cursor: pointer; }
.av-pick input { display: none; }
.av-hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 后台：成员详情头部 / 多店编辑行 ---------------- */
.ad-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ad-head-tx { min-width: 0; }

.ed-ent {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
}
.ed-ent .ed-shop { flex: 1 1 56%; min-width: 0; }
.ed-ent .ed-total { flex: 1 1 44%; min-width: 0; }
