/* ================= 基础变量与重置 ================= */
:root {
  --brand: #e8492b;
  --brand-dark: #c8381f;
  --brand-soft: #fff0ec;
  --teal: #0f5c66;
  --teal-dark: #0a3f48;
  --teal-soft: #e6f2f3;
  --gold: #f2b441;
  --ink: #1b2a30;
  --ink-2: #4a5c64;
  --ink-3: #84959c;
  --line: #e3e9eb;
  --bg: #eff2f3;
  --card: #ffffff;
  --ok: #17845a;
  --ok-soft: #e6f6ee;
  --warn: #c47b12;
  --warn-soft: #fff5e3;
  --danger: #d33b32;
  --shadow: 0 6px 24px rgba(16, 48, 58, .08);
  --shadow-lg: 0 18px 50px rgba(16, 48, 58, .16);
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }
.muted { color: var(--ink-3); }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .3px; }

/* ================= 通用组件 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 9px; font-weight: 600; font-size: 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { box-shadow: 0 4px 14px rgba(16,48,58,.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 7px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 11px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--brand); margin-left: 3px; }
.input {
  width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,92,102,.1); }
.input::placeholder { color: #adb9be; }
select.input {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2384959c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.input:invalid { color: #adb9be; }
.input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(211,59,50,.08); }
.field-hint { font-size: 12px; margin-top: 6px; color: var(--ink-3); min-height: 17px; }
.field-hint.ok { color: var(--ok); }
.field-hint.bad { color: var(--danger); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-gray { background: #f0f3f4; color: #6d7d84; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #20343b; color: #fff; padding: 10px 18px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow-lg); animation: toastIn .22s ease; max-width: 88vw; }
.toast.err { background: #b9342b; }
.toast.ok { background: #14734d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(12, 30, 36, .55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 430px; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .22s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 18px 20px 12px; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 0 20px 18px; }
.modal-foot { padding: 12px 20px 18px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }
.icon-btn { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); font-size: 20px; line-height: 1; }
.icon-btn:hover { background: #f2f5f6; color: var(--ink); }

/* ================= 报名 H5 ================= */
.h5-shell { max-width: 460px; margin: 0 auto; background: #f6f8f8; min-height: 100vh; box-shadow: 0 0 60px rgba(10,40,48,.1); position: relative; overflow: hidden; }
.h5-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.h5-brand { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.h5-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242,180,65,.3); }
.h5-admin-link { font-size: 12px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 5px 11px; border-radius: 20px; backdrop-filter: blur(6px); }

.hero { position: relative; height: 340px; background: linear-gradient(170deg, #0b3547 0%, #12555f 46%, #3b7f79 70%, #e9a45c 100%); overflow: hidden; }
.hero-sun { position: absolute; width: 150px; height: 150px; right: 34px; top: 74px; border-radius: 50%; background: radial-gradient(circle, rgba(255,220,150,.95) 0%, rgba(255,190,110,.55) 45%, rgba(255,180,100,0) 72%); }
.hero-cloud { position: absolute; height: 30px; border-radius: 30px; background: rgba(255,255,255,.14); filter: blur(5px); }
.hero svg.mountains { position: absolute; bottom: 0; left: 0; width: 100%; height: 190px; }
.hero-content { position: relative; z-index: 2; padding: 64px 20px 0; color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1.5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 4px 11px; border-radius: 20px; }
.hero h1 { font-size: 25px; line-height: 1.35; margin: 12px 0 6px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero h1 em { font-style: normal; color: #ffd68a; }
.hero-sub { font-size: 12px; opacity: .88; margin: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.hero-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; background: rgba(9,42,52,.42); border: 1px solid rgba(255,255,255,.2); padding: 5px 9px; border-radius: 7px; backdrop-filter: blur(4px); }

.h5-body { padding: 14px 14px 34px; position: relative; z-index: 3; margin-top: -14px; }
.section { margin-bottom: 14px; padding: 16px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.section-title::before { content: ''; width: 3px; height: 15px; border-radius: 3px; background: var(--brand); }
.section-title small { font-weight: 500; font-size: 11px; color: var(--ink-3); margin-left: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; padding: 11px 4px; background: #f7f9f9; border-radius: 10px; }
.stat b { display: block; font-size: 17px; color: var(--teal); line-height: 1.2; }
.stat span { font-size: 10.5px; color: var(--ink-3); }

.info-list { display: grid; gap: 9px; }
.info-row { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.info-row .ico { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.info-row .num { flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 2px; }

.kit-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.kit { font-size: 11.5px; padding: 5px 10px; border-radius: 7px; background: #fff8ea; color: #96690e; border: 1px solid #f6e3bd; }

/* 沿途保障：补给 / 医疗两块独立说明 */
.support-block { border-radius: 11px; padding: 13px 13px 11px; margin-bottom: 11px; border: 1px solid; }
.support-block.supply { background: #fffaf1; border-color: #f3dfba; }
.support-block.medical { background: #eef7f6; border-color: #bfded9; }
.support-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.support-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; }
.support-block.supply .support-ico { background: #c9902b; }
.support-block.medical .support-ico { background: var(--teal); }
.support-title { flex: 1; min-width: 0; }
.support-title b { display: block; font-size: 13.5px; line-height: 1.35; }
.support-block.supply .support-title b { color: #8a6115; }
.support-block.medical .support-title b { color: var(--teal-dark); }
.support-title small { display: block; font-size: 9.5px; letter-spacing: 1.2px; color: var(--ink-3); }
.support-count { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.8); }
.support-block.supply .support-count { color: #a2761c; }
.support-block.medical .support-count { color: var(--teal); }
.support-list { margin: 0; padding-left: 17px; }
.support-list li { font-size: 12.2px; line-height: 1.7; color: var(--ink-2); margin-bottom: 3px; }
.support-list li::marker { color: var(--ink-3); }
.support-list b { color: var(--ink); }
.support-note { margin: 2px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--ink-3); background: #f7f9f9; border-radius: 8px; padding: 9px 11px; }

/* 身份证服务端核验结果条 */
.id-verify { border-radius: 10px; padding: 10px 12px; font-size: 12.2px; margin: -4px 0 14px; line-height: 1.6; display: none; }
.id-verify.show { display: block; }
.id-verify.ok { background: var(--ok-soft); border: 1px solid #b9e4cd; color: #146c4a; }
.id-verify.bad { background: #fff0ee; border: 1px solid #f3c4bd; color: #b5342a; }
.id-verify.wait { background: #f4f7f8; border: 1px solid var(--line); color: var(--ink-3); }
.id-verify .iv-title { font-weight: 700; display: block; margin-bottom: 3px; }
.id-verify .iv-meta { font-size: 11.5px; opacity: .9; }
.iv-checks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.iv-check { font-size: 10.5px; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.06); }
.iv-check.no { background: #ffe3df; color: #b5342a; border-color: #f3c4bd; }
.iv-check.yes { color: #146c4a; }

.fee-banner { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 11px; background: linear-gradient(100deg, #fff3ed, #fff9f4); border: 1px dashed #f3b59f; margin-bottom: 16px; }
.fee-banner.free { background: linear-gradient(100deg, #e8f6f3, #f4fbf9); border: 1px solid #b9e2d8; }
.fee-banner.free .fee-text b { color: #0f6b5c; }
.fee-banner.free .fee-amount { color: #0f6b5c; }
.fee-amount { font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1; white-space: nowrap; }
.fee-amount small { font-size: 13px; }
.fee-text b { display: block; font-size: 13px; }
.fee-text span { font-size: 11.5px; color: var(--ink-2); }

.tabs { display: flex; background: #e9eeef; padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tabs button { flex: 1; height: 34px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tabs button.active { background: #fff; color: var(--teal); box-shadow: 0 2px 8px rgba(16,48,58,.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.agree { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; margin: 4px 0 16px; }
.agree input { margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--brand); flex: none; }
.agree a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* 参赛声明（免责声明）：须知入口 + 全文弹窗，H5 与后台共用 */
.disclaimer-entry { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-top: 12px; padding: 11px 12px; border: 1px solid #f2dfbd; background: #fffaf0; border-radius: 10px; cursor: pointer; }
.disclaimer-entry:hover { background: #fff5e2; }
.de-ico { font-size: 20px; flex: none; }
.de-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.de-text b { font-size: 12.5px; color: #8a5d0c; }
.de-text small { font-size: 11px; line-height: 1.5; color: #a07b3c; }
.de-arrow { font-size: 12px; color: #a2731d; white-space: nowrap; flex: none; }
.modal-wide { max-width: 560px; }
.disclaimer-meta { font-size: 11.5px; color: var(--ink-3); padding: 2px 0 9px; }
.disclaimer-scroll { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; font-size: 12px; line-height: 1.85; color: var(--ink-2); }
.disclaimer-title { font-size: 15px; font-weight: 700; text-align: center; color: var(--ink); }
.disclaimer-sub { font-size: 11.5px; text-align: center; color: var(--ink-3); margin-bottom: 10px; }
.disclaimer-list { margin: 0; padding-left: 19px; }
.disclaimer-list li { margin-bottom: 8px; text-align: justify; }
.disclaimer-confirm { margin-top: 10px; padding: 9px 10px; background: #fff8ea; border-radius: 8px; font-weight: 600; color: #7a5712; }
.disclaimer-sign { display: flex; gap: 30px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.disclaimer-tip { font-size: 11px; color: var(--ink-3); line-height: 1.6; margin: 9px 0 0; }
.disclaimer-loading { text-align: center; padding: 24px 0; color: var(--ink-3); }

/* ============ 首屏「报名前 3 项告知」门禁 ============
   默认显示（HTML 无 display:none），由 <head> 内联脚本在已知晓/ack=1 时
   给 html 加 .gate-dismissed，避免页面内容先闪现再弹窗。 */
html:not(.gate-dismissed) body { overflow: hidden; }
html.gate-dismissed .gate-mask { display: none !important; }
/* 门禁期间打开《参赛声明》全文时，全文弹窗须盖在门禁之上 */
html:not(.gate-dismissed) #disclaimerMask { z-index: 320; }
.gate-mask { z-index: 300; background: rgba(8, 31, 39, .74); padding: 14px; }
.gate-modal { max-width: 430px; max-height: 92vh; display: flex; flex-direction: column; animation: popIn .26s ease; }
.gate-head { padding: 18px 20px 12px; text-align: center; background: linear-gradient(160deg, #0f5c66, #0b3547); color: #fff; border-radius: 16px 16px 0 0; }
.gate-badge { display: inline-block; font-size: 10.5px; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .16); color: #ffe0b0; }
.gate-head h2 { font-size: 18px; margin: 9px 0 5px; letter-spacing: .3px; }
.gate-head p { font-size: 11.5px; line-height: 1.6; color: #c6e0df; margin: 0; }
.gate-body { padding: 14px 18px 4px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.gate-items { display: flex; flex-direction: column; gap: 9px; }
.gate-item { display: flex; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.gate-no { flex: none; width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700; }
.gate-item b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
.gate-item p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); text-align: justify; }
.gate-note { font-size: 11px; line-height: 1.7; color: #96690e; background: #fffaf0; border: 1px solid #f6e3bd; border-radius: 9px; padding: 9px 11px; margin: 11px 0 0; }

/* 弹窗内的 App 推广条（首屏告知顶部） */
.gate-app {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 10px;
  border-radius: 11px; border: 1px solid #d3e6e8;
  background: linear-gradient(135deg, #eaf5f6, #e2eff0);
}
.gate-app-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #12707b, #0b3547);
  box-shadow: 0 3px 8px rgba(11, 53, 71, .22);
}
.gate-app-txt { min-width: 0; }
.gate-app-txt b { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.gate-app-txt span {
  display: block; font-size: 10.5px; line-height: 1.5; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gate-app-btn {
  margin-left: auto; flex: none; height: 28px; padding: 0 12px;
  border-radius: 8px; background: var(--teal); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2px;
}
.gate-app-btn:active { transform: translateY(1px); }
.gate-app-btn[disabled] { background: #b9ccce; }

/* App 下载二维码弹窗 */
#appMask { z-index: 340; }   /* 需高于首屏告知层(300)与声明层(320)，因其入口在告知弹窗内 */
.app-qr {
  width: 206px; margin: 2px auto 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 48, 58, .07);
}
.app-qr img { display: block; width: 100%; height: auto; border-radius: 4px; }
.app-qr-tip { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); margin: 13px 0 0; }
.app-qr-sub { font-size: 11px; line-height: 1.6; color: var(--ink-3); margin: 5px 0 0; }
a.btn { text-decoration: none; }
.gate-foot { padding: 12px 18px 16px; }
.gate-foot .btn { font-size: 12.5px; }
.footer-link { margin-top: 8px; font-size: 11px; color: #b3c0c4; text-decoration: underline; text-underline-offset: 2px; }
.footer-link:hover { color: #fff; }

/* 全程陪同成人区块 */
.form-block { border-top: 1px dashed var(--line); margin: 16px 0 14px; padding-top: 14px; }
.block-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; }
.block-title .req { color: var(--brand); margin-left: 3px; }
.block-hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin-bottom: 12px; }

.success-card { text-align: center; padding: 26px 18px 22px; }
.success-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 0 auto 12px; }
.success-card h3 { margin: 0 0 4px; font-size: 19px; }
.ticket { background: linear-gradient(135deg, #0d4c57, #12706f); color: #fff; border-radius: 12px; padding: 16px; margin: 18px 0 14px; text-align: left; position: relative; overflow: hidden; }
.ticket::after { content: ''; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid rgba(255,255,255,.06); }
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; opacity: .85; margin-bottom: 8px; }
.ticket-code { font-size: 30px; font-weight: 800; letter-spacing: 7px; color: #ffd98c; }
.ticket-id { font-size: 11.5px; opacity: .8; margin-top: 8px; }
.ticket-note { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }

.h5-footer { text-align: center; font-size: 11px; color: var(--ink-3); padding: 4px 20px 24px; line-height: 1.8; }

/* ================= 后台管理 ================= */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #174e59, #0b2b36 65%); }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); }
.login-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.login-card h2 { margin: 0 0 4px; font-size: 20px; }
.login-card p { margin: 0 0 20px; font-size: 12.5px; color: var(--ink-3); }
.login-tip { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); background: #f6f8f9; padding: 9px 11px; border-radius: 8px; }

.admin-layout { min-height: 100vh; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 30; }
.admin-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.admin-header h1 { font-size: 16px; margin: 0; font-weight: 700; }
.admin-header .sub { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.admin-header .spacer { flex: 1; }
.admin-main { max-width: 1340px; margin: 0 auto; padding: 20px 24px 40px; }
.admin-notice { display: flex; align-items: center; gap: 9px; background: #fff8e9; border: 1px solid #f5e2b8; color: #8a6517; font-size: 12.5px; padding: 9px 13px; border-radius: 9px; margin-bottom: 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.kpi.brand::before { background: var(--brand); }
.kpi.gold::before { background: var(--gold); }
.kpi.ok::before { background: var(--ok); }
.kpi.gray::before { background: #b8c5c9; }
.kpi span { font-size: 11.5px; color: var(--ink-3); display: block; }
.kpi b { font-size: 25px; line-height: 1.3; display: block; font-weight: 750; }
.kpi small { font-size: 11px; color: var(--ink-3); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { position: relative; width: 250px; }
.toolbar .search .input { height: 36px; padding-left: 32px; font-size: 13px; }
.toolbar .search::before { content: '⌕'; position: absolute; left: 11px; top: 5px; font-size: 18px; color: var(--ink-3); }
.seg { display: flex; gap: 4px; flex-wrap: wrap; background: #e9eeef; padding: 3px; border-radius: 9px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.seg button.active { background: #fff; color: var(--teal); box-shadow: 0 1px 5px rgba(16,48,58,.1); }
.toolbar .spacer { flex: 1; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 1710px; font-size: 12.5px; }
table.data th { background: #f7f9fa; text-align: left; font-weight: 600; color: var(--ink-2); padding: 10px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
table.data td { padding: 10px 10px; border-bottom: 1px solid #f0f3f4; white-space: nowrap; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfc; }
/* 操作列固定右侧，横向滚动时始终可操作 */
table.data th:last-child, table.data td:last-child {
  position: sticky; right: 0; background: #fff; z-index: 3;
  box-shadow: -6px 0 10px rgba(16, 48, 58, .04);
}
table.data th:last-child { z-index: 4; background: #f7f9fa; }
table.data tbody tr:hover td:last-child { background: #fafcfc; }
.cell-name { font-weight: 650; }
.cell-sub { font-size: 11px; color: var(--ink-3); }
.cipher { display: inline-flex; align-items: center; gap: 5px; font-family: "SFMono-Regular", Consolas, monospace; background: #f3f6f7; border: 1px dashed #d3dcdE; padding: 2px 7px; border-radius: 6px; color: #3d555d; }
.cipher .lock { color: var(--teal); font-size: 10px; }
.cell-actions { display: flex; gap: 5px; }
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); font-size: 13px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.choice { border: 1.5px solid var(--line); border-radius: 11px; padding: 13px; cursor: pointer; transition: .15s; }
.choice:hover { border-color: #9fb9bd; }
.choice.selected { border-color: var(--teal); background: var(--teal-soft); }
.choice b { display: block; font-size: 14px; margin-bottom: 2px; }
.choice span { font-size: 11.5px; color: var(--ink-2); }
.choice .tick { float: right; color: var(--teal); font-weight: 700; }
.checkin-summary { background: #f7f9fa; border-radius: 9px; padding: 11px 13px; font-size: 12.5px; margin-bottom: 14px; line-height: 1.9; }
.checkin-summary b { color: var(--teal); }

/* 报名二维码 */
.modal-foot .btn { white-space: nowrap; }
.qr-status { font-size: 12px; line-height: 1.7; border-radius: 9px; padding: 10px 12px; margin-bottom: 14px; }
.qr-status.ok { background: #eaf7f0; color: #0f6b45; border: 1px solid #bfe6d0; }
.qr-status.warn { background: #fff7e8; color: #8a5b06; border: 1px solid #f3dfae; }
.qr-status.bad { background: #fff0ee; color: #a4382b; border: 1px solid #f2c6bf; }
.qr-stage { display: flex; align-items: center; justify-content: center; gap: 24px; background: linear-gradient(135deg, #0f5c66, #10303a); border-radius: 13px; padding: 22px; }
.qr-frame { background: #fff; padding: 10px; border-radius: 10px; line-height: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.qr-frame canvas { display: block; max-width: 200px; width: auto; height: auto; image-rendering: pixelated; }
.qr-slogan { color: #fff; font-size: 14px; line-height: 2; letter-spacing: .5px; }
.qr-slogan b { font-size: 19px; }
.qr-link { margin-top: 10px; font-size: 11px; color: var(--ink-3); word-break: break-all; background: #f7f9fa; padding: 8px 10px; border-radius: 7px; }
.qr-tips { margin-top: 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.85; }
.qr-tips b { color: var(--teal); }

/* H5 前端 · 扫码分享报名 */
.share-card { background: linear-gradient(120deg, #f1fbf7, #ffffff); border: 1px solid #cfe9e1; }
.share-inner { display: flex; align-items: center; gap: 14px; }
.share-qr { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px; line-height: 0; }
.share-qr canvas { display: block; width: 108px; height: 108px; image-rendering: pixelated; }
.share-copy { min-width: 0; }
.share-copy h3 { font-size: 15px; margin: 0 0 6px; color: var(--teal); }
.share-copy p { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 9px; }
.share-note { margin-top: 10px; font-size: 11px; color: var(--ink-3); line-height: 1.7; border-top: 1px dashed #d9e9e4; padding-top: 9px; }
.share-qr-big { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; line-height: 0; }
.share-qr-big canvas { display: block; width: 210px; height: 210px; image-rendering: pixelated; }
.share-url { font-size: 11px; color: var(--ink-3); word-break: break-all; background: #f7f9fa; border-radius: 7px; padding: 8px 10px; margin: 10px 0; }
.share-tip { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; margin: 0; text-align: left; }
@media (max-width: 560px) { .qr-stage { flex-direction: column; gap: 14px; } .qr-slogan { text-align: center; } }

@media (min-width: 1500px) {
  .admin-main { max-width: 1560px; }
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .admin-main { padding: 14px; }
  .admin-header { padding: 0 14px; }
  .admin-header .sub { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar .search { width: 100%; }
  .seg { width: 100%; overflow-x: auto; }
}
