/* 新加坡陕西会会员系统 · 样式
   配色取自陕西意象：秦砖赭红（主色）、黄土金（点缀）、宣纸米白（底色）、浓茶褐（文字）。 */

:root {
  --bg: #faf6f0;
  --bg-2: #f3ebe0;
  --surface: #ffffff;
  --surface-2: #fcf9f5;
  --line: #ece2d4;
  --line-2: #dfcfba;
  --ink: #2b1d14;
  --ink-2: #5a4535;
  --muted: #75614f;
  --primary: #b4472a;
  --primary-600: #9c3b21;
  --primary-700: #7e2f1a;
  --primary-50: #fcf0eb;
  --primary-100: #f6dccf;
  --gold: #c98a2b;
  --gold-600: #a86f1c;
  --gold-50: #fdf4e3;
  --success: #3f7b4e;
  --success-50: #e9f3eb;
  --warning: #a8620e;
  --warning-50: #fdf1dc;
  --danger: #b3261e;
  --danger-50: #fceae7;
  --info: #3d6a8b;
  --info-50: #e9f1f7;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(74, 44, 20, .06);
  --shadow: 0 1px 2px rgba(74, 44, 20, .05), 0 10px 28px -16px rgba(74, 44, 20, .22);
  --shadow-lg: 0 24px 48px -22px rgba(74, 44, 20, .4);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --side-w: 236px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 .6em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--ink); font-weight: 650; }
h1 { font-size: 24px; letter-spacing: .01em; }
.h2 { font-size: 20px; }
.h3 { font-size: 16px; }
.h4 { font-size: 14px; color: var(--ink-2); }
hr { border: 0; border-top: 1px dashed var(--line-2); margin: 20px 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .93em; letter-spacing: .02em; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.prewrap { white-space: pre-wrap; }
.grow { flex: 1; min-width: 0; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-100); }

/* ---------- 品牌 ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.logo {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(145deg, #c2552f, var(--primary-700));
  color: #fff6ea; font-family: var(--serif); font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 236, 210, .35), 0 2px 6px -2px rgba(126, 47, 26, .5);
}
.logo-lg { width: 52px; height: 52px; font-size: 30px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 14px -8px rgba(156, 59, 33, .8); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-wechat { background: #07c160; color: #fff; border-color: #07c160; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 14px -8px rgba(7, 193, 96, .8); }
.btn-wechat:hover { background: #06ad56; color: #fff; border-color: #06ad56; }
.wechat-icon { margin-right: 8px; vertical-align: middle; }
.auth-divider { display: flex; align-items: center; margin: 16px 0; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.auth-divider span { padding: 0 12px; }
.admin-entry-btn { margin-top: 4px; border: 1px dashed var(--line-2); color: var(--ink-2); }
.admin-entry-btn:hover { border-color: var(--primary-200); background: var(--surface); color: var(--primary); }
.segmented-vertical { display: flex; flex-direction: column; gap: 8px; background: none; padding: 0; }
.segmented-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.segmented-item:hover { border-color: var(--primary-200); background: var(--bg-2); }
.segmented-item input[type="radio"] { margin-top: 3px; }
.btn-danger-outline { border-color: #e7bdb7; color: var(--danger); background: var(--surface); }
.btn-danger-outline:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-xs { min-height: 28px; padding: 3px 10px; font-size: 13px; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.chip-link { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--gold-50); color: var(--gold-600); font-size: 13px; font-weight: 600; }
.chip-link:hover { text-decoration: none; background: #f9e7c4; color: var(--gold-600); }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 15px; margin: 0; }
.card-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head-inline h2 { margin: 0; }
.card-empty { padding: 18px 20px; margin: 0; color: var(--muted); font-size: 14px; }
.card-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.card-list > .card { margin: 0; }
.card-link { display: flex; flex-direction: column; gap: 2px; padding: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card-link:hover { text-decoration: none; border-color: var(--primary-100); box-shadow: var(--shadow); color: var(--ink); }
.card-link span { color: var(--primary); font-weight: 600; }
.split-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-links .card { margin: 0; }

/* ---------- 提示 ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: currentColor; }
.alert > span:not(.alert-dot) { flex: 1; }
.alert-action { flex: none; font-weight: 600; white-space: nowrap; }
.alert-success { background: var(--success-50); color: #2e5e3a; border-color: #cfe5d4; }
.alert-error { background: var(--danger-50); color: #8f1f19; border-color: #f2cdc8; }
.alert-info { background: var(--info-50); color: #2f5470; border-color: #d3e2ee; }
.alert-warning { background: var(--warning-50); color: #7d4a0b; border-color: #f2ddb6; }
.alert a { color: inherit; text-decoration: underline; }
.alert-block { display: block !important; line-height: 1.6; }
.alert-block code { display: inline-block; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .06); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.alert-block .fill-test-acc { cursor: pointer; text-decoration: underline; color: var(--primary-700); font-weight: 700; background: rgba(180, 71, 42, .08); }
.alert-block .fill-test-acc:hover { background: rgba(180, 71, 42, .18); }

/* ---------- 徽标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tone-success { background: var(--success-50); color: var(--success); }
.tone-warning { background: var(--warning-50); color: var(--warning); }
.tone-danger { background: var(--danger-50); color: var(--danger); }
.tone-info { background: var(--info-50); color: var(--info); }
.tone-muted { background: #f1ece6; color: #67584c; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tag-free { background: var(--success-50); color: var(--success); }
.tag-warn { background: var(--warning-50); color: var(--warning); }
.pos-chip { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--gold-600); background: var(--gold-50); border: 1px solid #f1dfbc; white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--primary); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-wide { max-width: 980px; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 14px; color: var(--primary-700); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; width: 100%; }
legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--primary); font-style: normal; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.field-error { color: var(--danger); font-size: 13px; margin: 0; }
.field-static { margin: 0; padding: 9px 0; }
input[type=text], input[type=email], input[type=search], input[type=number], input[type=date], input[type=datetime-local],
input[type=tel], input[type=password],
input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7664' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
textarea { min-height: 72px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #b5a493; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(180, 71, 42, .14); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 2px 0 0; }
input[type=checkbox]:focus, input[type=radio]:focus { box-shadow: none !important; outline: none !important; }
input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.grid-2, .grid-3 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check .hint { display: block; }
.segmented { display: inline-flex; padding: 3px; background: var(--bg-2); border-radius: 10px; gap: 3px; width: max-content; max-width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 6px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.segmented input:checked + span { background: var(--surface); color: var(--primary-700); font-weight: 650; box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); }
.radio-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface-2); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 1px var(--primary); }
.radio-card:has(input:checked) b { color: var(--primary-700); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form.wrap { flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.inline-form select { padding-right: 32px; }
.inline-form .grow-input { flex: 1; min-width: 180px; }
.inline { display: inline; }
.w-sm { width: 84px !important; }
.copy-area { font-size: 14px; background: var(--bg); }

/* ---------- 分页、页头、标签页 ---------- */
.page-head { margin: 4px 0 18px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.back-link::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.pager-info { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--primary); }
.tabs a.on { color: var(--primary-700); border-bottom-color: var(--primary); }
.tabs .count { margin-left: 2px; }
.tabs .tag { font-size: 11px; padding: 0 6px; }

/* ---------- 空状态 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; color: var(--muted); text-align: center; }
.empty p { margin: 0; font-size: 14px; }
.empty-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); position: relative; }
.empty-mark::after { content: ""; position: absolute; inset: 14px 12px; border-top: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); }

/* =========================================================
   会员端
   ========================================================= */
body.m { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(140% 60% at 50% -10%, #fbefe2 0%, var(--bg) 55%) fixed, var(--bg); }
.m-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(250, 246, 240, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(223, 207, 186, .6); }
.m-top-actions { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: none; }
.m-main { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 16px 28px; flex: 1; }
.m-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 18px 16px 28px; font-size: 13px; color: var(--muted); }
.m-foot a { color: var(--muted); }
body.has-tabbar .m-foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.narrow { max-width: 440px; margin: 0 auto; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 250, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(74, 44, 20, .35); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; font-size: 11px; color: var(--muted); font-weight: 600; border-radius: 10px; }
.tabbar a:hover { text-decoration: none; color: var(--ink-2); }
.tabbar a.on { color: var(--primary); }
.tabbar .ti { width: 22px; height: 22px; }
.tabbar a.on .ti { background-color: var(--primary); }
@media (min-width: 720px) {
  .tabbar { left: 50%; right: auto; bottom: 16px; width: 500px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 18px; padding-bottom: 6px; }
}

/* 首页 */
.hero { text-align: center; padding: 26px 8px 8px; }
.hero-seal { width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(150deg, #c45a32, var(--primary-700)); color: #fff4e4; font-family: var(--serif); font-size: 44px; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 233, 205, .35), 0 16px 32px -14px rgba(126, 47, 26, .7); transform: rotate(-4deg); }
.hero-title { font-family: var(--serif); font-size: 32px; letter-spacing: .12em; margin-bottom: 2px; }
.hero-en { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero-intro { color: var(--ink-2); max-width: 26em; margin: 0 auto 22px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }
.hero-hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature b { display: block; margin-bottom: 2px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); }
.feature-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); position: relative; }
.feature-icon::after { content: ""; position: absolute; inset: 9px; background: var(--primary); }

/* 步骤条 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; position: relative; }
.steps li span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: 13px; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line); }
.steps li.on { color: var(--primary-700); font-weight: 650; }
.steps li.on span { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.steps li.done span { background: var(--success); color: #fff; }
.steps-compact { margin-top: 16px; }

/* 验证码 */
.big-icon { display: block; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; position: relative; background: var(--primary-50); }
.big-icon::after { content: ""; position: absolute; inset: 13px; background: var(--primary); }
.bi-ok { background: var(--success-50); } .bi-ok::after { background: var(--success); }
.bi-warn { background: var(--warning-50); } .bi-warn::after { background: var(--warning); }
.bi-wait { background: var(--gold-50); } .bi-wait::after { background: var(--gold); }
.otp-input { text-align: center; font-family: var(--mono); font-size: 28px !important; letter-spacing: .5em; padding-left: calc(12px + .5em) !important; min-height: 56px !important; }
.resend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0 8px; font-size: 13.5px; }
.prose h2 { font-size: 16px; margin-top: 20px; color: var(--primary-700); }
.prose ul { padding-left: 20px; margin: 0 0 .6em; }
.prose li { margin-bottom: 4px; }
.quote { padding: 10px 14px; border-left: 3px solid var(--warning); background: var(--warning-50); border-radius: 0 8px 8px 0; text-align: left; }
.howto { padding-left: 20px; margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.howto li { margin-bottom: 6px; }
.qr-box { display: grid; place-items: center; width: 220px; max-width: 100%; margin: 12px auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.qr-box svg, .qr-box img { display: block; width: 100%; height: auto; border-radius: 6px; }
.qr-pay { width: 240px; }
.qr-thumb { width: 160px; margin: 8px 0; }
.secret { padding: 10px 12px; background: var(--bg-2); border-radius: 8px; word-break: break-all; user-select: all; }
details summary { cursor: pointer; color: var(--primary); margin: 8px 0; }

/* 电子会员卡 */
.member-card { position: relative; overflow: hidden; border-radius: 22px; color: #fff7ec; padding: 20px 20px 16px; margin-bottom: 14px;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255, 210, 140, .38), transparent 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(60, 14, 4, .45), transparent 60%),
    linear-gradient(140deg, #7a2915 0%, #a53b21 42%, #c25a2c 74%, #d6953c 100%);
  box-shadow: 0 22px 44px -22px rgba(122, 41, 21, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.mc-pattern { position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Cpath d='M2 26V2h24v24H7V7h14v14H12v-9h5v4'/%3E%3C/svg%3E");
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%); }
.mc-head, .mc-body, .mc-foot { position: relative; }
.mc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.mc-org { font-family: var(--serif); font-size: 16px; letter-spacing: .14em; font-weight: 700; }
.mc-type { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 244, 228, .18); border: 1px solid rgba(255, 244, 228, .35); white-space: nowrap; }
.mc-body { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mc-who { min-width: 0; }
.mc-name { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .08em; margin: 0; line-height: 1.2; }
.mc-en { margin: 2px 0 10px; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.mc-pos span { display: inline-block; padding: 3px 12px; border-radius: 6px; background: rgba(255, 233, 196, .95); color: #7a2915; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.mc-qr { flex: none; width: 116px; padding: 7px; background: #fff; border-radius: 14px; box-shadow: 0 8px 18px -10px rgba(40, 10, 0, .6); }
.mc-qr svg { display: block; width: 100%; height: auto; }
.mc-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255, 240, 220, .25); }
.mc-foot small { display: block; font-size: 11px; opacity: .75; letter-spacing: .06em; }
.mc-foot b { font-size: 14px; font-weight: 650; }
.mc-live { text-align: right; }
.mc-live small { display: inline-flex; align-items: center; gap: 5px; }
.mc-live small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9df2b4; box-shadow: 0 0 0 0 rgba(157, 242, 180, .7); animation: pulse 1.6s infinite; }
.mc-live b { font-family: var(--mono); letter-spacing: .04em; }
.member-card.is-inactive { filter: saturate(.55); }
.member-card.is-inactive .mc-live small::before { background: #ffd0a0; animation: none; }
.mc-stamp { position: absolute; right: 26px; top: 46px; padding: 4px 12px; border: 3px solid rgba(255, 245, 230, .9); border-radius: 8px; color: rgba(255, 245, 230, .95);
  font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: .2em; transform: rotate(-14deg); pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(157, 242, 180, .7); } 70% { box-shadow: 0 0 0 7px rgba(157, 242, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(157, 242, 180, 0); } }
@media (prefers-reduced-motion: reduce) { .mc-live small::before { animation: none; } }
.card-tip { font-size: 13px; color: var(--muted); text-align: center; margin: 0 8px 18px; }

.section { margin-bottom: 22px; }
.section-title { font-size: 14px; color: var(--muted); font-weight: 650; letter-spacing: .06em; margin: 0 2px 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 8px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.list-item:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.list-item b { display: block; }
.list-item p { margin: 0; }
.list-amount { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2); transform: rotate(45deg); }
.date-chip { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; min-height: 48px; padding: 4px 2px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); line-height: 1.15; }
.date-chip b { font-size: 18px; font-weight: 750; }
.date-chip small { font-size: 11px; font-weight: 600; }
.date-chip-lg { width: 58px; min-height: 64px; }
.date-chip-lg b { font-size: 22px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 440px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
.quick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: center; }
.quick:hover { text-decoration: none; color: var(--primary-700); border-color: var(--primary-100); }
.qi { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-50); position: relative; }
.qi::after { content: ""; position: absolute; inset: 9px; background: var(--gold-600); }

.all-clear { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--success); font-weight: 600; }
.all-clear .big-icon { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.all-clear .big-icon::after { inset: 9px; }
.all-clear p { margin: 0; }
.pay-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row b { display: block; }
.pay-row p { margin: 0; }
.pay-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.pay-step { position: relative; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.step-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; }
.amount-big { text-align: center; font-size: 34px; font-weight: 750; color: var(--primary-700); letter-spacing: .01em; margin: 6px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-copy { margin-top: 16px; padding: 14px; background: var(--bg); border-radius: 12px; align-items: center; }
.kv-copy dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-btn { flex: none; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--primary-700); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--primary); }
.copy-btn.copied { background: var(--success-50); color: var(--success); border-color: #bfdcc6; }
.upload { position: relative; display: block; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.upload:hover, .upload.is-dragover { border-color: var(--primary); background: var(--primary-50); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-align: center; pointer-events: none; }
.upload-face small { color: var(--muted); }
.upload-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); position: relative; margin-bottom: 4px; }
.upload-icon::after { content: ""; position: absolute; inset: 9px; background: var(--primary); }
.upload-previews { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; pointer-events: none; }
.upload-previews:not(:empty) { padding-bottom: 12px; }
.upload-previews img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.upload-previews .file-name { font-size: 13px; color: var(--ink-2); padding: 4px 8px; background: var(--surface); border-radius: 6px; }
.upload-compact .upload-face { padding: 16px 12px; }

.event-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 10px; color: var(--ink); }
.event-card:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.event-title { display: block; font-size: 16px; }
.event-card p { margin: 2px 0 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.event-detail { overflow: hidden; }
.event-banner { display: flex; gap: 14px; align-items: center; padding: 20px; background: linear-gradient(135deg, var(--primary-50), var(--gold-50)); border-bottom: 1px solid var(--line); }
.event-banner h1 { margin: 0 0 4px; }
.checkin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checkin-row:first-of-type { border-top: 0; }
.checkin-row p { margin: 2px 0 6px; }

/* 会员卡验证页 */
.verify { overflow: hidden; }
.verify-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff; }
.verify-ok .verify-head { background: linear-gradient(135deg, #35704a, #4f9363); }
.verify-bad .verify-head { background: linear-gradient(135deg, #8b5a2b, #b0763a); }
.verify-mark { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); position: relative; flex: none; }
.verify-mark::after { content: ""; position: absolute; inset: 11px; background: #fff; }
.verify-state { font-size: 19px; font-weight: 700; margin: 0; }
.verify-time { margin: 0; opacity: .9; font-size: 13px; font-family: var(--mono); }
.verify .kv { padding: 18px 20px; }
.verify-name { font-size: 18px; font-weight: 700; }

/* 收据 */
body.doc { background: var(--bg-2); padding: 16px; }
.doc-bar { display: flex; justify-content: space-between; max-width: 720px; margin: 0 auto 12px; }
.receipt { position: relative; max-width: 720px; margin: 0 auto; padding: 36px 40px; background: #fffdf9; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--primary-700), var(--primary), var(--gold)); }
.receipt-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.receipt-head h1 { font-family: var(--serif); font-size: 24px; letter-spacing: .12em; margin: 0; }
.receipt-head p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.receipt-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; }
.receipt-title h2 { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; margin: 0; }
.receipt-title h2 small { font-family: var(--font); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-left: 8px; }
.receipt-title p { margin: 0; font-size: 15px; font-weight: 700; color: var(--primary-700); }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt-table th, .receipt-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.receipt-table th { width: 38%; color: var(--muted); font-weight: 500; }
.receipt-amount th, .receipt-amount td { border-bottom: 2px solid var(--ink); font-size: 18px; }
.receipt-amount td { font-weight: 800; color: var(--primary-700); }
.receipt-foot { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.receipt-foot p { margin: 0 0 4px; }
.void-stamp { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); padding: 10px 28px; border: 5px solid rgba(179, 38, 30, .75); border-radius: 12px; color: rgba(179, 38, 30, .8); font-family: var(--serif); font-size: 46px; font-weight: 800; letter-spacing: .3em; text-align: center; pointer-events: none; }
.void-stamp small { display: block; font-family: var(--font); font-size: 13px; letter-spacing: 0; font-weight: 600; }
.receipt.is-void .receipt-table { opacity: .6; }
@media print {
  body.doc { background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .receipt { box-shadow: none; border: 0; padding: 0; }
}

/* 开发信箱 */
.mail header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.mail pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 14px; color: var(--ink-2); background: var(--bg); padding: 12px; border-radius: 10px; }

/* =========================================================
   管理后台
   ========================================================= */
body.a { background: var(--bg); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--side-w); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2e1f16 0%, #261910 100%); color: #eadbc8; border-right: 1px solid #3a2a1e; }
.side-brand { padding: 18px 18px 14px; color: #fff3e3; }
.side-brand:hover { color: #fff3e3; }
.side-brand .brand-text b { font-size: 16px; }
.side-brand .brand-text small { color: #b9a189; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: #4a3829 transparent; }
.side-group { margin: 14px 10px 4px; font-size: 11.5px; letter-spacing: .14em; color: #9c8570; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border-radius: 9px; color: #e2d1bd; font-size: 14.5px; font-weight: 500; position: relative; }
.side-nav a:hover { text-decoration: none; background: rgba(255, 236, 214, .07); color: #fff; }
.side-nav a.on { background: rgba(214, 120, 76, .2); color: #fff; font-weight: 650; }
.side-nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side-nav .count { background: #d0663f; }
.ni { width: 18px; height: 18px; flex: none; background-color: #bfa58b; }
.side-nav a.on .ni, .side-nav a:hover .ni { background-color: #f3c27d; }
.side-user { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 14px 16px; border-top: 1px solid #3d2c1f; }
.side-user .avatar { background: #4a3324; color: #f3c27d; }
.side-user-text { min-width: 0; line-height: 1.3; }
.side-user-text b { display: block; color: #fff3e3; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { color: #a8927d; font-size: 12px; }
.side-user-actions { grid-column: 1 / -1; display: flex; gap: 14px; font-size: 13px; padding-top: 6px; }
.side-user-actions a, .side-user-actions .link-btn { color: #d9b991; }
.scrim { display: none; }
.a-main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.a-top { display: none; }
.a-content { width: 100%; max-width: 1180px; padding: 26px 32px 48px; }

.avatar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); font-weight: 700; font-size: 15px; font-family: var(--serif); }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 24px; background: linear-gradient(145deg, var(--primary-50), var(--gold-50)); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-50); opacity: .8; }
a.stat:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-weight: 600; font-size: 13px; position: relative; z-index: 1; }
.stat b { font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -.01em; position: relative; z-index: 1; }
.stat-money { font-size: 24px !important; }
.stat span { color: var(--muted); font-size: 12.5px; position: relative; z-index: 1; }
.stat-danger b { color: var(--danger); }

.todo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.todo-grid .card { margin: 0; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
.row-link:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
a.row-link:hover { text-decoration: none; background: var(--surface-2); color: var(--ink); }
.row-link b { display: block; font-size: 14.5px; }
.row-link small { display: block; }
.row-link.is-today { background: linear-gradient(90deg, var(--gold-50), transparent); }
.row-link .date-chip { width: 44px; min-height: 42px; }
.row-link .date-chip b { font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.filters input, .filters select { width: auto; min-height: 38px; padding: 7px 10px; font-size: 14px; }
.filters select { padding-right: 32px; }
.filter-search { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card.table-wrap { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 650; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffaf3; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-compact td, .table-compact th { padding: 7px 10px; }
.table-compact input { min-height: 34px; padding: 5px 8px; font-size: 14px; }
.table tr.is-muted td { color: var(--muted); }
.table tr.row-error td { background: #fff6f4; }
.table tr.row-warn td { background: #fffbf2; }
.table td p { margin: 0; }
.strong-link { font-weight: 650; color: var(--ink); }
.strong-link:hover { color: var(--primary); }

.profile-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.profile-head h1 { margin: 0 0 4px; font-size: 22px; }
.profile-head h1 small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .06em; margin-left: 6px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.detail-grid > .card, .detail-grid > .stack > .card { margin: 0; }
.detail-grid + .card, .detail-grid + section { margin-top: 16px; }
.detail-grid-proof { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.kv-2 { grid-template-columns: max-content 1fr; }
.timeline { list-style: none; margin: 0; padding: 6px 20px 14px; }
.timeline li { display: grid; grid-template-columns: 128px 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }
.tl-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-who { color: var(--muted); font-size: 12.5px; }

.app-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); }
.app-card:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.app-card p { margin: 2px 0 0; }
.claim-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
.claim-who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.claim-who p { margin: 2px 0 0; }
.claim-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.proof { display: block; margin-bottom: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.proof img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #f2ebe2; }

.event-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); }
.event-row:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.event-row b, .event-row small { display: block; }
.event-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.progress { width: 140px; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.status-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.status-bar .small { margin-right: 6px; }

.checkin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.checkin-head h1 { font-size: 20px; margin: 0; }
.checkin-head p { margin: 0; }
.checkin-count { display: flex; align-items: baseline; gap: 6px; }
.checkin-count b { font-size: 36px; color: var(--success); line-height: 1; }
.checkin-search { display: flex; gap: 8px; margin-bottom: 14px; }
.checkin-search input { min-height: 52px; font-size: 18px; border-radius: 14px; }
.checkin-search .btn { min-height: 52px; padding: 0 22px; border-radius: 14px; }
.checkin-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.checkin-item p { margin: 2px 0 0; }
.checkin-item.is-done { background: #f6fbf7; border-color: #d4e8da; }

.role-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.role-super { background: var(--primary-50); color: var(--primary-700); }
.role-secretary { background: var(--info-50); color: var(--info); }
.role-finance { background: var(--gold-50); color: var(--gold-600); }
.role-supervisor { background: #efeaf6; color: #5c4a85; }
.role-checkin { background: var(--success-50); color: var(--success); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.role-grid-1 { grid-template-columns: 1fr; }
.role-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface-2); }
.role-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.role-option b { display: block; font-size: 14px; }
.role-option small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }

.roster-line { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.roster-line:last-child { border-bottom: 0; }
.roster-pos { flex: none; width: 76px; color: var(--gold-600); font-weight: 650; }
.roster-group { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.roster-group:last-child { border-bottom: 0; }
.roster-pos-title { font-size: 13.5px; color: var(--gold-600); margin: 0 0 8px; letter-spacing: .08em; }
.roster-people { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.person-chip a { color: var(--ink); font-weight: 600; }
.chip-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.chip-x:hover { background: var(--danger-50); color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-grid .card { margin: 0; }
.dash-wide { grid-column: 1 / -1; }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 190px; padding-top: 8px; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.vbar-col { width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d4743f, var(--primary)); }
.vbar:last-child .vbar-col { background: linear-gradient(180deg, var(--gold), #d4743f); }
.vbar-n { font-size: 12px; font-weight: 700; color: var(--ink-2); min-height: 18px; }
.vbar-l { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.hbar-l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4743f, var(--primary)); min-width: 4px; }
.hbar-gold { background: linear-gradient(90deg, #e2b05c, var(--gold-600)); }
.hbar-n { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; font-size: 12.5px; font-weight: 650; }
.split-seg { display: grid; place-items: center; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; padding: 0 6px; }
.seg-男 { background: #9a5a3a; }
.seg-女 { background: #d08a3e; }
.seg-未填 { background: #c7b8a6; }

.toc { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; position: sticky; top: 8px; z-index: 5; }
.toc a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.toc a:hover { background: var(--bg-2); text-decoration: none; color: var(--primary-700); }
section[id] { scroll-margin-top: 72px; }
.paynow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.dict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.export-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; margin: 0; color: var(--ink); }
.export-card:hover { text-decoration: none; color: var(--ink); border-color: var(--primary-100); box-shadow: var(--shadow); }
.export-card b { font-size: 16px; }
.export-card-strong { background: linear-gradient(150deg, #fff, var(--gold-50)); border-color: #f0dcb5; }
.export-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); position: relative; margin-bottom: 4px; }
.export-icon::after { content: ""; position: absolute; inset: 10px; background: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .nav-toggle:checked ~ .side { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(30, 18, 10, .45); }
  .a-main { margin-left: 0; }
  .a-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    background: rgba(250, 246, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .a-top-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 0 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; flex: none; }
  .menu-btn span { height: 2px; border-radius: 2px; background: var(--ink); }
  .a-content { padding: 18px 16px 40px; }
  .todo-grid, .detail-grid, .detail-grid-proof, .dash-grid, .dict-grid, .export-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 21px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .stat-money { font-size: 19px !important; }
  .card-pad { padding: 16px; }
  .split-links { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .hbar { grid-template-columns: 84px 1fr 30px; }
  .vbars { gap: 4px; height: 160px; }
  .vbar-l { font-size: 10px; }
  .mc-name { font-size: 26px; }
  .mc-qr { width: 104px; }
  .mc-foot { grid-template-columns: 1fr 1fr; }
  .mc-live { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .receipt { padding: 24px 18px; }
  .receipt-title { flex-direction: column; gap: 4px; }
  .event-progress { flex-direction: column; align-items: flex-start; gap: 4px; }
  .progress { width: 100%; }
  .profile-head .actions { width: 100%; }
  .checkin-item .btn-lg { min-height: 44px; padding: 8px 16px; }
  .kv { grid-template-columns: 88px 1fr; }
}

/* ---------- 图标（内嵌 SVG，用 mask 着色） ---------- */
:root {
  --i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16.2c.7-1.4 1.8-2 3-2s2.3.6 3 2M14.5 10h4M14.5 13.5h3'/%3E%3C/svg%3E");
  --i-pay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2.5'/%3E%3Cpath d='M3 10.5h18M15.5 15h2.5'/%3E%3C/svg%3E");
  --i-event: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 14h2M14 14h2M8 17.5h2'/%3E%3C/svg%3E");
  --i-me: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.5-4 3.8-6 8-6s7.5 2 8 6'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7v8.5a1.5 1.5 0 0 1-1.5 1.5h-4.5v-6h-5v6H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3C/svg%3E");
  --i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.4-3.4 3-5.5 6.5-5.5s6.1 2.1 6.5 5.5'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3Cpath d='M17.5 14.5c2.3 0 4 1.4 4.3 4'/%3E%3C/svg%3E");
  --i-inbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13 6 5h12l3 8v5.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3Cpath d='M3 13h5l1.2 3h5.6l1.2-3h5'/%3E%3C/svg%3E");
  --i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.2 4.2 0 0 0 6 0l3-3a4.2 4.2 0 0 0-6-6l-1 1'/%3E%3Cpath d='M14 10a4.2 4.2 0 0 0-6 0l-3 3a4.2 4.2 0 0 0 6 6l1-1'/%3E%3C/svg%3E");
  --i-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l4.5 4L12 5l4.5 7.5L21 8.5 19 19H5z'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E");
  --i-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5V6a2 2 0 0 1 2-2h11'/%3E%3Crect x='3' y='7' width='18' height='13' rx='2.5'/%3E%3Cpath d='M16 13.5h2.5'/%3E%3C/svg%3E");
  --i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3Cpath d='M9 15l2 2 4-4'/%3E%3C/svg%3E");
  --i-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11M10 20V5M16 20v-6M21 20H3'/%3E%3C/svg%3E");
  --i-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7.5 8.5 12 4l4.5 4.5M4 15v3.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V15'/%3E%3C/svg%3E");
  --i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M4 15v3.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V15'/%3E%3C/svg%3E");
  --i-log: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E");
  --i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M16.5 6.5l3 3M14 9l2 2'/%3E%3C/svg%3E");
  --i-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
  --i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.3 2.8 2.8L16.2 9.5'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E");
  --i-wait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 19.5 6v5.5c0 4.7-3.2 8-7.5 9.5-4.3-1.5-7.5-4.8-7.5-9.5V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.5'/%3E%3Cpath d='M5 9v9.5A1.5 1.5 0 0 0 6.5 20h11a1.5 1.5 0 0 0 1.5-1.5V9M10 13h4'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6.5M12 17v.1'/%3E%3C/svg%3E");
}
.ti, .ni, .feature-icon::after, .big-icon::after, .qi::after, .upload-icon::after, .verify-mark::after, .export-icon::after {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.ti { display: block; background-color: currentColor; }
.ti-card { -webkit-mask-image: var(--i-card); mask-image: var(--i-card); }
.ti-pay { -webkit-mask-image: var(--i-pay); mask-image: var(--i-pay); }
.ti-event { -webkit-mask-image: var(--i-event); mask-image: var(--i-event); }
.ti-me { -webkit-mask-image: var(--i-me); mask-image: var(--i-me); }
.ti-settings { -webkit-mask-image: var(--i-gear); mask-image: var(--i-gear); }
.ni-home { -webkit-mask-image: var(--i-home); mask-image: var(--i-home); }
.ni-users { -webkit-mask-image: var(--i-users); mask-image: var(--i-users); }
.ni-inbox { -webkit-mask-image: var(--i-inbox); mask-image: var(--i-inbox); }
.ni-link { -webkit-mask-image: var(--i-link); mask-image: var(--i-link); }
.ni-crown { -webkit-mask-image: var(--i-crown); mask-image: var(--i-crown); }
.ni-wallet { -webkit-mask-image: var(--i-wallet); mask-image: var(--i-wallet); }
.ni-calendar { -webkit-mask-image: var(--i-calendar); mask-image: var(--i-calendar); }
.ni-chart { -webkit-mask-image: var(--i-chart); mask-image: var(--i-chart); }
.ni-upload { -webkit-mask-image: var(--i-upload); mask-image: var(--i-upload); }
.ni-download { -webkit-mask-image: var(--i-download); mask-image: var(--i-download); }
.ni-log { -webkit-mask-image: var(--i-log); mask-image: var(--i-log); }
.ni-key { -webkit-mask-image: var(--i-key); mask-image: var(--i-key); }
.ni-gear { -webkit-mask-image: var(--i-gear); mask-image: var(--i-gear); }
.fi-card::after { -webkit-mask-image: var(--i-card); mask-image: var(--i-card); }
.fi-pay::after { -webkit-mask-image: var(--i-pay); mask-image: var(--i-pay); }
.fi-event::after { -webkit-mask-image: var(--i-event); mask-image: var(--i-event); }
.bi-mail::after { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.bi-ok::after { -webkit-mask-image: var(--i-ok); mask-image: var(--i-ok); }
.bi-warn::after { -webkit-mask-image: var(--i-warn); mask-image: var(--i-warn); }
.bi-wait::after { -webkit-mask-image: var(--i-wait); mask-image: var(--i-wait); }
.bi-shield::after { -webkit-mask-image: var(--i-shield); mask-image: var(--i-shield); }
.qi-pay::after { -webkit-mask-image: var(--i-pay); mask-image: var(--i-pay); }
.qi-event::after { -webkit-mask-image: var(--i-event); mask-image: var(--i-event); }
.qi-me::after { -webkit-mask-image: var(--i-me); mask-image: var(--i-me); }
.qi-settings::after { -webkit-mask-image: var(--i-gear); mask-image: var(--i-gear); }
.upload-icon::after { -webkit-mask-image: var(--i-upload); mask-image: var(--i-upload); }
.verify-ok .verify-mark::after { -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }
.verify-bad .verify-mark::after { -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.ei-users::after { -webkit-mask-image: var(--i-users); mask-image: var(--i-users); }
.ei-wallet::after { -webkit-mask-image: var(--i-wallet); mask-image: var(--i-wallet); }
.ei-box::after { -webkit-mask-image: var(--i-box); mask-image: var(--i-box); }

/* ---------- 界面审查后的调整 ---------- */
/* 后台表单里的普通按钮不拉满整行 */
.form > .btn:not(.btn-block), .form > button:not(.btn-block) { align-self: flex-start; }
/* 会员名单：姓名、英文名、领域不折行 */
.cell-name { white-space: nowrap; }
.cell-name small { display: block; font-size: 12px; letter-spacing: .02em; }
.cell-clip { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 缴费记录卡片 */
.pay-history { padding: 0 16px; }
.pay-history .card-empty { padding: 16px 0; }
/* 活动详情顶部的日期块：在浅色渐变上用白底区分 */
.event-banner .date-chip { background: #fff; box-shadow: var(--shadow-sm); }
/* 375px 宽的手机上二维码保持在姓名右侧，只在更窄的屏幕上换行 */
@media (max-width: 380px) {
  .mc-body { flex-direction: row; align-items: center; }
  .mc-qr { align-self: auto; width: 104px; }
}
@media (max-width: 340px) {
  .mc-body { flex-direction: column; align-items: flex-start; }
  .mc-qr { align-self: center; width: 150px; }
}
/* 出错的字段标红 */
.field:has(.field-error) input, .field:has(.field-error) select, .field:has(.field-error) textarea { border-color: #e2a59e; background: #fffafa; }
.field:has(.field-error) > span:first-child { color: var(--danger); }
/* 角色标签、统计卡片、当前状态 */
.role-chip { white-space: nowrap; }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .stats.stats-3 { gap: 8px; }
  .stats.stats-3 .stat { padding: 10px 12px; }
  .stats.stats-3 .stat span { display: none; }
}
.btn.is-current { cursor: default; pointer-events: none; box-shadow: none; }
/* "未生效"印章放在姓名和二维码之间，不遮挡二维码 */
.mc-stamp { right: auto; left: 30%; top: 38%; padding: 2px 10px; border-width: 2.5px; font-size: 21px; z-index: 2; }
@media (max-width: 340px) { .mc-stamp { left: 40%; top: 22%; } }

/* ---------- 登录增强输入框与国家区号组合 ---------- */
.form-group-lg {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.input-box-lg {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-box-lg:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 71, 42, .14);
}
.input-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.box-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 3px;
  letter-spacing: .01em;
}
.box-input {
  width: 100% !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  outline: none !important;
}
.box-input::placeholder {
  color: #b5a493;
  font-size: 15px;
  font-weight: 400;
}

.phone-combo {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  overflow: hidden;
}
.phone-combo:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 71, 42, .14);
}
.phone-combo-prefix {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  flex: none;
  max-width: 145px;
}
.phone-combo-select {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  color: var(--ink) !important;
  cursor: pointer;
  padding: 0 18px 0 0 !important;
  min-height: 100% !important;
  outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4535' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0 center !important;
  background-size: 13px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-combo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  min-width: 0;
}

.password-toggle-btn {
  background: none;
  border: none;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.password-toggle-btn:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.code-combo {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.code-input-box {
  flex: 1;
  min-width: 0;
}
.btn-send-code {
  min-height: 58px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.btn-send-code:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary-700);
}
.btn-send-code:disabled {
  opacity: .5;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: var(--bg-2);
}

/* ---------- 演示模式 ---------- */
.demobar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 7px 16px; background: #2b1d14; color: #eadbc8; font-size: 13px; line-height: 1.4; }
.demobar-tag { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--gold); color: #2b1d14; font-weight: 700; font-size: 12px; }
.demobar-text { flex: 1; min-width: 180px; }
.demobar-text b { color: #fff; }
.demobar-switch select { width: auto; min-height: 30px; padding: 3px 30px 3px 10px; font-size: 13px; border-radius: 8px; color: #fff; background-color: #3d2b1f; border-color: #5c4433; }
.demobar-switch select:focus { box-shadow: none; border-color: var(--gold); background-color: #3d2b1f; }
.demobar-link { flex: none; color: #f3c27d; font-weight: 600; }
.demobar-link:hover { color: #fff; }
.m-main-wide { max-width: 1000px; }
.demo-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 26px; margin: 4px 0 22px;
  background: linear-gradient(135deg, var(--primary-50), var(--gold-50)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.demo-hero h1 { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; margin: 10px 0 8px; }
.demo-hero p { color: var(--ink-2); margin: 0; }
.demo-kicker { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.demo-facts { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.demo-facts li { margin-bottom: 3px; }
.demo-qr { text-align: center; }
.demo-qr .qr-box { width: 164px; margin: 0 auto 6px; }
.demo-qr p { margin: 0; font-size: 13px; color: var(--muted); }
.demo-group-desc { margin: -4px 2px 10px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.persona { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.persona:hover { border-color: var(--primary-100); box-shadow: var(--shadow); }
.persona-head { display: flex; align-items: center; gap: 10px; }
.persona-head b { display: block; font-size: 15px; }
.persona-head small { color: var(--muted); }
.persona-hint { flex: 1; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.persona-login { margin: -4px 0 0; }
.persona .btn { align-self: flex-start; }
.demo-flow ol { margin: 0 0 8px; padding-left: 20px; }
.demo-flow li { margin-bottom: 6px; }
.demo-reset { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.hero-demo { margin-top: 8px; }
@media (max-width: 640px) {
  .demo-hero { grid-template-columns: 1fr; padding: 18px; }
  .demo-qr { display: none; }
  .demobar-text { min-width: 0; flex-basis: 100%; order: 3; font-size: 12px; }
}
