/* 永联实业 · AI入企黑客松 报名模块样式（signup.html 选手报名页 + reg-admin.html 审核后台）
   视觉沿用永联 H5：深色磨砂玻璃 + 金色 #F4CF95 / #E8B26A，标题用宋体；手机优先 */
:root {
  color-scheme: dark;
  --fg: #FFFCF6;
  --sub: rgba(255, 252, 246, .76);
  --mute: rgba(255, 252, 246, .55);
  --gold: #F4CF95;
  --gold-2: #E8B26A;
  --rose: #F6C1B0;
  --seal: #C23B35;
  --ink: #0E1116;
  --ok: #8EDDAA;
  --bad: #FF8F86;
  --line: rgba(255, 255, 255, .16);
  --field: rgba(255, 255, 255, .07);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "Avenir Next", "Helvetica Neue", "DIN Alternate", var(--sans);
  --ease: cubic-bezier(.22, .9, .25, 1);
  --pad: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
/* 底色只放在 html 上：body 若有背景，会盖住 z-index:-1 的满幅背景图 */
body { margin: 0; min-height: 100vh; color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.n { font-family: var(--num); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.sm { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 满幅背景 ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.scene i { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene .v { display: none; }
@media (max-aspect-ratio: 1/1) { .scene .h { display: none; } .scene .v { display: block; } }
.veil { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 50% 35%, rgba(8,10,16,.1) 0%, rgba(8,10,16,.45) 100%),
  linear-gradient(180deg, rgba(8,10,16,.55) 0%, rgba(8,10,16,.3) 28%, rgba(8,10,16,.5) 65%, rgba(8,10,16,.8) 100%); }
.grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"); }

/* ---------- 磨砂玻璃 ---------- */
.glass { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), rgba(12,14,24,.42); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(24px) saturate(1.4) brightness(.9); -webkit-backdrop-filter: blur(24px) saturate(1.4) brightness(.9);
  box-shadow: 0 24px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.24); border-radius: 22px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { color: #2A1A0C; background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); box-shadow: 0 12px 30px rgba(232,178,106,.3), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-glass { color: var(--fg); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
.btn-quiet { color: var(--sub); background: transparent; border-color: rgba(255,255,255,.24); }
.btn-danger { color: #FFE4E0; background: rgba(194,59,53,.55); border-color: rgba(255,143,134,.6); }
.btn-text { height: auto; padding: 6px 8px; color: var(--sub); font-weight: 600; border-radius: 10px; }
.btn-text:hover { color: var(--fg); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
@media (hover: hover) { .btn:not([disabled]):not(.btn-text):hover { transform: translateY(-1px); } .btn-glass:not([disabled]):hover { background: rgba(255,255,255,.16); } }

/* ---------- 顶栏 ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: rgba(14,17,22,.5); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .lg1 { height: 32px; width: auto; }
.brand i { width: 1px; height: 22px; background: rgba(255,255,255,.4); }
.brand .lg2 { height: 21px; width: auto; }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--sub); }
.who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(255,255,255,.3); }
.who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 10em; }
.who button, .bar-link { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); font-size: 13px; color: var(--fg); display: inline-flex; align-items: center; white-space: nowrap; }
.who button:hover, .bar-link:hover { background: rgba(255,255,255,.1); }
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .brand { gap: 8px; }
  .brand .lg1 { height: 25px; }
  .brand i { height: 16px; }
  .brand .lg2 { height: 16px; }
  .who img { display: none; }
  .who span { max-width: 4.6em; font-size: 13px; }
  .who button { padding: 0 10px; height: 30px; }
}
@media (max-width: 350px) { .brand .lg2, .brand i { display: none; } }

/* ---------- 页面 ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 14px var(--pad) calc(48px + env(safe-area-inset-bottom)); }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 13.5px; color: var(--sub); }
.back:hover { color: var(--fg); }
.intro { padding: 22px 0 26px; text-align: center; }
.kicker { font-size: 13px; letter-spacing: .32em; color: var(--gold); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.title { margin-top: 12px; font-family: var(--serif); font-weight: 900; font-size: clamp(42px, 11vw, 72px); line-height: 1.08; letter-spacing: .04em; text-shadow: 0 10px 60px rgba(0,0,0,.35); }
.title .g { background: linear-gradient(180deg, #FFF6E4 10%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.in .intro { padding: 12px 0 18px; }
body.in .title { font-size: clamp(30px, 7.5vw, 44px); }
body.in .pills { margin-top: 12px; }
.foot-s { padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--mute); }

.card { padding: clamp(20px, 5vw, 34px); }
.card + .card, .card + .fs, .fs + .fs, .fs + .card { margin-top: 14px; }
.center { text-align: center; }
.h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.35; letter-spacing: .02em; }
.h3s { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: .02em; }
.lead { margin-top: 10px; font-size: 14.5px; color: var(--sub); }
.hint { margin-top: 14px; font-size: 13px; color: var(--mute); text-align: center; }
.acts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.center-acts { justify-content: center; }

.alert { margin-bottom: 14px; padding: 12px 14px 12px 16px; border-radius: 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px;
  background: rgba(194,59,53,.3); border: 1px solid rgba(255,143,134,.5); color: #FFE6E2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.alert.info { background: rgba(244,207,149,.14); border-color: rgba(244,207,149,.42); color: var(--fg); }
.alert .x { flex: none; width: 28px; height: 28px; border-radius: 50%; color: inherit; opacity: .7; }
.alert .x:hover { opacity: 1; background: rgba(255,255,255,.1); }

.spin { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(42,26,12,.25); border-top-color: #2A1A0C; }
@keyframes spin { to { transform: rotate(360deg); } }
#vLoading .card { padding: 46px 20px; }

/* ---------- 未登录 ---------- */
.v2 { margin: 20px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.v2 li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.v2 .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(244,207,149,.12); border: 1px solid rgba(244,207,149,.3); }
.v2 svg { width: 24px; height: 24px; }
.v2 b { display: block; font-size: 15px; line-height: 1.4; }
.v2 span:not(.ic) { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
@media (max-width: 380px) { .v2 { grid-template-columns: 1fr; } }
.steps3 { margin-top: 14px; display: grid; gap: 14px; }
.steps3 li { display: flex; gap: 12px; align-items: flex-start; }
.steps3 .num { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-weight: 700; font-size: 13px; color: #2A1A0C; background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); }
.steps3 b { font-size: 15px; }
.steps3 p { font-size: 13px; color: var(--sub); }

/* ---------- 缺绑定 ---------- */
.checks { margin: 18px 0 20px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.checks .mk { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.checks .ok .mk { color: var(--ok); background: rgba(142,221,170,.16); border: 1px solid rgba(142,221,170,.5); }
.checks .no { border-color: rgba(255,143,134,.36); background: rgba(194,59,53,.1); }
.checks .no .mk { color: var(--bad); background: rgba(255,143,134,.14); border: 1px solid rgba(255,143,134,.5); }
.checks .ct { min-width: 0; flex: 1; }
.checks b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; line-height: 1.5; }
.checks .tag { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: var(--gold); border: 1px solid rgba(244,207,149,.45); }
.checks p { margin-top: 3px; font-size: 13.5px; color: var(--sub); line-height: 1.6; word-break: break-word; }
.bind-btns { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 报名表 ---------- */
.form-hd { margin: 0 4px 14px; }
.req-dot { color: var(--gold); font-style: normal; margin-left: 2px; }
.fs-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.fs-no { font-family: var(--num); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.fs-hd h3 { font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: .03em; }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; } .fld { grid-column: 1 / -1; } .fld.half { grid-column: auto; } }
.fld { min-width: 0; }
.lb { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.lb .req::after { content: "*"; color: var(--gold); margin-left: 3px; }
.opt { font-size: 12px; font-weight: 400; color: var(--mute); font-style: normal; }
.tk-count { margin-left: auto; font-family: var(--num); font-size: 12.5px; font-weight: 600; color: var(--sub); }
.tk-count.full { color: var(--gold); }
.inp { display: block; width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--field); border: 1px solid rgba(255,255,255,.22); color: var(--fg); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
textarea.inp { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.65; resize: vertical; }
select.inp { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23F4CF95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
select.inp option, select.inp optgroup { color: var(--fg); background: #1A1E28; }
.inp::placeholder { color: rgba(255,252,246,.36); }
.inp:hover { border-color: rgba(255,255,255,.34); }
.inp:focus { border-color: var(--gold); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(244,207,149,.18); }
.tip { margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--mute); line-height: 1.55; }
.tip-top { margin: -2px 0 12px; }
.cnt { flex: none; font-family: var(--num); font-size: 12px; font-variant-numeric: tabular-nums; }
.cnt.over { color: var(--bad); font-weight: 700; }
.msg { display: none; margin-top: 6px; font-size: 13px; color: var(--bad); line-height: 1.5; }
.fld.bad .msg { display: block; }
.fld.bad .inp { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,143,134,.16); }
.fld.bad .chip span, .fld.bad .ck, .fld.bad .tk { border-color: rgba(255,143,134,.65); }
.fld.bad .lb { color: #FFD3CE; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--field); border: 1px solid rgba(255,255,255,.22); font-size: 14px; line-height: 1.4; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip span:hover { border-color: rgba(255,255,255,.4); }
.chip input:checked + span { color: #2A1A0C; font-weight: 700; background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.tk-k { margin: 4px 0 10px; font-size: 12.5px; letter-spacing: .24em; color: var(--gold); }
.tracks + .tk-k { margin-top: 18px; }
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.tracks.fx3 { grid-template-columns: minmax(0,1fr); }
@media (min-width: 640px) { .tracks, .tracks.fx3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.tk { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 74px; padding: 12px 34px 12px 13px; text-align: left; border-radius: 16px;
  background: var(--field); border: 1px solid rgba(255,255,255,.2); transition: border-color .2s, background .2s, box-shadow .2s, opacity .2s, transform .2s var(--ease); }
.tk:hover { border-color: rgba(255,255,255,.4); }
.tk:active { transform: scale(.98); }
.tk b { font-family: var(--serif); font-weight: 900; font-size: clamp(15px, 4vw, 16px); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.tk small { font-size: 12px; color: var(--sub); line-height: 1.45; }
.tk.focus { border-color: rgba(255,226,180,.4); background: linear-gradient(160deg, rgba(244,207,149,.2), rgba(244,207,149,.05) 50%, rgba(255,255,255,.03)); }
.tk.focus::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tk .fx { font-size: 11px; line-height: 1.6; padding: 0 8px; border-radius: 999px; color: #2A1A0C; font-weight: 700; background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); }
.tk .ord { position: absolute; top: 10px; right: 10px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 12px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.35); }
.tk.on { border-color: var(--gold); background: linear-gradient(160deg, rgba(244,207,149,.34), rgba(232,178,106,.12)); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 24px rgba(232,178,106,.16); }
.tk.on .ord { color: #2A1A0C; border-color: transparent; background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); }
.tk.dim { opacity: .48; }
@media (max-width: 639px) { .tracks.fx3 .tk { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; } .tracks.fx3 .tk .fx { order: 3; margin-left: auto; margin-right: -2px; } }

.ck { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--field); border: 1px solid rgba(255,255,255,.2); font-size: 14.5px; line-height: 1.6; cursor: pointer; }
.ck:hover { border-color: rgba(255,255,255,.36); }
.ck input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.55); background: transparent; display: grid; place-items: center; cursor: pointer; }
.ck input:checked { background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); border-color: transparent; }
.ck input:checked::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid #2A1A0C; border-bottom: 2px solid #2A1A0C; transform: rotate(-45deg); }
.ck input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ck i { font-style: normal; }
.ck .opt { margin-left: 4px; }

.notice { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(244,207,149,.08); border: 1px solid rgba(244,207,149,.28); font-size: 13.5px; color: var(--sub); }
.notice > b { color: var(--gold); font-size: 14px; }
.notice ul { margin-top: 6px; display: grid; gap: 4px; }
.notice li { position: relative; padding-left: 14px; line-height: 1.65; }
.notice li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.notice li b { color: var(--fg); font-weight: 600; }

.submit-box { margin-top: 14px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.submit-box .btn-lg { max-width: 420px; }
.form-err { width: 100%; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #FFE0DB; background: rgba(194,59,53,.3); border: 1px solid rgba(255,143,134,.5); }
.draft { font-size: 12.5px; color: var(--mute); }

/* ---------- 状态徽章（6 种状态） ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid; font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { --st: #A8C8FF; color: #A8C8FF; background: rgba(110,160,255,.15); border-color: rgba(140,180,255,.45); }
.st-contact { --st: #D6BCFF; color: #D6BCFF; background: rgba(170,130,255,.16); border-color: rgba(190,160,255,.45); }
.st-accepted { --st: #93E4B1; color: #93E4B1; background: rgba(90,200,130,.17); border-color: rgba(140,225,170,.5); }
.st-waitlist { --st: #FFC98A; color: #FFC98A; background: rgba(255,170,80,.15); border-color: rgba(255,195,130,.48); }
.st-rejected { --st: #FF9F97; color: #FF9F97; background: rgba(255,110,100,.14); border-color: rgba(255,150,140,.45); }
.st-withdrawn { --st: rgba(255,252,246,.62); color: rgba(255,252,246,.62); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.26); }

/* ---------- 已报名 ---------- */
.stcard { position: relative; overflow: hidden; }
.stcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c, var(--gold)), transparent); }
.stcard[data-st="pending"] { --c: #A8C8FF; }
.stcard[data-st="contact"] { --c: #D6BCFF; }
.stcard[data-st="accepted"] { --c: #93E4B1; border-color: rgba(147,228,177,.45); background: linear-gradient(150deg, rgba(147,228,177,.16), rgba(255,255,255,.03) 55%), rgba(12,14,24,.42); }
.stcard[data-st="waitlist"] { --c: #FFC98A; }
.stcard[data-st="rejected"] { --c: #FF9F97; }
.stcard[data-st="withdrawn"] { --c: rgba(255,255,255,.4); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.st-no { font-size: 13px; color: var(--sub); }
.st-no b { margin-left: 4px; font-size: 20px; color: var(--gold); }
.lock { margin-top: 12px; font-size: 13.5px; color: var(--rose); }
.chan { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.chan span { color: var(--mute); margin-right: 2px; }
.chan em { font-style: normal; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--sub); }
.meta { margin-top: 16px; font-size: 12.5px; color: var(--mute); }

.tl { position: relative; margin-top: 16px; display: grid; gap: 16px; padding-left: 24px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.26); }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(255,255,255,.6); }
.tl li:first-child::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(244,207,149,.2); }
.tl b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.tl time { display: block; font-family: var(--num); font-size: 12.5px; color: var(--mute); }
.tl p { font-size: 13px; color: var(--sub); white-space: pre-wrap; }

.kv { margin-top: 8px; }
.kv > div { display: grid; grid-template-columns: 8em minmax(0,1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-size: 13.5px; color: var(--mute); }
.kv dd { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.lnk { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,207,149,.4); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 13px; line-height: 1.4; background: rgba(244,207,149,.12); border: 1px solid rgba(244,207,149,.35); }
.tchip i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--num); font-size: 11px; font-weight: 700; color: #2A1A0C; background: var(--gold); }
@media (max-width: 520px) { .kv > div { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; } .kv dt { font-size: 12.5px; } }

/* ---------- 弹窗 / 提示 ---------- */
.mask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(5,7,12,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .18s ease; }
.dlg { width: min(420px, 100%); padding: 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03)), #171B25; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .22s var(--ease); }
.dlg h3 { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.dlg p { margin-top: 10px; font-size: 14.5px; color: var(--sub); white-space: pre-line; }
.dlg .acts { justify-content: flex-end; }
.dlg .field { margin-top: 14px; }
.dlg label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--sub); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 14px; font-size: 14px; line-height: 1.5; text-align: center;
  background: rgba(23,27,37,.94); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 16px 40px rgba(0,0,0,.4); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { color: #FFE0DB; border-color: rgba(255,143,134,.6); background: rgba(70,24,24,.95); }
body.net #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
.netbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; width: min(calc(100% - 24px), 480px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(70,24,24,.92); border: 1px solid rgba(255,143,134,.55); box-shadow: 0 14px 34px rgba(0,0,0,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.netbar span { min-width: 0; }

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

/* =====================================================================
   审核后台 reg-admin.html（电脑优先，手机也能用）
   ===================================================================== */
body.adm { font-size: 14px; background:
  radial-gradient(1100px 560px at 85% -10%, rgba(232,178,106,.16), transparent 60%),
  radial-gradient(900px 520px at -10% 0%, rgba(110,140,255,.09), transparent 60%), var(--ink); background-attachment: fixed; }
.adm .bar-title { font-family: var(--serif); font-weight: 900; font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.adm .wrap { max-width: 1440px; margin: 0 auto; padding: 20px var(--pad) 60px; }
.adm .login { max-width: 400px; margin: 9vh auto 0; text-align: center; }
.adm .login .inp { margin-top: 18px; text-align: center; }
.adm .login .btn { margin-top: 12px; }
.adm .login .lead { margin-top: 6px; }
.adm-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm-hd h1 { font-family: var(--serif); font-weight: 900; font-size: 28px; letter-spacing: .03em; line-height: 1.2; }
.adm-hd p { margin-top: 4px; font-size: 13px; color: var(--mute); }
.adm-hd .acts { margin: 0; }
.panel { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); }
.panel + .panel { margin-top: 14px; }
.panel-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.adm .inp { height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; }
.adm textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; }
.adm select.inp { padding-right: 34px; background-position: right 12px center; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .kpi { grid-column: span 2; padding: 10px 11px; border-radius: 14px; } .kpi.k-all { order: -2; } .kpi.k-q { grid-column: span 4; order: -1; } .kpi.k-rg { grid-column: span 3; } .kpi b { font-size: 22px; } .kpi span { font-size: 12px; } .adm-hd h1 { font-size: 24px; } }
.kpi { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 13px 14px; border-radius: 16px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: border-color .2s, background .2s; }
button.kpi:hover { border-color: rgba(255,255,255,.3); }
.kpi b { display: block; font-family: var(--num); font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sub); }
.kpi small { font-size: 14px; color: var(--mute); font-weight: 600; }
.kpi[data-st]::before { content: ""; position: absolute; left: 14px; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--st, var(--gold)); }
.kpi.on { border-color: var(--gold); background: rgba(244,207,149,.1); }
.kpi.gold b { color: var(--gold); }
.kpi.warn { border-color: rgba(255,143,134,.75); background: rgba(194,59,53,.22); }
.kpi.warn b, .kpi.warn span { color: #FFB4AD; }
.kpi .bar-q { margin-top: 8px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.kpi .bar-q i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), #FFE3B0); }
.kpi.warn .bar-q i { background: var(--bad); }
.kpi.st-pending, .kpi.st-contact, .kpi.st-accepted, .kpi.st-waitlist, .kpi.st-rejected, .kpi.st-withdrawn { color: var(--fg); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.kpi.st-pending b, .kpi.st-contact b, .kpi.st-accepted b, .kpi.st-waitlist b, .kpi.st-rejected b, .kpi.st-withdrawn b { color: var(--st); }
.kpi.st-pending.on, .kpi.st-contact.on, .kpi.st-accepted.on, .kpi.st-waitlist.on, .kpi.st-rejected.on, .kpi.st-withdrawn.on { border-color: var(--st); background: rgba(255,255,255,.09); }

.sets { display: grid; grid-template-columns: auto auto auto 1fr; gap: 14px 22px; align-items: end; }
.sets .lbl { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--sub); }
.sets .row { display: flex; gap: 8px; align-items: center; }
.sets .state { font-size: 13px; color: var(--sub); align-self: center; }
.sets .state b { font-weight: 700; }
.sets .state .on { color: var(--ok); }
.sets .state .off { color: var(--bad); }
.adm input[type="datetime-local"].inp { width: 230px; }
.adm input[type="number"].inp { width: 110px; }
@media (max-width: 900px) { .sets { grid-template-columns: 1fr 1fr; } .sets .state { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sets { grid-template-columns: 1fr; } .adm input[type="datetime-local"].inp, .adm input[type="number"].inp { width: 100%; } .sets .row { flex-wrap: wrap; } }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; height: 40px; }
.switch input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.2); cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked { background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: .5; cursor: wait; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(200px, 2fr) minmax(0, 1.3fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 1180px) { .filters { grid-template-columns: repeat(4, minmax(0,1fr)); } .filters .kw { grid-column: span 3; } }
@media (max-width: 600px) { .filters { grid-template-columns: 1fr 1fr; } .filters .kw { grid-column: 1 / -1; order: -1; } .filters #fSort { grid-column: 1 / -1; } }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--sub); }

.bulk { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(40,34,24,.92); border: 1px solid rgba(244,207,149,.45); box-shadow: 0 12px 30px rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bulk b { color: var(--gold); margin-right: 4px; }
.bulk .inp { width: auto; min-width: 120px; }
.bulk .note { flex: 1; min-width: 160px; }
@media (max-width: 600px) { .bulk { top: 58px; } .bulk .note { flex-basis: 100%; order: 5; } }

.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 10px; text-align: left; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--mute); background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.12); }
.tbl td { padding: 11px 10px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.07); }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.04); }
.tbl tbody tr.sel { background: rgba(244,207,149,.08); }
.tbl tbody tr.cur { box-shadow: inset 3px 0 0 var(--gold); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .c-ck { width: 40px; text-align: center; }
.tbl .c-no { font-family: var(--num); font-weight: 700; color: var(--gold); white-space: nowrap; }
.tbl .c-name b { font-weight: 700; }
.tbl .c-name small { display: block; font-size: 12px; color: var(--mute); }
.tbl .c-org { max-width: 220px; }
.tbl .c-ts { white-space: nowrap; font-family: var(--num); font-size: 12.5px; color: var(--sub); }
.tbl .c-rate { white-space: nowrap; }
.tbl .c-role, .tbl .c-region { white-space: nowrap; }
.tbl .empty { padding: 40px 10px; text-align: center; color: var(--mute); cursor: default; }
.tbl .ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm .ckb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.5); display: inline-grid; place-items: center; vertical-align: middle; cursor: pointer; background: transparent; }
.adm .ckb:checked, .adm .ckb:indeterminate { background: linear-gradient(135deg, #FBE3B8, var(--gold-2)); border-color: transparent; }
.adm .ckb:checked::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #2A1A0C; border-bottom: 2px solid #2A1A0C; transform: rotate(-45deg); }
.adm .ckb:indeterminate::after { content: ""; width: 8px; height: 2px; background: #2A1A0C; }
.adm .ck-hit { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -8px; cursor: pointer; }
.tag-t { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 1.6; white-space: nowrap; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.tag-t.focus { color: var(--gold); background: rgba(244,207,149,.1); border-color: rgba(244,207,149,.38); }
.stars-s { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.stars-s .off { color: rgba(255,255,255,.2); }
.region-yrd { color: var(--gold); }

/* 手机：表格变卡片 */
@media (max-width: 760px) {
  .tbl-wrap { border: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { display: grid; grid-template-columns: 30px auto minmax(0,1fr) auto; grid-template-areas: "ck no name st" "ck org org org" "ck role region region" "ck trk trk trk" "ck rate ts ts";
    gap: 4px 8px; align-items: center; margin-bottom: 10px; padding: 12px 12px 12px 8px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
  .tbl tbody tr.cur { box-shadow: inset 0 0 0 1px var(--gold); }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td.empty { grid-column: 1 / -1; padding: 30px 0; }
  .tbl .c-ck { grid-area: ck; align-self: start; width: auto; padding-top: 2px; }
  .tbl .c-no { grid-area: no; }
  .tbl .c-name { grid-area: name; min-width: 0; }
  .tbl .c-name small { display: inline; margin-left: 6px; }
  .tbl .c-st { grid-area: st; }
  .tbl .c-org { grid-area: org; max-width: none; color: var(--sub); }
  .tbl .c-role { grid-area: role; font-size: 12.5px; color: var(--sub); }
  .tbl .c-region { grid-area: region; font-size: 12.5px; color: var(--sub); }
  .tbl .c-trk { grid-area: trk; }
  .tbl .c-rate { grid-area: rate; }
  .tbl .c-ts { grid-area: ts; text-align: right; }
  .tbl .c-rate:empty, .tbl .c-trk:empty { display: none; }
}

/* 详情抽屉 */
.dr-mask { position: fixed; inset: 0; z-index: 40; background: rgba(5,7,12,.55); animation: fade .2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(620px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(244,207,149,.06), transparent 240px), #141821; border-left: 1px solid rgba(255,255,255,.14); box-shadow: -30px 0 80px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; }
.dr-hd { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 20px 14px; background: rgba(20,24,33,.94); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dr-hd .t { flex: 1; min-width: 0; }
.dr-hd h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--serif); font-weight: 900; font-size: 22px; line-height: 1.3; }
.dr-hd h2 .n { font-size: 16px; color: var(--gold); font-family: var(--num); }
.dr-hd p { margin-top: 4px; font-size: 13px; color: var(--sub); }
.dr-x { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; color: var(--sub); border: 1px solid rgba(255,255,255,.2); }
.dr-x:hover { color: var(--fg); background: rgba(255,255,255,.08); }
.dr-sec { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dr-sec:last-child { border-bottom: 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.dr-sec h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.dr-sec h4 .btn { letter-spacing: 0; }
.st-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.st-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.st-btn:hover:not([disabled]) { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.st-btn.cur { cursor: default; box-shadow: inset 0 0 0 1px var(--st); }
.st-btn.cur::after { content: " ✓"; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 34px; height: 34px; font-size: 24px; line-height: 1; color: rgba(255,255,255,.22); transition: color .15s, transform .15s; }
.stars button.on { color: var(--gold); }
.stars button:hover { transform: scale(1.12); }
.rv-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rv-row .muted { font-size: 12.5px; }
.rv-acts { margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.dr-sec .kv { margin-top: 0; }
.dr-sec .kv > div { grid-template-columns: 9em minmax(0,1fr); padding: 9px 0; }
.dr-sec .kv dd { font-size: 14px; }
.dr-sec .tl { margin-top: 4px; }
.idn { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok, .dot-no { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-ok { background: var(--ok); }
.dot-no { background: var(--bad); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .dr-sec .kv > div { grid-template-columns: 1fr; gap: 2px; } }
