/* ============================================================
   同城恋爱盲盒 · UI v3
   玻璃拟态 + 暖玫色系 + 分层阴影 + 动效
   断点：<680 手机 / 680–1023 平板 / >=1024 桌面
   ========================================================== */

:root {
  --ink: #2a1c24;
  --ink2: #6d5a64;
  --ink3: #a08e98;
  --line: rgba(42, 28, 36, .08);
  --line2: rgba(42, 28, 36, .14);

  --rose: #ff5d7d;
  --rose2: #ef3f63;
  --peach: #ff9a6b;
  --lilac: #9d8cff;

  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);

  --r1: 14px;
  --r2: 20px;
  --r3: 26px;
  --r4: 32px;

  --sh-s: 0 2px 8px rgba(74, 32, 48, .05);
  --sh-m: 0 12px 30px -12px rgba(74, 32, 48, .22);
  --sh-l: 0 28px 60px -24px rgba(74, 32, 48, .34);
  --sh-glow: 0 18px 40px -14px rgba(239, 63, 99, .45);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #fdf6f7;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  background:
    radial-gradient(36vmax 36vmax at 10% 2%, #ffe2ea 0%, rgba(255, 226, 234, 0) 62%),
    radial-gradient(32vmax 32vmax at 94% 6%, #e8e3ff 0%, rgba(232, 227, 255, 0) 64%),
    radial-gradient(40vmax 40vmax at 72% 96%, #ffeade 0%, rgba(255, 234, 222, 0) 62%),
    #fdf6f7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .30;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.28'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- 图标 ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.15em;
}

/* ---------- 玻璃 ---------- */
.glass,
.topbar,
.hero,
.note-card,
.group-card,
.side-card,
.me-card,
.draw-panel,
.sheet {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .78);
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 120px;
}

/* ============================================================
   顶栏
   ========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -20px;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid rgba(42, 28, 36, .06);
  background: rgba(253, 246, 247, .72);
}

.topbar-in {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(140deg, #ff7d97, #ef3f63 62%, #d92b52);
  box-shadow: 0 10px 22px -8px rgba(239, 63, 99, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
  overflow: hidden;
  flex: none;
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-item {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink2);
  transition: color .2s, background .2s;
}

.nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }

.nav-item.on {
  color: var(--rose2);
  font-weight: 700;
  background: rgba(255, 93, 125, .1);
}

.tb-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--sh-s);
  font-size: 13px;
  color: var(--ink2);
  max-width: 150px;
  transition: transform .2s var(--ease), box-shadow .2s;
}

.city-pill:hover { transform: translateY(-1px); box-shadow: var(--sh-m); }
.city-pill .ic { color: var(--rose); }
#cityLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--sh-s);
  color: var(--ink2);
}

.icon-btn .dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose2);
  box-shadow: 0 0 0 2px #fff;
}

.user-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff7d97, #e8355c);
  box-shadow: 0 10px 22px -10px rgba(232, 53, 92, .8);
  transition: transform .2s var(--ease);
}

.user-btn:active { transform: scale(.96); }

/* ============================================================
   提示条
   ========================================================== */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #b0355a;
  background: linear-gradient(90deg, rgba(255, 226, 234, .9), rgba(255, 240, 235, .7));
  border: 1px solid rgba(255, 255, 255, .8);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice .ic { color: #e8355c; flex: none; }
.notice span { overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   布局
   ========================================================== */
.layout {
  display: block;
  padding-top: 18px;
}

.col-side { display: none; }

.view { min-height: calc(100vh - 260px); }

/* 视图切换不再做位移动画，避免闪一下 */

/* ============================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 24px 24px;
  border-radius: var(--r4);
  box-shadow: var(--sh-l);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 93, 125, .42), rgba(255, 93, 125, 0) 68%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, 26px) scale(1.08); }
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #b0355a;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--sh-s);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose2);
  box-shadow: 0 0 0 0 rgba(239, 63, 99, .55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(239, 63, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 63, 99, 0); }
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 7.4vw, 44px);
  line-height: 1.16;
  letter-spacing: -1.4px;
  font-weight: 800;
}

.grad {
  background: linear-gradient(105deg, #ff5d7d, #ff9a6b 52%, #9d8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 12px 0 0;
  max-width: 30em;
  color: var(--ink2);
  font-size: 14px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 28, 36, .07);
}

.hero-stats .hs b {
  display: block;
  font-size: 20px;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
}

.hero-stats .hs span { font-size: 12px; color: var(--ink3); }

/* 首页右侧：刚刚加入 */
.hero-deck {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.deck-panel {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 20px 44px -24px rgba(74, 32, 48, .4);
}

.deck-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--ink2);
}

.deck-head .ic { color: var(--peach); }

.deck-live {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, .5);
  animation: pulse 2s infinite;
}

.deck-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s;
}

.deck-row:hover { background: rgba(255, 255, 255, .9); }
.deck-row + .deck-row { border-top: 1px solid rgba(42, 28, 36, .06); }

.deck-ava {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: #fdeef2;
  display: grid;
  place-items: center;
  color: var(--rose2);
}

.deck-ava img { width: 100%; height: 100%; object-fit: cover; }

.deck-txt { flex: 1; min-width: 0; }
.deck-txt b { display: block; font-size: 13.5px; font-weight: 700; }
.deck-txt i { font-style: normal; font-size: 11.5px; color: var(--ink3); }

.deck-cta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rose2);
  opacity: 0;
  transition: opacity .2s;
}

.deck-row:hover .deck-cta { opacity: 1; }
/* ============================================================
   区块标题
   ========================================================== */
.sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 14px;
}

.sec h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.5px;
  font-weight: 800;
}

.sec-hint { font-size: 12px; color: var(--ink3); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--ink2);
  padding: 5px 4px;
}

.more .ic { font-size: .9em; opacity: .6; }
.more:hover { color: var(--rose2); }

/* ============================================================
   按钮
   ========================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s, background .2s;
}

.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7794, #ef3f63 58%, #d92b52);
  box-shadow: var(--sh-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px 1px 45% 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 44px -16px rgba(239, 63, 99, .75); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
}

.btn-ghost:hover { background: #fff; box-shadow: var(--sh-m); }

.btn-dark { background: var(--ink); color: #fff; }

.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================================================
   纸条卡片
   ========================================================== */
.note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.note-card {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: var(--r3);
  box-shadow: var(--sh-m);
  cursor: pointer;
  overflow: hidden;
  animation: rise .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.note-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  opacity: .5;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 93, 125, .35), rgba(255, 93, 125, 0) 70%);
}

.note-card[data-g="m"]::before {
  background: radial-gradient(circle, rgba(47, 111, 237, .22), rgba(47, 111, 237, 0) 70%);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 58px -26px rgba(74, 32, 48, .42);
}

.note-top { display: flex; align-items: center; gap: 11px; position: relative; }

.ava {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(140deg, #ffe3ea, #ffefdf);
  display: grid;
  place-items: center;
  color: var(--rose2);
  font-size: 18px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 16px -8px rgba(74, 32, 48, .55);
}

.ava img { width: 100%; height: 100%; object-fit: cover; }

.note-id { flex: 1; min-width: 0; }

.note-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.note-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.tag-girl { color: #d6336c; background: rgba(255, 93, 125, .13); }
.tag-boy  { color: #2f6fed; background: rgba(47, 111, 237, .11); }
.tag-ok   { color: #1f9d63; background: rgba(31, 157, 99, .12); }
.tag-off  { color: var(--ink3); background: rgba(42, 28, 36, .06); }

.note-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-draws {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink3);
  flex: none;
  padding-top: 2px;
}

.note-draws .ic { color: #ff9a6b; font-size: 13px; }

.note-text {
  position: relative;
  margin: 12px 0 0;
  font-size: 14.5px;
  color: #4a3b44;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-imgs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.note-imgs img {
  flex: 1;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .9);
}

.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink3);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px dashed rgba(239, 63, 99, .3);
  color: #b0355a;
  font-size: 12px;
  font-weight: 600;
}

.contact-chip.locked { color: var(--ink3); border-color: var(--line2); }

.note-go {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  color: var(--ink3);
  opacity: 0;
  transform: translateX(-4px);
  transition: .25s var(--ease);
}

.note-card:hover .note-go { opacity: 1; transform: none; color: var(--rose2); }
/* ============================================================
   搭子群
   ========================================================== */
.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.group-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r3);
  box-shadow: var(--sh-m);
  cursor: pointer;
  animation: rise .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.group-card:hover { transform: translateY(-4px); box-shadow: 0 30px 55px -26px rgba(74, 32, 48, .4); }

.group-cover {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(140deg, #ffe3ea, #ffeede);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.group-cover img { width: 100%; height: 100%; object-fit: cover; }

.group-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.group-title {
  margin: 2px 0 3px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-sub {
  margin: 0;
  font-size: 12px;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price { color: var(--rose2); font-weight: 800; font-size: 17px; letter-spacing: -.4px; }
.price small { font-size: 11px; font-weight: 600; color: var(--ink3); }

/* ============================================================
   抽纸条
   ========================================================== */
.draw {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.draw-art {
  display: grid;
  place-items: center;
  padding: 26px 18px;
  border-radius: var(--r4);
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 236, 242, .7));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--sh-m);
}

.env {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.env-back {
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 93, 125, .3), rgba(255, 93, 125, 0) 70%);
  filter: blur(14px);
}

.env-body {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: linear-gradient(150deg, #fff, #ffe8ef);
  box-shadow: inset 0 -8px 18px rgba(255, 93, 125, .16), 0 22px 44px -18px rgba(239, 63, 99, .6);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

.env-shadow {
  position: absolute;
  bottom: 6px;
  width: 70px;
  height: 12px;
  border-radius: 50%;
  background: rgba(74, 32, 48, .12);
  filter: blur(6px);
  animation: shadow 4s ease-in-out infinite;
}

@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(.86); opacity: .32; }
}

.draw-tip {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink3);
}

.draw-panel {
  padding: 24px 20px;
  border-radius: var(--r4);
  box-shadow: var(--sh-l);
}

.draw-panel h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.6px; }

.draw-sub { margin: 0 0 18px; font-size: 13px; color: var(--ink2); }

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .05);
  margin-bottom: 14px;
}

.seg-item {
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  transition: .22s var(--ease);
}

.seg-item.on {
  background: #fff;
  color: var(--rose2);
  box-shadow: 0 4px 12px -4px rgba(74, 32, 48, .3);
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
}

.switch-row input { position: absolute; opacity: 0; pointer-events: none; }

.switch {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .16);
  position: relative;
  transition: background .22s;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .24s var(--ease);
}

.switch-row input:checked + .switch { background: linear-gradient(135deg, #ff7794, #ef3f63); }
.switch-row input:checked + .switch::after { transform: translateX(17px); }

.pack-list { display: grid; gap: 10px; }

.pack {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  text-align: left;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}

.pack:hover { transform: translateY(-2px); box-shadow: var(--sh-m); border-color: rgba(255, 93, 125, .35); }

.pack.is-main {
  background: linear-gradient(135deg, rgba(255, 240, 244, .95), rgba(255, 255, 255, .9));
  border-color: rgba(255, 93, 125, .3);
}

.pack-txt { flex: 1; min-width: 0; }
.pack-name { font-size: 14.5px; font-weight: 700; }
.pack-desc { font-size: 12px; color: var(--ink3); }
.pack-price { font-size: 18px; font-weight: 800; color: var(--rose2); letter-spacing: -.5px; flex: none; }

/* ============================================================
   我的
   ========================================================== */
.me-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r3);
  box-shadow: var(--sh-m);
}

.me-ava {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(140deg, #ffe3ea, #ffefdf);
  color: var(--rose2);
  flex: none;
  overflow: hidden;
}

.me-ava img { width: 100%; height: 100%; object-fit: cover; }

.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.me-sub { font-size: 12px; color: var(--ink3); }

.me-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 28, 36, .07);
}

.me-stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.me-stat span { font-size: 11.5px; color: var(--ink3); }

.me-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 14px;
  scrollbar-width: none;
}

.me-tabs::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink2);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  transition: .2s var(--ease);
}

.chip:hover { box-shadow: var(--sh-m); }
.chip.on { color: #fff; background: var(--ink); border-color: var(--ink); }

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  margin-bottom: 10px;
  animation: rise .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.row-item .grow { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 650; }
.row-sub { font-size: 12px; color: var(--ink3); word-break: break-all; }

.more-wrap { text-align: center; padding: 18px 0; }

/* ============================================================
   侧栏
   ========================================================== */
.side-card {
  padding: 18px;
  border-radius: var(--r3);
  box-shadow: var(--sh-m);
  margin-bottom: 14px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--ink2);
  text-transform: uppercase;
}

.side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.side-row + .side-row { border-top: 1px solid rgba(42, 28, 36, .06); }

.side-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
}

.side-lbl { font-size: 11.5px; color: var(--ink3); }

.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.side-mini {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
}

.invite-box {
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(140deg, #2a1c24, #4a2b38 60%, #6b2b3f);
  box-shadow: var(--sh-m);
}

.invite-box b { font-size: 14.5px; }
.invite-box p { margin: 6px 0 14px; font-size: 12px; color: rgba(255, 255, 255, .68); }

/* ============================================================
   话题
   ========================================================== */
.topic-list { display: grid; gap: 12px; }

.topic-item {
  padding: 16px;
  border-radius: var(--r2);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

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

.topic-body { font-size: 14px; color: #4a3b44; white-space: pre-wrap; word-break: break-word; }

.topic-imgs { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.topic-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink3);
}

/* ============================================================
   弹层
   ========================================================== */
.mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(32, 18, 25, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}

@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -24px 60px -20px rgba(32, 18, 25, .4);
  animation: up .34s var(--ease);
  -webkit-overflow-scrolling: touch;
}

@keyframes up { from { transform: translateY(100%); } }

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .86));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sheet-head::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .14);
}

.sheet-head h3 { margin: 0; font-size: 17px; letter-spacing: -.3px; }

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(42, 28, 36, .06);
  color: var(--ink2);
}

.sheet-close:hover { background: rgba(42, 28, 36, .1); }

.field { margin-bottom: 14px; }

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink2);
}

.input, .textarea, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(42, 28, 36, .1);
  background: rgba(255, 255, 255, .8);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.55; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(255, 93, 125, .55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 93, 125, .1);
}

.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }

.hint { margin-top: 5px; font-size: 12px; color: var(--ink3); }

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

.upload-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed rgba(239, 63, 99, .28);
  background: rgba(255, 244, 247, .8);
  display: grid;
  place-items: center;
  color: var(--ink3);
  font-size: 20px;
}

.upload-cell img { width: 100%; height: 100%; object-fit: cover; }

.upload-cell .del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(32, 18, 25, .6);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.upload-cell input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* 支付 */
.pay-amount { text-align: center; padding: 6px 0 18px; }
.pay-amount b {
  display: block;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.8px;
  color: var(--rose2);
  font-variant-numeric: tabular-nums;
}
.pay-amount span { font-size: 12px; color: var(--ink3); }

.pay-channels { display: grid; gap: 10px; }

.pay-ch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(42, 28, 36, .08);
  text-align: left;
  transition: .2s var(--ease);
}

.pay-ch:hover { border-color: rgba(255, 93, 125, .4); transform: translateY(-1px); }

.pay-ch i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a8bff, #2f6fed);
  flex: none;
}

.pay-ch[data-ch="wxpay"] i { background: linear-gradient(135deg, #4ed07a, #22a95c); }
.pay-ch[data-ch="qqpay"] i { background: linear-gradient(135deg, #61b6ff, #2b8ce0); }
.pay-ch[data-ch="mock"] i { background: linear-gradient(135deg, #b9a6ff, #8a6dff); }

.qr-box { text-align: center; padding: 4px 0 12px; }
.qr-box img { width: 200px; height: 200px; margin: 0 auto 10px; border-radius: 18px; background: #fff; object-fit: contain; }

.qr-link {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(42, 28, 36, .04);
  font-size: 11.5px;
  color: var(--ink2);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-note {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 244, 247, .95), rgba(255, 255, 255, .9));
  border: 1px solid rgba(255, 93, 125, .18);
  margin-bottom: 10px;
}

/* ============================================================
   Toast / Loading / 骨架 / 空状态
   ========================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  max-width: 86vw;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(32, 18, 25, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  animation: toast-in .25s var(--ease);
}

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.loading {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(253, 246, 247, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.loading i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 93, 125, .2);
  border-top-color: var(--rose2);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skel-card {
  height: 210px;
  border-radius: var(--r3);
  background: linear-gradient(100deg, rgba(255, 255, 255, .6) 20%, rgba(255, 255, 255, .92) 40%, rgba(255, 255, 255, .6) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid rgba(255, 255, 255, .8);
}

@keyframes shimmer { to { background-position: -200% 0; } }

.empty {
  padding: 40px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink3);
  border-radius: var(--r2);
  border: 1px dashed rgba(42, 28, 36, .12);
  background: rgba(255, 255, 255, .55);
}

/* ============================================================
   底部导航（手机）
   ========================================================== */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
  height: 62px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 44px -18px rgba(74, 32, 48, .45);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10.5px;
  color: var(--ink3);
  transition: color .2s;
}

.tab .ic { font-size: 21px; }

.tab.on { color: var(--rose2); font-weight: 700; }

.tab-main { flex: none; width: 78px; }

.tab-main .ic {
  width: 46px;
  height: 46px;
  margin-top: -20px;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff7794, #ef3f63 65%, #d92b52);
  box-shadow: 0 14px 28px -10px rgba(239, 63, 99, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* ============================================================
   页脚
   ========================================================== */
.foot {
  margin-top: 40px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(42, 28, 36, .07);
  text-align: center;
  font-size: 12px;
  color: var(--ink3);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.foot-links button, .foot-links a { color: var(--ink2); }
.foot-links button:hover, .foot-links a:hover { color: var(--rose2); }

.foot p { margin: 0; line-height: 1.7; color: var(--ink3); }

/* ============================================================
   响应式
   ========================================================== */
@media (min-width: 560px) {
  .note-grid { grid-template-columns: repeat(2, 1fr); }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .page { padding: 0 28px 60px; }
  .topbar { margin: 0 -28px; padding: 12px 28px; }
  .hero { padding: 40px 36px 34px; }
  .hero-deck { min-height: 240px; }
  .draw { grid-template-columns: 300px 1fr; align-items: start; }
  .sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(92vw, 520px);
    max-height: 84vh;
    transform: translate(-50%, -50%);
    border-radius: 26px;
    animation: pop .26s var(--ease);
  }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
}

@media (min-width: 1024px) {
  .topbar { padding: 14px 28px; }
  .nav-desk { display: flex; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
  }
  .col-side { display: block; position: sticky; top: 88px; }
  .tabbar { display: none; }
  .page { padding-bottom: 40px; }
  .toast { bottom: 40px; }
  .note-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .group-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding: 44px 40px; }
  .hero-deck { min-height: 270px; margin-top: 0; }
  .deck-card { width: min(80%, 260px); margin-left: -40%; }
  .me-tabs { overflow: visible; flex-wrap: wrap; }
}

@media (min-width: 1280px) {
  .note-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 手机端常显 CTA（无 hover） */
@media (hover: none) {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   定位弹层
   ========================================================== */
.loc-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 13.5px;
  color: var(--ink2);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
}

.loc-state.ok {
  color: #17694a;
  background: linear-gradient(120deg, rgba(231, 247, 239, .95), rgba(255, 255, 255, .9));
  border-color: rgba(31, 157, 99, .25);
}

.loc-state.ok b { color: #0f5c3e; }

.loc-state.fail {
  color: #8a4b5e;
  background: linear-gradient(120deg, rgba(255, 240, 244, .95), rgba(255, 255, 255, .9));
}

.loc-src {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink3);
  white-space: nowrap;
}

.spinner-mini {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(239, 63, 99, .2);
  border-top-color: var(--rose2);
  animation: spin .7s linear infinite;
  flex: none;
}
/* 手机上「刚刚加入」和下方广场重复，隐藏 */
@media (max-width: 1023px) {
  .hero-deck { display: none; }
}
/* ============================================================
   首页：警方提示 / 轮播 / 跑马灯 / 定位条 / 脱单盲盒
   ========================================================== */
.police-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 14px;
  background: linear-gradient(100deg, #eef4ff, #f7f2ff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  font-size: 12.5px;
  color: #4a5b7a;
  margin-bottom: 12px;
}

.police-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4a8bff, #2f6fed);
  letter-spacing: .3px;
}

.police-text {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 轮播 */
.swiper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-m);
  margin-bottom: 10px;
  background: #fff;
}

.slides {
  display: flex;
  transition: transform .45s var(--ease);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  aspect-ratio: auto;
  position: relative;
  background: #fdeef2;
  cursor: pointer;
}

.slide img { width: 100%; height: auto; display: block; }

.sw-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  background: rgba(32, 18, 25, .32);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s;
}

.swiper:hover .sw-btn { opacity: 1; }
.sw-btn.prev { left: 8px; }
.sw-btn.next { right: 8px; }

.sw-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.sw-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: width .25s var(--ease), background .25s;
}

.sw-dots i.on {
  width: 16px;
  border-radius: 999px;
  background: #fff;
}

/* 跑马灯 */
.ticker {
  height: 34px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  font-size: 12.5px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  animation: tick-in .45s var(--ease);
}

@keyframes tick-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* 定位条 */
.loc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
}

.loc-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, #ff8fa6, #ef3f63);
  box-shadow: 0 6px 14px -6px rgba(239, 63, 99, .9);
}

.loc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-info b { font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.loc-info i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .14);
  position: relative;
  flex: none;
  transition: background .2s;
}

.loc-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .22s var(--ease);
}

.loc-switch.on { background: linear-gradient(135deg, #ff7794, #ef3f63); }
.loc-switch.on i { transform: translateX(16px); }

.loc-refresh {
  flex: none;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a8bff, #2f6fed);
  box-shadow: 0 8px 18px -8px rgba(47, 111, 237, .9);
}

.loc-refresh:active { transform: scale(.96); }

/* 区块标题 */
.sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.sec-title .bar {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7794, #ef3f63);
  flex: none;
}

.sec-title small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0;
}

.sec-title .more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

/* 脱单盲盒 */
.boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.box-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-m);
  display: flex;
  flex-direction: column;
}

.box-cover {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: linear-gradient(150deg, #eef0ff, #fde8f0);
}

.box-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.box-card:hover .box-cover img { transform: scale(1.04); }

.box-cover .ov {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 10px 10px;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 12, 18, .66));
}

.box-cover .ov b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.box-cover .ov span {
  font-size: 11px;
  opacity: .88;
}

.box-body {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.box-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 154, 107, .12);
  color: #c8621f;
}

.box-btn {
  height: 36px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  transition: transform .15s var(--ease), filter .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box-btn:active { transform: scale(.975); }

.box-card[data-g="m"] .box-btn.solid {
  color: #fff;
  background: linear-gradient(135deg, #4a8bff, #2f6fed);
  box-shadow: 0 8px 16px -8px rgba(47, 111, 237, .9);
}

.box-card[data-g="m"] .box-btn.outline {
  color: #2f6fed;
  background: #fff;
  border: 1px solid rgba(47, 111, 237, .45);
}

.box-card[data-g="m"] .box-btn.soft {
  color: #2f6fed;
  background: rgba(47, 111, 237, .09);
}

.box-card[data-g="f"] .box-btn.solid {
  color: #fff;
  background: linear-gradient(135deg, #ff7794, #ef3f63);
  box-shadow: 0 8px 16px -8px rgba(239, 63, 99, .9);
}

.box-card[data-g="f"] .box-btn.outline {
  color: #e8386a;
  background: #fff;
  border: 1px solid rgba(239, 63, 99, .45);
}

.box-card[data-g="f"] .box-btn.soft {
  color: #e8386a;
  background: rgba(239, 63, 99, .09);
}

.box-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* 悬浮客服 */
.kf-fab {
  position: fixed;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 48;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px -10px rgba(74, 32, 48, .6);
  animation: float 5s ease-in-out infinite;
}

.kf-fab img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 820px) {
  .loc-bar { padding: 12px 16px; }
  .box-body { padding: 12px; }
  .box-btn { height: 40px; font-size: 13.5px; }
}

@media (min-width: 1024px) {
  .kf-fab { right: 28px; bottom: 28px; width: 54px; height: 54px; }
  .boxes { gap: 14px; }
  .box-cover { aspect-ratio: 1 / .92; }
  .swiper { border-radius: 22px; }
  .police-bar { margin-bottom: 14px; }
}
/* ============================================================
   页面级主题：不同 tab 换强调色和底色，避免「每页都一样」
   ========================================================== */
body { transition: background-color .45s var(--ease); }

body[data-page="home"]  { --accent: #ef3f63; --accent-2: #ff8fa6; }
body[data-page="plaza"] { --accent: #4f6bff; --accent-2: #7f9bff; background-color: #f6f7fd; }
body[data-page="draw"]  { --accent: #8b5cf6; --accent-2: #c4a5ff; background-color: #f9f6fe; }
body[data-page="group"] { --accent: #0f9f8a; --accent-2: #5fd3c0; background-color: #f4fbf9; }
body[data-page="me"]    { --accent: #475569; --accent-2: #94a3b8; background-color: #f7f7f9; }

.sec-title .bar {
  background: linear-gradient(180deg, var(--accent, #ef3f63), var(--accent-2, #ff8fa6));
}

.sec-title { color: var(--ink); }

.tab.on { color: var(--accent, var(--rose2)); }
.nav-item.on { color: var(--accent, var(--rose2)); background: rgba(0, 0, 0, .05); }

.chip.on { background: var(--accent, var(--ink)); border-color: var(--accent, var(--ink)); }

.page-head {
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-s);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, #ef3f63), transparent 70%);
  opacity: .18;
}

.page-head h2 {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.page-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink3);
}

/* 同城标记 / 时间 */
.from-local {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #0f7a68;
  background: rgba(15, 159, 138, .12);
}

.note-time { font-size: 11.5px; color: var(--ink3); }

.page-head { padding-right: 96px; }
.page-head .head-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

/* 城市宫格 */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.city-grid .chip {
  justify-content: center;
  height: 38px;
  font-size: 13.5px;
}

@media (min-width: 560px) {
  .city-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   详情页 / 表单弹层（无标题栏版）
   ========================================================== */
.sheet.sheet-bare {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.sheet.sheet-bare .sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 12px;
}

/* 底部固定操作条 */
.sheet-bar {
  flex: none;
  position: sticky;
  bottom: 0;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  margin: 0 -18px -12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .98) 40%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(42, 28, 36, .06);
}

.bar-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink3);
}

/* ---------- 详情 ---------- */
.detail { padding-top: 6px; }

.detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 60%, rgba(255, 255, 255, .82));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.detail-ava {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 22px;
}

.detail-who { flex: 1; min-width: 0; }

.detail-who h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.detail-who h3 > * { flex: none; }
.detail-who h3 { overflow: hidden; }

.detail-who p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink3);
}

/* 图集 */
.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -18px 14px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.g-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(78%, 320px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #f6eef1;
  box-shadow: var(--sh-s);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.g-item:active img { transform: scale(.99); }

/* 正文 */
.detail-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #3f333a;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 数据格 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(42, 28, 36, .06);
}

.fact {
  background: #fff;
  padding: 12px 6px;
  text-align: center;
}

.fact i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 3px;
}

.fact b {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.3px;
}

/* 联系方式 */
.contact-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 244, 247, .95), rgba(255, 255, 255, .9));
  border: 1px dashed rgba(239, 63, 99, .3);
  margin-bottom: 14px;
}

.lock-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239, 63, 99, .1);
  color: var(--rose2);
  flex: none;
}

.contact-locked b { display: block; font-size: 14px; }
.contact-locked i { font-style: normal; font-size: 12px; color: var(--ink3); }

.contact-open {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, #eef7f2, #ffffff);
  border: 1px solid rgba(31, 157, 99, .25);
  margin-bottom: 14px;
}

.ct-label {
  flex: none;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #147a52;
  background: rgba(31, 157, 99, .13);
}

.ct-val {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}

.ct-copy {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2bb673, #14935c);
}

.detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 8px;
  font-size: 12px;
}

.muted { color: var(--ink3); }

.link-danger {
  color: #c02b45;
  font-size: 12.5px;
  padding: 4px 2px;
}

/* ---------- 投放表单 ---------- */
.publish { padding-top: 4px; }

.publish .sheet-head {
  margin: 0 -18px;
  padding: 12px 18px;
}

.pub-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 28, 36, .06);
}

.pub-section:last-of-type { border-bottom: 0; }

.pub-label {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 8px;
}

.pub-label b { color: var(--rose2); font-size: 14px; }

.seg-lg .seg-item { height: 40px; padding: 0 26px; font-size: 14px; }

.input-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.input-like .ic { color: var(--ink3); font-size: 15px; }

.contact-row { display: flex; gap: 8px; }
.contact-row .select { border-radius: 14px; }

.counter {
  float: right;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink3);
}

.upload-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

.upload-cell.add { color: var(--ink3); }

.cover-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(32, 18, 25, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 6, 10, .94);
  display: flex;
  align-items: center;
  animation: fade .18s ease;
}

.lb-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lb-track::-webkit-scrollbar { display: none; }

.lb-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lb-count {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.lb-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

@media (min-width: 820px) {
  .sheet.sheet-bare { width: min(94vw, 620px); }
  .detail-text { font-size: 15.5px; }
  .upload-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 表单吸顶头：不透内容 */
.publish .sheet-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .99);
  border-bottom: 1px solid rgba(42, 28, 36, .06);
}

.publish .sheet-head h3 { padding-left: 2px; }
/* 只有一张图时占满 */
.gallery .g-item:only-child {
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* ============================================================
   空状态 / 投放成功 / 消息中心 / 微交互
   ========================================================== */
.empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 20px;
  text-align: center;
  border-radius: var(--r2);
  border: 1px dashed rgba(42, 28, 36, .14);
  background: rgba(255, 255, 255, .55);
}

.empty-ic {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--accent, var(--rose2));
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--sh-s);
  font-size: 22px;
}

.empty-box b { font-size: 15px; font-weight: 700; }
.empty-box p { margin: 0; max-width: 24em; font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.empty-act { margin-top: 12px; }

/* 投放成功 */
.done {
  padding: 26px 4px 10px;
  text-align: center;
}

.done-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #2bb673, #14935c);
  box-shadow: 0 16px 32px -14px rgba(20, 147, 92, .8);
  animation: pop-in .45s var(--ease);
}

@keyframes pop-in {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.done h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.4px; }
.done > p { margin: 0 auto 20px; max-width: 26em; font-size: 13px; color: var(--ink3); line-height: 1.65; }

.done-card {
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(140deg, rgba(255, 244, 247, .95), rgba(255, 255, 255, .92));
  border: 1px solid rgba(239, 63, 99, .18);
  margin-bottom: 14px;
}

.done-card > b { font-size: 14px; }
.done-card > p { margin: 4px 0 10px; font-size: 12px; color: var(--ink3); line-height: 1.6; }

.done-link {
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--ink2);
  background: rgba(42, 28, 36, .04);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.done-actions { display: grid; gap: 8px; }

/* 消息中心 */
.msg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 30px 12px;
  font-size: 12.5px;
  color: var(--ink3);
}

.msg-toolbar b { color: var(--accent, var(--rose2)); font-size: 14px; }

.link-mini { font-size: 12.5px; color: var(--accent, var(--rose2)); font-weight: 600; }

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  margin-bottom: 8px;
  transition: background .2s, transform .2s;
}

.msg-row.unread { background: #fff; box-shadow: var(--sh-s); }
.msg-row:active { transform: scale(.995); }

.msg-ic {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
}

.msg-ic.t-audit { color: #2f6fed; background: rgba(47, 111, 237, .11); }
.msg-ic.t-money { color: #c8860d; background: rgba(240, 165, 0, .14); }
.msg-ic.t-sys   { color: var(--rose2); background: rgba(239, 63, 99, .1); }

.msg-body { flex: 1; min-width: 0; }

.msg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.msg-head b { font-size: 14px; font-weight: 700; }
.msg-head i { font-style: normal; font-size: 11px; color: var(--ink3); flex: none; }

.msg-text {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.msg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--rose2);
  flex: none;
}

/* 图片淡入 */
.fade { opacity: 0; }
.fade.in { opacity: 1; transition: opacity .45s var(--ease); }

/* 滚动后顶栏投影 */
.topbar { transition: box-shadow .3s var(--ease); }
body.scrolled .topbar { box-shadow: 0 10px 28px -20px rgba(42, 28, 36, .55); }

/* 底部弹层的抓取条 */
.sheet-bare::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  width: 38px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .16);
  z-index: 6;
}

.skel-row {
  height: 62px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: linear-gradient(100deg, rgba(255,255,255,.55) 20%, rgba(255,255,255,.92) 40%, rgba(255,255,255,.55) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid rgba(255,255,255,.8);
}
/* ============================================================
   脱单公约 / 支付 logo / 支付兜底
   ========================================================== */
.pact {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 12, 18, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .22s ease;
}

.pact.out { animation: pact-out .26s var(--ease) forwards; }

@keyframes pact-out {
  to { opacity: 0; transform: scale(1.02); }
}

.pact-card {
  position: relative;
  width: min(94vw, 460px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
  animation: pact-in .32s var(--ease);
}

@keyframes pact-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
}

.pact.shake .pact-card { animation: shake .38s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.pact-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink3);
  background: rgba(42, 28, 36, .05);
}

.pact-card h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.4px;
  text-align: center;
}

.pact-sub {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  color: var(--rose2);
}

.pact-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fbf7f8;
  font-size: 13px;
  line-height: 1.85;
  color: #4a3b44;
  -webkit-overflow-scrolling: touch;
}

.pact-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink2);
  margin-bottom: 8px;
}

.pact-agree input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--rose2);
  flex: none;
}

.pact-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.pact-links button {
  font-size: 12px;
  color: var(--rose2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pact-go { height: 46px; font-size: 15px; }
.pact-go[disabled] { opacity: .45; box-shadow: none; }

/* 支付渠道 logo */
.pay-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
}

.pay-logo img { width: 100%; height: 100%; object-fit: cover; }

/* 支付兜底 */
.pay-fallback {
  padding: 16px;
  border-radius: 16px;
  background: #fbf7f8;
}

.pay-fallback p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.6;
}

/* 协议正文 */
.doc-body {
  max-height: 64vh;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.85;
  color: #4a3b44;
}
/* ============================================================
   抽纸条页：做成一个"舞台"，和别的页不一样
   ========================================================== */
.draw-art {
  position: relative;
  padding: 34px 20px 26px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 214, 226, .95), transparent 60%),
    linear-gradient(160deg, #fff2f6, #ffe8ef 45%, #ffdde8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -26px rgba(239, 63, 99, .55);
  margin-bottom: 14px;
}

.draw-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .9; transform: translate(-50%, -50%) scale(1.08); }
}

.env { position: relative; z-index: 1; }

.env-ic {
  width: 34px;
  height: 34px;
  color: var(--rose2);
  fill: rgba(239, 63, 99, .16);
  stroke-width: 1.6;
}

.draw-tip {
  margin-top: 14px;
  font-size: 12.5px;
  color: #a8667a;
  letter-spacing: .2px;
}

.draw-panel {
  border-radius: 24px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 44px -30px rgba(42, 28, 36, .5);
}

body[data-page="draw"] .seg {
  background: rgba(255, 226, 234, .6);
}

body[data-page="draw"] .pack-it {
  border-radius: 16px;
  transition: transform .18s var(--ease), box-shadow .2s;
}

body[data-page="draw"] .pack-it:active {
  transform: scale(.985);
}

/* ============================================================
   我的：资料卡做成渐变头
   ========================================================== */
body[data-page="me"] .me-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 18px;
  color: #fff;
  background: linear-gradient(140deg, #3a2430, #5b2c3f 55%, #7d3049);
  box-shadow: 0 22px 44px -28px rgba(42, 28, 36, .9);
}

body[data-page="me"] .me-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 158, 184, .55), transparent 65%);
  pointer-events: none;
}

body[data-page="me"] .me-card .muted,
body[data-page="me"] .me-card .me-sub {
  color: rgba(255, 255, 255, .62);
}
/* 换一批 */
.chip-ghost {
  gap: 5px;
  color: var(--ink2);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(42, 28, 36, .1);
}

.chip-ghost .ic { font-size: 13px; opacity: .75; }
.chip-ghost.loading { opacity: .6; pointer-events: none; }
.chip-ghost.loading .ic { animation: spin .7s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
/* ============================================================
   iOS 胶囊开关（全站统一）
   ========================================================== */
.switch {
  display: inline-flex;
  align-items: center;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .16);
  position: relative;
  transition: background .26s var(--ease);
  flex: none;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .04);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform .26s var(--ease), width .18s ease;
}

input:checked + .switch {
  background: #34c759;
}

input:checked + .switch::after {
  transform: translateX(20px);
}

input:active + .switch::after { width: 29px; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  font-size: 13.5px;
  color: var(--ink2);
  cursor: pointer;
  user-select: none;
}

.switch-row input { position: absolute; opacity: 0; pointer-events: none; }