/* 爱自己 · 德香女人花读书会 — portal styles
   Brand: logo magenta #EF018D on a white page. One light theme (white background, bold readable text).
   Layout: member site = white top bar + bottom tabs on phone; admin = magenta sidebar + white content (drawer on phone). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff6fb;
  --line: #f2e2eb;
  --line-strong: #e6c8d8;
  --ink: #1f0f18;
  --ink-2: #4a3341;
  --ink-3: #7a6371;
  --brand: #ef018d;
  --rose: #d0007a;
  --rose-strong: #a80063;
  --rose-soft: #ffdcef;
  --rose-tint: #fff2f8;
  --on-rose: #ffffff;
  --gold: #8f6100;
  --gold-soft: #fff1cc;
  --coin: #f5b400;
  --sky: #1d63c4;
  --sky-soft: #e3eefc;
  --green: #137a49;
  --green-soft: #ddf4e7;
  --amber: #995f00;
  --amber-soft: #fff0d4;
  --slate: #625560;
  --slate-soft: #f1ecef;
  --wa: #128c43;
  --wa-soft: #ddf5e6;
  --danger: #c0182a;
  --danger-soft: #fde4e7;
  --series-1: #ef018d;
  --series-2: #2a78d6;
  --grid: #f3e6ed;
  --shadow: 0 1px 2px rgba(60, 10, 40, 0.06), 0 10px 26px -16px rgba(60, 10, 40, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(60, 10, 40, 0.35);
  --sidebar-a: #ef018d;
  --sidebar-b: #d4007d;
  --hero-a: #ef018d;
  --hero-b: #ef018d;
  --tier-bronze: #a5622f;
  --tier-silver: #6f7d8f;
  --tier-rose: #c85d78;
  --tier-gold: #b8860b;
  --tier-ultimate: #8a1aa8;
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "Nunito", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; font-weight: 600; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack.sm { gap: 8px; }
.stack.lg { gap: 28px; }
.grid { display: grid; gap: 16px; }
.hide-sm { }
.show-sm { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .show-sm { display: revert !important; } }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid transparent; background: var(--rose); color: var(--on-rose);
  font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
}
.btn:hover { background: var(--rose-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--rose); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--rose-tint); border-color: var(--rose); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--rose-tint); color: var(--rose); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { filter: brightness(1.06); }
.btn.wa-soft { background: var(--wa-soft); color: var(--wa); border-color: transparent; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.light { background: rgba(255, 255, 255, 0.18); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn.light:hover { background: rgba(255, 255, 255, 0.28); }
.btn.white { background: #fff; color: #b4235a; }
.btn.white:hover { background: #fff3f7; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 13px; gap: 5px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 44px; padding: 0; }
.btn.sm.icon-only { width: 36px; }
.btn.xs.icon-only { width: 30px; }

/* ---------- cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 20px; }
.card.pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-head h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card-head h3::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--rose); }
.card-body { padding: 16px 20px 20px; }
.section-title { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-title h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.02em; }
.section-title .sub { color: var(--ink-2); font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); }

/* ---------- chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.on { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.chip .count { font-family: var(--font-num); font-weight: 800; font-size: 12.5px; padding: 0 7px; border-radius: 999px; background: var(--rose-tint); color: var(--rose); min-width: 22px; text-align: center; line-height: 20px; }
.chip.on .count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--slate-soft); color: var(--slate); }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.rose, .badge.high { background: var(--rose-soft); color: var(--rose-strong); }
.badge.green, .badge.active { background: var(--green-soft); color: var(--green); }
.badge.sky, .badge.newcomer { background: var(--sky-soft); color: var(--sky); }
.badge.amber, .badge.less { background: var(--amber-soft); color: var(--amber); }
.badge.slate, .badge.dormant, .badge.none { background: var(--slate-soft); color: var(--slate); }
.badge.gold, .badge.paid { background: var(--gold-soft); color: var(--gold); }
.badge.referrer { background: var(--rose-tint); color: var(--rose); border: 1px solid var(--rose-soft); }
.badge.core { background: var(--sky-soft); color: var(--sky); }
.badge.member { background: var(--green-soft); color: var(--green); }
.badge.pending, .badge.volunteer_applied { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 600; font-size: 16px; outline: none; transition: border 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 16%, transparent); }
.input.sm, .select.sm { min-height: 38px; font-size: 14.5px; padding: 6px 12px; }
.search { position: relative; min-width: 0; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); }
.error-box { background: var(--danger-soft); color: var(--danger); padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; }
.ok-box { background: var(--green-soft); color: var(--green); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.info-box { background: var(--rose-tint); color: var(--ink-2); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; border: 1px dashed var(--line-strong); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 800; color: var(--ink-3); letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--rose-tint); }
.table .r { text-align: right; }
.table tr.click { cursor: pointer; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table td.warn { color: var(--amber); }

/* ---------- avatar ---------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; color: var(--rose-strong); background: var(--rose-soft); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.c1 { background: var(--sky-soft); color: var(--sky); }
.avatar.c2 { background: var(--gold-soft); color: var(--gold); }
.avatar.c3 { background: var(--green-soft); color: var(--green); }

/* ---------- modal, drawer, toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 12, 20, 0.45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade 0.15s; }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 8px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h3 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; }
.modal-body { padding: 10px 22px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .overlay.sheet { align-items: flex-end; padding: 0; }
  .overlay.sheet .modal { border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.drawer-overlay { position: fixed; inset: 0; background: rgba(30, 12, 20, 0.4); z-index: 70; animation: fade 0.15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--bg); z-index: 71; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slidein 0.2s ease-out; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: pop 0.18s; display: flex; gap: 8px; align-items: center; }
.toast.error { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- empty & loading ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .icon { width: 42px; height: 42px; color: var(--line-strong); }
.empty b { color: var(--ink-2); font-size: 17px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rose-soft); border-top-color: var(--rose); animation: spin 0.8s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* =======================================================================
   MEMBER SITE
   ======================================================================= */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ink); min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 14px; }
.brand .t1 { font-family: var(--font-display); font-weight: 900; font-size: 21px; line-height: 1.1; letter-spacing: 0.04em; }
.brand .t2 { font-size: 12.5px; color: var(--ink-2); font-weight: 700; letter-spacing: 0.06em; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 800; color: var(--ink-2); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.site-nav a:hover { background: var(--rose-tint); color: var(--rose); }
.site-nav a.on { background: var(--rose-soft); color: var(--rose-strong); }
@media (max-width: 1100px) { .site-nav { display: none; } }
.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { padding-block: 24px 64px; flex: 1; }
.bottom-tabs { display: none; }
@media (max-width: 1100px) {
  .bottom-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); box-shadow: 0 -8px 24px -18px rgba(58, 30, 43, 0.4); }
  .bottom-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-decoration: none; padding: 4px 0; border-radius: 12px; }
  .bottom-tabs a .icon { width: 24px; height: 24px; }
  .bottom-tabs a.on { color: var(--rose); }
  .site-header .wrap { height: 62px; }
  .brand img { width: 40px; height: 40px; }
  .brand .t1 { font-size: 19px; }
}

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; isolation: isolate; }
.hero .petals { position: absolute; right: -60px; top: -80px; width: 420px; height: 420px; opacity: 0.16; z-index: -1; pointer-events: none; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 6vw, 58px); letter-spacing: 0.06em; line-height: 1.12; }
.hero .org { font-weight: 800; font-size: clamp(17px, 2.2vw, 21px); letter-spacing: 0.08em; opacity: 0.95; }
.hero .tag { font-size: clamp(16px, 2vw, 18px); font-weight: 600; line-height: 1.75; max-width: 34em; opacity: 0.96; }
.hero .tag-en { font-size: 14px; opacity: 0.78; max-width: 40em; font-weight: 500; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); border-radius: 22px; } }
@media (max-width: 640px) { .hero .tag-en { display: none; } .hero .cta .btn.lg { min-height: 46px; font-size: 16px; padding: 0 18px; } }
.next-card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.next-card .label { font-size: 13px; font-weight: 800; color: var(--rose); letter-spacing: 0.1em; }
.datebox { width: 72px; flex: none; border-radius: 16px; background: var(--rose-tint); border: 1.5px solid var(--rose-soft); text-align: center; padding: 8px 0 6px; color: var(--rose-strong); }
.datebox .m { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; }
.datebox .d { font-family: var(--font-num); font-size: 30px; font-weight: 900; line-height: 1; }
.datebox .w { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.datebox.sm { width: 60px; padding: 6px 0 4px; }
.datebox.sm .d { font-size: 24px; }
.meta-line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; min-width: 0; }
.meta-line .icon { color: var(--rose); }

/* quick access */
.quick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 14.5px; text-align: center; box-shadow: var(--shadow); transition: transform 0.12s, border-color 0.12s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--rose-soft); }
.quick .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.quick .ic .icon { width: 26px; height: 26px; }
.tone-rose { background: var(--rose-soft); color: var(--rose-strong); }
.tone-sky { background: var(--sky-soft); color: var(--sky); }
.tone-gold { background: var(--gold-soft); color: var(--gold); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-plum { background: color-mix(in srgb, #7a3d8f 16%, var(--surface)); color: color-mix(in srgb, #7a3d8f 80%, var(--ink)); }
.tone-wa { background: var(--wa-soft); color: var(--wa); }
@media (max-width: 420px) { .quick { gap: 8px; } .quick a { font-size: 13px; padding: 12px 2px; border-radius: 16px; } .quick .ic { width: 44px; height: 44px; border-radius: 14px; } }

/* stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.stats-strip > div:first-child { border-left: 0; }
.stats-strip .v { font-family: var(--font-num); font-weight: 900; font-size: clamp(26px, 3.4vw, 34px); color: var(--rose-strong); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats-strip .l { color: var(--ink-2); font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-strip > div:nth-child(3) { border-left: 0; } .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* topics */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform 0.12s; }
.topic-card:hover { transform: translateY(-2px); }
.topic-card .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.topic-card .ic .icon { width: 26px; height: 26px; }
.topic-card h3 { font-family: var(--font-display); font-weight: 900; font-size: 21px; }
.topic-card .sub { color: var(--rose); font-weight: 700; font-size: 14.5px; }
.topic-card p { color: var(--ink-2); font-size: 15px; }
.topic-card.cta { background: var(--rose-tint); border-style: dashed; border-color: var(--rose-soft); box-shadow: none; }
@media (max-width: 640px) {
  .topic-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-grid.compact .topic-card { padding: 14px; gap: 6px; }
  .topic-grid.compact .topic-card h3 { font-size: 18px; }
  .topic-grid.compact .topic-card .ic { width: 42px; height: 42px; border-radius: 13px; }
  .topic-grid.compact .topic-card p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .topic-grid.compact .topic-card .sub { font-size: 13px; }
  .album-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-grid.compact .cap { padding: 8px 10px 10px; }
  .album-grid.compact .cap b { font-size: 14px; }
}

/* events */
.event-row { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; min-width: 0; }
.event-row:hover { border-color: var(--rose-soft); }
.event-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.event-row h3 { font-size: 17.5px; font-weight: 800; }
@media (max-width: 560px) { .event-row { flex-wrap: wrap; } .event-row .act { width: 100%; } .event-row .act .btn { width: 100%; } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal .dow { text-align: center; font-size: 13px; font-weight: 800; color: var(--ink-3); padding: 10px 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day .n { font-family: var(--font-num); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .n { color: var(--ink-3); opacity: 0.6; }
.cal .day.today .n { background: var(--rose); color: #fff; border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; }
.cal .ev { display: block; font-size: 12.5px; font-weight: 700; padding: 3px 6px; border-radius: 7px; background: var(--rose-soft); color: var(--rose-strong); text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.past { background: var(--slate-soft); color: var(--slate); }
.cal .ev.mine { background: var(--rose); color: #fff; }
@media (max-width: 700px) { .cal .day { min-height: 58px; padding: 4px; } .cal .ev { font-size: 0; padding: 0; height: 7px; border-radius: 4px; } }

/* gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.album { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; }
.album .ph { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; max-width: 100%; }
.album .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.album:hover .ph img { transform: scale(1.04); }
.album .cap { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.album .cap b { font-size: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.photo-grid button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--surface-2); max-width: 100%; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 6, 9, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: calc(100dvh - 120px); max-width: 100%; border-radius: 12px; object-fit: contain; }
.lightbox .close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .nav.l { left: calc(12px + env(safe-area-inset-left, 0px)); }
.lightbox .nav.r { right: calc(12px + env(safe-area-inset-right, 0px)); }

/* forum */
.post { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.post:last-child { border-bottom: 0; }
.post:hover { background: var(--rose-tint); }
.post h3 { font-size: 17px; font-weight: 800; }
.post .ex { color: var(--ink-2); font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reply { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.prose { white-space: pre-wrap; line-height: 1.85; font-size: 16.5px; overflow-wrap: anywhere; }

/* member page */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.stat-tile .v { font-family: var(--font-num); font-weight: 900; font-size: 28px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-tile .l { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: var(--surface); border: 1.5px dashed var(--rose-soft); box-shadow: var(--shadow); }
.ticket .qr { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.ticket-code { font-family: var(--font-num); font-weight: 900; letter-spacing: 0.18em; font-size: 20px; color: var(--rose-strong); }
@media (max-width: 520px) { .ticket { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }

/* chatbot */
.chat-fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 58; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--rose); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--rose) 70%, transparent); }
.chat-fab .icon { width: 28px; height: 28px; }
@media (max-width: 1100px) { .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; } }
.chat-panel { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 59; width: min(380px, calc(100% - 32px)); height: min(560px, calc(100dvh - 140px)); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; animation: pop 0.18s; }
@media (max-width: 1100px) { .chat-panel { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); height: min(520px, calc(100dvh - 220px)); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; } }
.chat-top { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.chat-top .bot { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--rose); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input .input { min-height: 44px; border-radius: 999px; }
.chat-note { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 0 12px 8px; background: var(--surface); }
.chat-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7CF29A; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(124, 242, 154, 0.7); animation: chatlive 1.8s infinite; }
@keyframes chatlive { 0% { box-shadow: 0 0 0 0 rgba(124, 242, 154, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(124, 242, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 242, 154, 0); } }
.bubble.streaming::after { content: '▍'; margin-left: 1px; color: var(--rose); animation: chatblink 0.9s steps(2) infinite; }
@keyframes chatblink { 50% { opacity: 0; } }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; animation: chatdot 1.1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatdot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.35; } 40% { transform: translateY(-5px); opacity: 0.9; } }
.bubble.chat-err { background: var(--amber-soft); color: var(--amber); border-color: transparent; font-size: 14px; }
.chat-fab.ai { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.chat-fab-tag { position: absolute; top: -4px; right: -4px; background: #fff; color: var(--rose); font-size: 11px; font-weight: 900; line-height: 1; padding: 4px 6px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.ai-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }
.ai-status.ok { background: var(--green-soft, #E7F7EE); color: var(--green, #17803D); }
.ai-status.off { background: var(--amber-soft); color: var(--amber); }
.ai-status .icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.ai-answer { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .chat-live, .bubble.streaming::after, .typing-dots i { animation: none; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 28px 110px; color: var(--ink-2); font-size: 14.5px; }
@media (min-width: 1101px) { .site-footer { padding-bottom: 32px; } }

/* auth pages */
.auth-wrap { max-width: 460px; margin: 10px auto; }
.auth-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 900; font-size: 28px; }

/* =======================================================================
   ADMIN
   ======================================================================= */
.admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: linear-gradient(180deg, var(--sidebar-a), var(--sidebar-b)); color: #fff; padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 18px max(14px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.sidebar .brand { color: #fff; padding: 4px 6px 10px; }
.sidebar .brand .t2 { color: rgba(255, 255, 255, 0.82); }
.sidebar .brand img { background: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .grp { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.7; padding: 12px 12px 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: rgba(255, 255, 255, 0.92); font-weight: 700; font-size: 15.5px; text-decoration: none; position: relative; }
.side-nav a .icon { width: 20px; height: 20px; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.side-nav a.on { background: #fff; color: #b4235a; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35); }
.side-nav .pill { margin-left: auto; font-family: var(--font-num); font-weight: 900; font-size: 12.5px; background: rgba(255, 255, 255, 0.22); padding: 0 8px; border-radius: 999px; line-height: 22px; }
.side-nav a.on .pill { background: var(--rose-soft); color: #b4235a; }
.side-promo { margin-top: auto; background: rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 14.5px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 14px; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 14px 28px; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 24px; font-weight: 900; min-width: 0; }
.admin-content { padding: 24px max(24px, env(safe-area-inset-right, 0px)) 120px 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.menu-btn { display: none; }
@media (max-width: 1024px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 75; transform: translateX(-105%); transition: transform 0.2s; height: auto; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .topbar h1 { font-size: 20px; }
  .admin-content { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }
}
.scan-fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--rose) 75%, transparent); }
@media (min-width: 1025px) { .scan-fab { display: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.kpi .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.kpi .ic .icon { width: 26px; height: 26px; }
.kpi .v { font-family: var(--font-num); font-weight: 900; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--ink-2); font-weight: 700; font-size: 14px; }
.kpi .d { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
@media (max-width: 480px) { .kpi { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; } .kpi .ic { width: 42px; height: 42px; border-radius: 13px; } .kpi .v { font-size: 24px; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.rank { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; font-size: 14px; background: var(--gold-soft); color: var(--gold); flex: none; }

/* contacts */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar .search { flex: 1 1 260px; }
.contact-cards { display: none; }
@media (max-width: 860px) {
  .contact-table { display: none; }
  .contact-cards { display: flex; flex-direction: column; }
}
.ccard { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.ccard:last-child { border-bottom: 0; }
.ccard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline { display: flex; gap: 4px; flex-wrap: wrap; }
.timeline span { width: 16px; height: 16px; border-radius: 5px; background: var(--slate-soft); border: 1px solid var(--line); }
.timeline span.attended { background: var(--rose); border-color: var(--rose); }
.timeline span.absent { background: var(--amber-soft); border-color: var(--amber); }
.timeline span.registered { background: var(--rose-soft); border-color: var(--rose); }
.bulkbar { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 10px 12px 10px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cb { width: 20px; height: 20px; accent-color: var(--rose); cursor: pointer; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px; flex-wrap: wrap; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font-num); font-weight: 700; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 5; box-shadow: var(--shadow-lg); }
.chart .tip .k { opacity: 0.75; font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 14.5px; }
.hbar .track { display: block; height: 14px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar .fill { display: block; height: 100%; border-radius: 4px; background: var(--rose); min-width: 2px; }
.hbar .row-btn { display: contents; cursor: pointer; }
.hbar .row-btn:hover .bold { color: var(--rose); }
.hbar .val { font-family: var(--font-num); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

/* scanner */
.scanner { position: relative; border-radius: 22px; overflow: hidden; background: #120a0e; aspect-ratio: 3 / 4; max-height: 70dvh; width: 100%; max-width: 520px; margin: 0 auto; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18% 14%; border: 3px solid rgba(255, 255, 255, 0.92); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.scanner .msg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 700; font-size: 14.5px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); padding: 0 16px; }
.scan-result { animation: pop 0.2s; }
.big-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.big-check .icon { width: 34px; height: 34px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-grid button { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; cursor: pointer; }
.pay-grid button.on { background: var(--rose); border-color: var(--rose); color: #fff; }

.demo-banner { background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 700; text-align: center; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.demo-banner a { color: var(--rose-soft); }
.kbd { font-family: var(--font-num); font-weight: 800; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 1px 8px; border-radius: 6px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* =======================================================================
   BRAND, TIERS, DAILY MISSIONS GAME, RANKING
   ======================================================================= */
.brand img.sq { border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(239, 1, 141, 0.6); }
.brand .t1 { font-weight: 900; letter-spacing: 0.04em; }
.sidebar .brand-wm { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 12px; color: #fff; text-decoration: none !important; }
.sidebar .brand-wm img { width: 150px; height: auto; }
.sidebar .brand-wm span { font-weight: 800; font-size: 13.5px; letter-spacing: 0.1em; opacity: 0.9; }
.hero { background: var(--brand); }
.hero .wordmark { width: min(360px, 78%); height: auto; margin: -6px 0 2px -6px; }
.hero .tag { font-weight: 700; }

/* tier badge */
.tier { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-weight: 900; font-size: 13.5px; color: #fff; white-space: nowrap; letter-spacing: 0.02em; }
.tier .icon { width: 15px; height: 15px; }
.tier.bronze { background: linear-gradient(135deg, #c98a52, var(--tier-bronze)); }
.tier.silver { background: linear-gradient(135deg, #a3afbf, var(--tier-silver)); }
.tier.rose { background: linear-gradient(135deg, #f1a1b4, var(--tier-rose)); }
.tier.gold { background: linear-gradient(135deg, #f0c64c, var(--tier-gold)); }
.tier.ultimate { background: linear-gradient(135deg, #ef018d, var(--tier-ultimate)); }
.tier.lg { height: 38px; padding: 0 16px 0 13px; font-size: 17px; }
.tier.lg .icon { width: 20px; height: 20px; }
.tier-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.tier-card.bronze { background: linear-gradient(135deg, #c98a52, #8a4d22); }
.tier-card.silver { background: linear-gradient(135deg, #a3afbf, #55606f); }
.tier-card.rose { background: linear-gradient(135deg, #f19ab0, #b04764); }
.tier-card.gold { background: linear-gradient(135deg, #f0c24a, #a4730a); }
.tier-card.ultimate { background: linear-gradient(135deg, #ef018d, #6c1290); }
.tier-card .big { font-family: var(--font-num); font-weight: 900; font-size: 44px; line-height: 1; }
.tier-card .bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.tier-card .bar i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.tier-card .gem { position: absolute; right: -24px; top: -24px; width: 150px; height: 150px; opacity: 0.16; }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ladder > div { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.ladder > div.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--rose-soft); }
.rank-row { display: grid; grid-template-columns: 44px 42px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row.me { background: var(--rose-tint); }
.rank-no { font-family: var(--font-num); font-weight: 900; font-size: 18px; text-align: center; color: var(--ink-2); }
.rank-no.r1, .rank-no.r2, .rank-no.r3 { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; margin: 0 auto; }
.rank-no.r1 { background: linear-gradient(135deg, #f6cf55, #c9930c); }
.rank-no.r2 { background: linear-gradient(135deg, #c6ced8, #7d8796); }
.rank-no.r3 { background: linear-gradient(135deg, #e3a06b, #a5622f); }
.pts { font-family: var(--font-num); font-weight: 900; font-size: 18px; color: var(--rose); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .rank-row { grid-template-columns: 36px 34px minmax(0, 1fr) auto; } .rank-row .tier { display: none; } }

/* daily missions */
.mission-hero { background: var(--brand); color: #fff; border-radius: 26px; padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; position: relative; overflow: hidden; }
.mission-hero h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: 0.04em; }
@media (max-width: 560px) { .mission-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-family: var(--font-num); font-size: 34px; font-weight: 900; line-height: 1; display: block; }
.ring .lbl span { font-size: 13px; font-weight: 800; opacity: 0.9; }
.chip-light { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-weight: 800; font-size: 14px; white-space: nowrap; }
.chip-light .icon { width: 17px; height: 17px; }
.daybtns { display: inline-flex; background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 4px; gap: 4px; }
.daybtns button { border: 0; background: transparent; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.daybtns button.on { background: #fff; color: var(--rose); }
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekstrip > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.weekstrip .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; font-size: 14px; color: var(--ink-2); background: var(--slate-soft); border: 2px solid transparent; }
.weekstrip .dot.some { background: var(--rose-soft); color: var(--rose-strong); }
.weekstrip .dot.full { background: var(--brand); color: #fff; }
.weekstrip .dot.today { border-color: var(--brand); }
.sec-head { text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 6px 0 2px; }
.sec-head h2 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.sec-head h2::before, .sec-head h2::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand)); }
.sec-head h2::after { transform: scaleX(-1); }
.sec-head span { color: var(--rose); font-weight: 800; font-size: 14.5px; }
.mission { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); position: relative; transition: background 0.2s, border-color 0.2s; }
.mission .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--rose-tint); color: var(--brand); border: 1.5px solid var(--rose-soft); }
.mission .ic .icon { width: 26px; height: 26px; }
.mission h3 { font-size: 16.5px; font-weight: 900; line-height: 1.4; }
.mission p { font-size: 14px; color: var(--ink-2); font-weight: 600; line-height: 1.55; }
.mission .coin { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-num); font-weight: 900; font-size: 13px; color: var(--gold); margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.mission .coin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe27a, var(--coin) 60%, #c98f00); box-shadow: inset 0 0 0 1.5px #e0a400; }
.mission .act .btn { min-width: 108px; }
.mission.done { background: #f3fbf6; border-color: #bfe6cf; box-shadow: none; }
.mission.done .ic { background: var(--green-soft); color: var(--green); border-color: #bfe6cf; }
.mission.done h3 { color: var(--ink-2); }
.btn.doneb { background: var(--green-soft); color: var(--green); }
.btn.doneb:hover { background: #c9ecd8; }
.btn.report { background: linear-gradient(180deg, #ff2aa5, var(--rose)); }
@media (max-width: 560px) {
  .mission { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mission .ic { width: 44px; height: 44px; border-radius: 14px; }
  .mission .act { grid-column: 1 / -1; }
  .mission .act .btn { width: 100%; }
}
.float-pt { position: absolute; right: 26px; top: 6px; font-family: var(--font-num); font-weight: 900; font-size: 22px; color: var(--coin); text-shadow: 0 2px 0 #fff; animation: floatup 0.9s ease-out forwards; pointer-events: none; }
@keyframes floatup { from { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
.complete-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.complete-card .trophy { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe27a, var(--coin)); color: #7a4b00; box-shadow: 0 12px 30px -10px rgba(245, 180, 0, 0.8); animation: pop 0.4s; }
.complete-card .trophy .icon { width: 52px; height: 52px; }
.complete-card h2 { font-family: var(--font-num); font-weight: 900; font-size: 34px; color: var(--brand); letter-spacing: 0.02em; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.points-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.points-rules > div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.points-rules b.num { color: var(--rose); font-size: 18px; }
.mission-hero .daybtns { align-self: flex-start; }
@media (max-width: 560px) { .mission-hero .daybtns { align-self: center; } }
.mission-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--rose-soft); background: var(--rose-tint); color: var(--ink); text-decoration: none !important; }
.mission-teaser .bar { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; border: 1px solid var(--rose-soft); }
.mission-teaser .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.mission-teaser .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.mission-teaser .ic .icon { width: 26px; height: 26px; }
@media (max-width: 520px) { .mission-teaser { grid-template-columns: auto minmax(0, 1fr); } .mission-teaser .btn { grid-column: 1 / -1; } }

/* ---------- invitation card (邀请卡) & personal check-in QR ---------- */
.invite-card { width: 100%; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 28px; overflow: hidden; border: 2px solid var(--rose-soft); box-shadow: var(--shadow-lg); }
.invite-card .ic-top { background: linear-gradient(135deg, var(--brand), #c4006f); color: #fff; text-align: center; padding: 18px 20px 16px; position: relative; overflow: hidden; }
.invite-card .ic-top::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); right: -50px; top: -60px; }
.invite-card .ic-top img { width: 190px; max-width: 60%; height: auto; display: block; margin: 0 auto; position: relative; z-index: 1; }
.invite-card .ic-top .org { font-weight: 800; font-size: 17px; letter-spacing: 0.04em; margin-top: 2px; position: relative; z-index: 1; }
.invite-card .ic-body { padding: 18px 22px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.invite-card .ic-eyebrow { color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: 0.2em; }
.invite-card .ic-name { font-weight: 900; font-size: 24px; color: var(--ink); line-height: 1.3; }
.invite-card .ic-title { font-weight: 800; font-size: 18px; color: var(--ink); margin-top: 4px; line-height: 1.35; }
.invite-card .ic-when { font-weight: 800; color: var(--rose-strong); font-size: 16px; }
.invite-card .ic-where { color: var(--ink-3); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.invite-card .ic-qr { margin-top: 12px; padding: 12px; border: 4px solid var(--brand); border-radius: 22px; background: #fff; line-height: 0; }
.invite-card .ic-code { font-weight: 900; font-size: 22px; letter-spacing: 0.14em; color: var(--ink); margin-top: 8px; font-family: var(--font-num, inherit); }
.invite-card .ic-note { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.mycode-mini { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mycode-mini .qr-box { background: #fff; border: 3px solid var(--brand); border-radius: 16px; padding: 6px; line-height: 0; cursor: zoom-in; }
.join-event { background: var(--rose-tint); border: 1px solid var(--rose-soft); border-radius: 16px; padding: 12px 14px; }
.check-banner { display: flex; gap: 10px; align-items: center; background: var(--green-soft); color: var(--green); border-radius: 14px; padding: 10px 14px; font-weight: 800; }

/* ---------- 最新在线 · landing page ---------- */
.lp { background: #fff; min-height: 100dvh; color: var(--ink); --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif; overflow-x: hidden; }
.lp-wrap { max-width: 560px; margin: 0 auto; position: relative; padding-bottom: 96px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; position: relative; z-index: 3; }
.lp-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.lp-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.lp-brand b { font-size: 15px; font-weight: 900; }
.lp-brand small { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.lp-toplink { font-weight: 800; font-size: 14px; color: var(--rose); padding: 7px 12px; border-radius: 999px; background: var(--rose-tint); text-decoration: none; }

.lp-hero { position: relative; overflow: hidden; padding: 22px 20px 28px; text-align: center; border-radius: 0 0 34px 34px;
  background: radial-gradient(120% 60% at 0% 0%, #ffe0ef 0, rgba(255,224,239,0) 60%), radial-gradient(90% 50% at 100% 35%, #fff0d8 0, rgba(255,240,216,0) 60%), linear-gradient(180deg, #fff5fa 0%, #ffffff 100%); }
.lp-hero > *:not(.lp-peony):not(.lp-float) { position: relative; z-index: 2; }
.lp-peony { position: absolute; z-index: 1; pointer-events: none; }
.lp-peony.p1 { top: -34px; left: -52px; transform: rotate(-18deg); opacity: .95; }
.lp-peony.p2 { top: 210px; right: -50px; transform: rotate(20deg); opacity: .9; }
.lp-float { position: absolute; z-index: 1; animation: lpFloat 5s ease-in-out infinite; }
.lp-float.f1 { top: 120px; left: 18px; } .lp-float.f2 { top: 70px; right: 44px; animation-delay: -1.5s; }
.lp-float.f3 { top: 330px; left: 26px; animation-delay: -2.5s; } .lp-float.f4 { top: 38px; right: 120px; animation-delay: -.8s; }
.lp-float.f5 { top: 290px; right: 30px; animation-delay: -3s; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--rose-soft); color: var(--rose-strong); font-weight: 900; font-size: 15px; padding: 7px 14px 7px 12px; border-radius: 999px; box-shadow: 0 6px 18px -10px rgba(239,1,141,.6); }
.lp-charge { animation: lpCharge 1.6s steps(2) infinite; }
@keyframes lpCharge { 50% { opacity: .1; } }
.lp-h1 { font-family: var(--serif); font-weight: 900; margin: 14px 0 6px; line-height: 1.12; display: flex; flex-direction: column; align-items: center; letter-spacing: .02em; }
.lp-h1 .l0 { font-size: clamp(56px, 17vw, 84px); background: linear-gradient(135deg, #ff3fa7 0%, #ef018d 45%, #b3006a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(255,255,255,.9)); }
.lp-h1 .l1 { font-size: clamp(30px, 9.2vw, 46px); color: #7a0a4a; position: relative; padding: 0 6px; }
.lp-h1 .l1::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: 2px; height: 12px; background: linear-gradient(90deg, rgba(242,184,75,.0), rgba(242,184,75,.55), rgba(242,184,75,0)); border-radius: 8px; z-index: -1; }
.lp-h1 .l2 { font-size: clamp(26px, 7.5vw, 38px); color: var(--ink); }
.lp-sub { text-wrap: balance; font-size: 17.5px; font-weight: 800; line-height: 1.6; margin: 10px auto 0; max-width: 30em; color: #4a2238; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.lp-tags span { background: linear-gradient(135deg, #ef018d, #d0007a); color: #fff; font-weight: 800; font-size: 13.5px; padding: 5px 11px; border-radius: 999px; }
.lp-when { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; margin-top: 16px; }
.lp-when div { background: #fff; border: 1.5px solid var(--rose-soft); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 8px 20px -16px rgba(120,0,60,.5); }
.lp-when .icon { color: var(--brand); width: 22px; height: 22px; }
.lp-when b { font-size: 14.5px; font-weight: 900; line-height: 1.3; }
.lp-countbox { margin-top: 18px; background: #fff; border-radius: 22px; padding: 14px 12px 16px; box-shadow: 0 16px 34px -22px rgba(160,0,90,.55); border: 1.5px solid var(--rose-soft); }
.lp-countbox.small { box-shadow: none; margin-top: 4px; }
.lp-urg { display: inline-flex; align-items: center; gap: 6px; background: #fff3d6; color: #9a5b00; font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.lp-urg .icon { color: #f28c00; width: 18px; height: 18px; }
.lp-cd-label { font-weight: 800; color: var(--ink-3); font-size: 14px; margin-bottom: 8px; }
.lp-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lp-cd-box { background: linear-gradient(160deg, #ff2f9f 0%, #ef018d 50%, #c4006f 100%); color: #fff; border-radius: 16px; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.lp-cd-box::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.25); }
.lp-cd-box b { font-family: var(--font-num); font-size: 34px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lp-cd-box span { font-size: 13px; font-weight: 800; opacity: .92; }
.lp-cd-inline { font-family: var(--font-num); font-weight: 900; font-variant-numeric: tabular-nums; }
.lp-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--green); font-size: 18px; }
.lp-live .dot { width: 10px; height: 10px; border-radius: 50%; background: #20b26b; box-shadow: 0 0 0 0 rgba(32,178,107,.6); animation: lpPing 1.4s infinite; }
@keyframes lpPing { 70% { box-shadow: 0 0 0 10px rgba(32,178,107,0); } 100% { box-shadow: 0 0 0 0 rgba(32,178,107,0); } }
.lp-ended { font-weight: 800; color: var(--ink-3); }
.lp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; font-weight: 900; font-size: 16px; color: #fff; background: linear-gradient(135deg, #ff2f9f, #ef018d 55%, #c4006f); border-radius: 999px; padding: 13px 20px; min-height: 48px; box-shadow: 0 12px 24px -12px rgba(239,1,141,.75); transition: transform .12s ease; }
.lp-btn:active { transform: scale(.98); }
.lp-btn .icon { width: 20px; height: 20px; }
.lp-btn.xl { font-size: 19px; min-height: 60px; padding: 16px 22px; }
.lp-btn.lg { font-size: 17px; min-height: 54px; }
.lp-btn.sm { font-size: 14.5px; min-height: 42px; padding: 9px 14px; box-shadow: none; }
.lp-btn.wa { background: #1faa59; box-shadow: 0 12px 22px -14px rgba(18,140,67,.9); }
.lp-btn.soft { background: var(--rose-tint); color: var(--rose-strong); box-shadow: none; border: 1.5px solid var(--rose-soft); }
.lp-btn.nav { background: #33ccff; color: #062a3a; box-shadow: none; }
.lp-btn.done { background: #e8f7ee; color: #0f6b3c; border: 2px solid #9fdcb9; box-shadow: none; }
.lp-btn.pulse { animation: lpPulse 2.2s ease-in-out infinite; }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 12px 24px -12px rgba(239,1,141,.75), 0 0 0 0 rgba(239,1,141,.45); } 50% { box-shadow: 0 12px 24px -12px rgba(239,1,141,.75), 0 0 0 12px rgba(239,1,141,0); } }
.lp-scarce { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 12px 0 0; font-weight: 800; font-size: 14px; color: #9a5b00; }
.lp-scarce span { display: inline-flex; align-items: center; gap: 5px; }
.lp-scarce .icon { width: 16px; height: 16px; }
.lp-easy { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); font-weight: 700; }
.lp-easy b { color: var(--rose-strong); }

.lp-poster { padding: 22px 16px 6px; }
.lp-poster img { width: 100%; display: block; border-radius: 20px; box-shadow: 0 18px 40px -24px rgba(120,0,60,.6); border: 3px solid #fff; outline: 1.5px solid var(--rose-soft); }
.lp-sec { padding: 22px 18px 8px; }
.lp-sec.center { text-align: center; }
.lp-h2 { font-family: var(--serif); font-weight: 900; font-size: 27px; line-height: 1.35; margin: 0 0 14px; color: #7a0a4a; text-align: center; text-wrap: balance; }
.lp-h2.big { font-size: clamp(24px, 7vw, 30px); color: var(--brand); }
.lp-kicker { font-weight: 900; font-size: 17px; color: var(--rose-strong); margin: 0 0 10px; }
.lp-lead { font-size: 17px; font-weight: 800; color: #4a2238; margin: 0; line-height: 1.6; }
.lp-body { font-size: 16.5px; font-weight: 700; line-height: 1.85; color: #3f2232; margin: 0 0 8px; }
.lp-body.big { font-size: 18px; font-weight: 800; }
.lp-asks { display: flex; flex-direction: column; gap: 12px; }
.lp-ask { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #ffe0ee; border-radius: 22px; padding: 12px 14px; box-shadow: 0 12px 26px -22px rgba(120,0,60,.55); }
.lp-ask.alt { flex-direction: row-reverse; background: #fffaf3; border-color: #ffe7c7; }
.lp-ask .art { width: 84px; height: 84px; flex: none; }
.lp-ask p { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.65; color: #3f2232; }
.lp-ask .hrt { margin-right: 4px; }
.lp-quote { position: relative; background: linear-gradient(150deg, #ef018d, #b8006b); color: #fff; border-radius: 26px; padding: 26px 22px 24px; text-align: center; box-shadow: 0 18px 36px -22px rgba(160,0,90,.8); }
.lp-quote svg { position: absolute; top: -14px; left: 18px; }
.lp-quote p { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 21px; line-height: 1.7; }
.lp-note { position: relative; margin: 18px 22px 0 auto; max-width: 290px; background: #fffdf7; border: 1px solid #f3e3c8; border-radius: 6px; padding: 16px 18px 12px; transform: rotate(-2deg); box-shadow: 0 14px 26px -18px rgba(90,40,0,.45); font-family: var(--serif); }
.lp-note .pin { position: absolute; top: -10px; left: 50%; margin-left: -9px; }
.lp-note p { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.7; color: #4a2238; }
.lp-note span { display: block; text-align: right; color: var(--rose-strong); font-weight: 900; font-size: 14px; margin-top: 6px; }
.lp-divider { display: block; margin: 18px 0 0; padding: 0 24px; }
.lp-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-topic { background: #fff; border: 1.5px solid #ffe0ee; border-radius: 22px; padding: 14px 12px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: 0 12px 26px -22px rgba(120,0,60,.55); }
.lp-topic .art { width: 92px; height: 92px; }
.lp-topic b { font-size: 17px; font-weight: 900; color: #7a0a4a; }
.lp-topic span { font-size: 14.5px; font-weight: 700; color: #5b3a4b; line-height: 1.55; }
.lp-hope { position: relative; margin-top: 10px; background: linear-gradient(135deg, #fff0f7, #fff6e8); border: 1.5px solid #ffd8ea; border-radius: 22px; padding: 18px 18px; }
.lp-hope p { margin: 0; font-size: 17.5px; font-weight: 900; line-height: 1.75; color: #7a0a4a; }
.lp-hope .s1 { position: absolute; top: -9px; right: 18px; background: var(--brand); border-radius: 50%; padding: 4px; box-sizing: content-box; }
.lp-midcta { background: #fff7fb; border: 2px dashed #ffb5d9; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.lp-midcta .t { font-weight: 900; font-size: 16px; color: #7a0a4a; }
.lp-midcta .lp-cd-inline { color: var(--brand); font-size: 20px; }
.lp-ticket { border-radius: 26px; overflow: hidden; border: 2px solid var(--rose-soft); box-shadow: 0 20px 40px -26px rgba(120,0,60,.6); background: #fff; }
.lp-ticket .hd { background: linear-gradient(135deg, #ef018d, #c4006f); color: #fff; font-weight: 900; font-size: 18px; padding: 14px 18px; text-align: center; letter-spacing: .02em; }
.lp-ticket .bd { position: relative; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.lp-ticket .top { display: flex; align-items: center; gap: 8px; }
.lp-ticket .stack0 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-ticket .cup { flex: none; }
.lp-ticket .tr { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.lp-ticket .k { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.lp-ticket .tr b { font-size: 17px; font-weight: 900; line-height: 1.45; }
.lp-ticket .tr b.soft { font-size: 14.5px; color: var(--rose-strong); }
.lp-ticket .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.lp-invite { background: linear-gradient(180deg, #fff4f9, #fff); border-radius: 26px; padding: 18px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px solid #ffe0ee; }
.lp-invite .lp-h2 { margin: 6px 0 4px; font-size: 24px; }
.lp-invite .lp-btn { margin-top: 8px; align-self: stretch; }
.lp-mottos { margin: 24px 0 0; background: linear-gradient(135deg, #ef018d, #c4006f); color: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lp-mottos div { font-family: var(--serif); font-weight: 900; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.lp-closing { padding-top: 26px; }
.lp-final { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--brand); margin: 6px 0 10px; }
.lp-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 10px; font-size: 13px; color: var(--ink-3); font-weight: 700; text-align: center; }
.lp-foot a { color: var(--rose-strong); font-weight: 800; }
.lp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1.5px solid var(--rose-soft); box-shadow: 0 -10px 24px -18px rgba(120,0,60,.6); transform: translateY(110%); transition: transform .25s ease; max-width: 560px; margin: 0 auto; border-radius: 20px 20px 0 0; }
.lp-bar.on { transform: translateY(0); }
.lp-bar .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.lp-bar .t small { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.lp-bar .t .lp-cd-inline, .lp-bar .t b { font-size: 19px; color: var(--brand); }
.lp-bar .lp-btn { min-height: 46px; padding: 10px 18px; font-size: 16px; flex: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.lp-steam { animation: lpSteam 2.6s ease-in-out infinite; }
.lp-steam.d2 { animation-delay: -1.3s; }
@keyframes lpSteam { 0%, 100% { opacity: .9; transform: translateY(0); } 50% { opacity: .35; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lp-float, .lp-btn.pulse, .lp-charge, .lp-steam, .lp-live .dot { animation: none !important; } .reveal { opacity: 1; transform: none; transition: none; } }
@media (min-width: 600px) { .lp-wrap { padding-top: 10px; } .lp-hero { border-radius: 34px; } }
/* home page teaser */
.lp-teaser { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: linear-gradient(135deg, #fff0f7, #fff7ec); border: 1.5px solid var(--rose-soft); color: var(--ink); text-decoration: none; box-shadow: 0 12px 26px -20px rgba(120,0,60,.55); }
.lp-teaser img { width: 120px; height: 68px; object-fit: cover; border-radius: 12px; flex: none; }
.lp-teaser .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-teaser .new { align-self: flex-start; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 900; padding: 1px 8px; border-radius: 999px; }
.lp-teaser b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-teaser .cd { font-size: 13px; font-weight: 800; color: var(--brand); }
.lp-teaser > .icon { color: var(--rose); flex: none; }
.site-nav a.hot { color: var(--brand); position: relative; }
.site-nav a.hot::after { content: ''; position: absolute; top: 6px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

@media (min-width: 1101px) and (max-width: 1380px) {
  .site-header .brand { flex: none; }
  .site-header .brand .t2 { display: none; }
  .site-nav { margin-left: 4px; gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: 15px; }
}

/* ---------- 现场自助签到 (#/checkin) ---------- */
.ck { min-height: 100dvh; background: linear-gradient(180deg, #ffe9f4 0%, #fff7fb 38%, #ffffff 100%); color: var(--ink); overflow-x: hidden; }
.ck-wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 28px; }
.ck-top { position: relative; text-align: center; padding: 26px 8px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ck-top > img { position: relative; z-index: 1; border-radius: 16px; box-shadow: 0 10px 22px -12px rgba(239,1,141,.7); }
.ck-peony { position: absolute; top: -40px; right: -46px; transform: rotate(18deg); opacity: .9; }
.ck-org { font-weight: 900; font-size: 15px; color: var(--rose-strong); letter-spacing: .08em; position: relative; z-index: 1; }
.ck-top h1 { font-family: "Noto Serif SC", "Noto Serif CJK SC", serif; font-weight: 900; font-size: 34px; color: #7a0a4a; position: relative; z-index: 1; margin: 2px 0 0; }
.ck-card { background: #fff; border-radius: 26px; padding: 18px 18px 20px; box-shadow: 0 22px 44px -28px rgba(120,0,60,.55); border: 1.5px solid var(--rose-soft); display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.ck-event { display: flex; gap: 10px; align-items: flex-start; background: var(--rose-tint); border-radius: 16px; padding: 10px 12px; }
.ck-event > .icon { color: var(--brand); width: 24px; height: 24px; flex: none; margin-top: 2px; }
.ck-event div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-event b { font-size: 16px; font-weight: 900; }
.ck-event span { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.ck-form { display: flex; flex-direction: column; gap: 12px; }
.ck-lead { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.5; }
.ck-input { font-size: 22px !important; font-weight: 800; height: 58px; letter-spacing: .03em; }
.ck-hint { margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.ck-link { background: none; border: 0; color: var(--rose-strong); font-weight: 800; font-size: 14.5px; text-decoration: underline; cursor: pointer; align-self: center; padding: 6px; font-family: inherit; }
.ck-welcome { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; color: #7a0a4a; background: #fff6e6; border-radius: 14px; padding: 10px 12px; }
.ck-choices { display: flex; flex-direction: column; gap: 10px; }
.ck-choices .lp-btn { justify-content: flex-start; }
.ck-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0; font-weight: 800; color: var(--ink-3); }
.ck-msg { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 10px 0; }
.ck-msg > .icon { width: 46px; height: 46px; color: var(--brand); }
.ck-msg p { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.6; }
.ck-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 2px; }
.ck-check { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #36d17f, #12985a); box-shadow: 0 0 0 10px #e3f8ec, 0 18px 30px -16px rgba(18,140,67,.8); animation: ckPop .45s cubic-bezier(.2,1.6,.4,1); }
.ck-check .icon { width: 52px; height: 52px; stroke-width: 3; }
@keyframes ckPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ck-name { font-size: 28px; font-weight: 900; margin-top: 10px; }
.ck-sub { margin: 0; font-size: 17px; font-weight: 800; color: #7a0a4a; line-height: 1.5; }
.ck-time { display: inline-flex; align-items: center; gap: 6px; background: #e8f7ee; color: #0f6b3c; font-weight: 900; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.ck-time .icon { width: 18px; height: 18px; }
.ck-small { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.ck-actions { display: flex; flex-direction: column; gap: 8px; align-self: stretch; margin-top: 6px; }
.ck-foot { text-align: center; font-size: 13px; font-weight: 800; color: var(--rose-strong); margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .ck-check { animation: none; } }

/* ---------- 后台 · 现场签到码 ---------- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .st-grid { grid-template-columns: 1fr; } }
.st-qr { align-self: center; background: #fff; padding: 14px; border: 5px solid var(--brand); border-radius: 24px; line-height: 0; }
.st-url { text-align: center; font-weight: 800; font-size: 14px; color: var(--rose-strong); word-break: break-all; }
.st-list { display: flex; flex-direction: column; max-height: 520px; overflow: auto; }
.st-list .badge { flex: none; }
.st-full { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; }
.st-full img { border-radius: 14px; }
.st-full h2 { font-size: clamp(34px, 7vw, 60px); font-weight: 900; color: var(--brand); margin: 0; }
.st-full p { margin: 0; font-size: clamp(16px, 2.6vw, 24px); font-weight: 800; }
.st-full .qr { padding: 16px; border: 6px solid var(--brand); border-radius: 28px; line-height: 0; background: #fff; }
.st-print-wrap { min-height: 100dvh; background: #f3eef1; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.st-print-bar { width: 100%; max-width: 794px; display: flex; align-items: center; gap: 10px; }
.st-poster { width: 794px; max-width: 100%; aspect-ratio: 210 / 297; background: #fff; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); overflow: hidden; }
.st-poster .top { background: linear-gradient(135deg, #ef018d, #c4006f); color: #fff; text-align: center; padding: 34px 20px 24px; }
.st-poster .top img { width: 36%; max-width: 270px; display: block; margin: 0 auto; }
.st-poster .top .org { font-weight: 900; font-size: 28px; letter-spacing: .12em; margin-top: 6px; }
.st-poster .body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 40px; text-align: center; }
.st-poster h1 { font-family: "Noto Serif SC", "Noto Serif CJK SC", serif; font-size: 74px; font-weight: 900; color: #7a0a4a; margin: 0; line-height: 1.1; }
.st-poster .en { font-family: var(--font-num); font-size: 24px; font-weight: 900; color: var(--brand); letter-spacing: .06em; margin-top: -6px; }
.st-poster .qrbox { padding: 16px; border: 7px solid var(--brand); border-radius: 30px; line-height: 0; margin: 6px 0; }
.st-poster .qrbox svg { width: 380px; height: 380px; max-width: 60vw; max-height: 60vw; }
.st-poster .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.st-poster .steps div { background: #fff2f8; border-radius: 18px; padding: 12px 8px; font-weight: 900; font-size: 19px; line-height: 1.4; color: #4a2238; }
.st-poster .steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; margin: 0 auto 6px; font-size: 18px; }
.st-poster .new { margin: 4px 0 0; font-size: 20px; font-weight: 900; color: #7a0a4a; }
.st-poster .link { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink-3); }
.st-poster .foot { background: linear-gradient(135deg, #ef018d, #c4006f); color: #fff; text-align: center; font-weight: 900; font-size: 18px; padding: 14px; letter-spacing: .04em; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .no-print, .toasts, .demo-banner { display: none !important; }
  .st-print-wrap { padding: 0; background: #fff; display: block; min-height: 0; }
  .st-poster { width: 210mm; height: 297mm; max-width: none; aspect-ratio: auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .st-poster .top { padding: 9mm 10mm 6mm; }
  .st-poster .top img { width: 72mm; max-width: none; }
  .st-poster .top .org { font-size: 19pt; margin-top: 1mm; }
  .st-poster .body { padding: 5mm 14mm; gap: 3mm; }
  .st-poster h1 { font-size: 52pt; }
  .st-poster .en { font-size: 16pt; margin-top: -1mm; }
  .st-poster .qrbox { padding: 4mm; border-width: 2mm; border-radius: 8mm; margin: 1mm 0; }
  .st-poster .qrbox svg { width: 92mm; height: 92mm; max-width: none; max-height: none; }
  .st-poster .steps { gap: 4mm; }
  .st-poster .steps div { font-size: 14pt; padding: 3mm 2mm; border-radius: 5mm; }
  .st-poster .steps span { width: 9mm; height: 9mm; font-size: 13pt; margin-bottom: 1.5mm; }
  .st-poster .new { font-size: 15pt; }
  .st-poster .link { font-size: 11pt; }
  .st-poster .foot { font-size: 13pt; padding: 4mm; }
}

/* ---------- 彩色电子票 · payment ---------- */
.color-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px 3px 8px; font-weight: 900; font-size: 14px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, #fff); border: 1.5px solid color-mix(in srgb, var(--tc) 45%, #fff); white-space: nowrap; }
.color-badge .dot { background: var(--tc); }
.color-badge.sm { font-size: 12.5px; padding: 1px 9px 1px 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.invite-card.is-ticket { border-color: var(--tc); border-width: 3px; }
.invite-card.is-ticket .ic-top { background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 78%, #000)); }
.invite-card.is-ticket .ic-eyebrow { color: var(--tc); }
.invite-card.is-ticket .ic-when { color: color-mix(in srgb, var(--tc) 85%, #000); }
.invite-card.is-ticket .ic-qr { border-color: var(--tc); }
.invite-card .ic-band { background: color-mix(in srgb, var(--tc) 13%, #fff); color: var(--tc); text-align: center; font-weight: 900; font-size: 24px; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 2px dashed color-mix(in srgb, var(--tc) 40%, #fff); }
.invite-card .ic-band small { font-size: 13px; font-weight: 800; margin-left: 8px; opacity: 0.85; letter-spacing: 0.06em; }
.invite-card .ic-locked { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px; border: 2px dashed var(--rose-soft); border-radius: 18px; color: var(--ink-3); font-weight: 700; font-size: 14px; max-width: 280px; }
.invite-card .ic-locked .icon { width: 26px; height: 26px; color: var(--brand); }
.btn.tng { background: #0c3c8c; color: #fff; }
.btn.tng:hover { background: #082d6a; }
.btn.ok { background: var(--green); color: #fff; }
.btn.ok:hover { filter: brightness(1.08); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.big-check.pending { background: var(--amber-soft); color: var(--amber); }
.page-title { font-size: 24px; font-weight: 900; margin: 0; }
.pay-step { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.pay-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: 0 0 auto; }
.pay-amount { font-size: 32px; font-weight: 900; color: var(--rose-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.receipt-drop { position: relative; display: grid; place-items: center; min-height: 150px; border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--surface-2); cursor: pointer; text-align: center; padding: 14px; color: var(--ink-2); overflow: hidden; }
.receipt-drop:hover, .receipt-drop:focus-within { border-color: var(--brand); background: var(--rose-tint); }
.receipt-drop .icon { width: 30px; height: 30px; color: var(--brand); }
.receipt-drop.has { padding: 8px; background: #fff; }
.receipt-drop img { max-height: 260px; max-width: 100%; border-radius: 12px; display: block; }
.receipt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pay-steps-mini { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--rose-tint); border-radius: 14px; padding: 12px 14px; }
.pay-steps-mini span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pay-steps-mini i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: 0 0 auto; }
.ticket .qr.pay-qr { width: 148px; height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: 13px; text-align: center; border-style: dashed; }
.ticket .qr.pay-qr .icon { width: 30px; height: 30px; color: var(--brand); }
.group-banner { --tc: var(--brand); display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; background: var(--tc); color: #fff; border-radius: 18px; padding: 12px 14px; text-align: center; }
.group-banner span { font-weight: 800; font-size: 14px; opacity: 0.92; }
.group-banner b { font-size: 34px; font-weight: 900; line-height: 1.15; letter-spacing: 0.04em; }
.group-banner small { font-weight: 800; font-size: 12.5px; opacity: 0.9; }
.ck-pay { display: flex; gap: 8px; align-items: flex-start; background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 14.5px; text-align: left; }
/* admin: 付款核对 */
.pay-row { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pay-row:last-child { border-bottom: 0; }
.pay-row.is-pending { background: color-mix(in srgb, var(--amber-soft) 35%, transparent); }
.pay-thumb { width: 72px; height: 96px; flex: 0 0 auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; padding: 0; cursor: zoom-in; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.pay-thumb:disabled { cursor: default; }
.pay-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-thumb span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; text-align: center; }
.receipt-full { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); }
/* admin: WhatsApp 群发 */
.bc-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-side { position: sticky; top: 76px; }
@media (max-width: 1000px) { .bc-side { position: static; } }
.bc-h { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.bc-h span { width: 26px; height: 26px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13.5px; }
.bc-list { max-height: 320px; overflow-y: auto; }
.chip .dot { width: 10px; height: 10px; }
.wa-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #efe7dd; }
.wa-preview-top { display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; padding: 8px 12px; font-weight: 800; font-size: 14px; }
.wa-bubble { margin: 12px; background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.6; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); max-height: 320px; overflow-y: auto; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--wa); transition: width 0.2s; }
