/* ==========================================================
   贝迪堡 × 嘉峪关首届孕博会
   基础样式 / 设计令牌 / 工作人员页
   ========================================================== */

:root {
  --paper: #FAF6F1;
  --paper-2: #F3E9E1;
  --card: #FFFFFF;

  --ink: #2A211E;
  --ink-2: #68554C;
  --ink-3: #9A8780;

  --line: #EADCD3;
  --line-2: #F6EEE8;

  --rose: #B5737C;
  --rose-deep: #8D4F59;
  --rose-dark: #6B3944;
  --rose-soft: #F8E9E6;

  --gold: #C3A265;
  --gold-deep: #9A7943;
  --gold-soft: #F4E8D3;
  --gold-line: #E3D0AE;

  --blue: #7FA9C9;
  --blue-deep: #3F6E93;
  --blue-soft: #EAF2F8;
  --mint: #A9C6B4;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-1: 0 1px 2px rgba(80, 48, 38, .04), 0 10px 26px rgba(80, 48, 38, .06);
  --shadow-2: 0 18px 48px rgba(80, 48, 38, .11);
  --shadow-3: 0 30px 80px rgba(80, 48, 38, .17);

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 11px;

  --ease: cubic-bezier(.22, .8, .25, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

::selection { background: rgba(181, 115, 124, .18); }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

#top, #info, #gifts, #prizes, #partners, #signup, #contact { scroll-margin-top: 76px; }

/* ---------- 通用输入框 ---------- */
.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #FFFCF9;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.input::placeholder { color: #C0ABA2; font-size: 14px; }

.input:focus {
  background: #fff;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(181, 115, 124, .12);
}

/* ---------- 工作人员页主按钮 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #A96B73 0%, #8D4F59 60%, #7A444E 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(141, 79, 89, .24);
  transition: transform .14s, box-shadow .24s, filter .2s;
}

.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active { transform: translateY(1px); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 200;
  max-width: 80vw;
  padding: 11px 17px;
  border-radius: 11px;
  background: rgba(42, 33, 30, .94);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .24s, transform .24s;
  backdrop-filter: blur(6px);
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   工作人员 · 报名名单
   ========================================================== */
.staff-page { background: var(--paper); }

.s-top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.s-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.s-top-inner > div { min-width: 0; }

.s-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
}

.s-sub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
}

.s-back:hover { border-color: var(--gold-line); color: var(--rose-deep); }

.s-main { padding: 26px 0 50px; }

/* 密码入口 */
.gate {
  max-width: 380px;
  margin: 40px auto;
  padding: 30px 24px 26px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  text-align: center;
}

.gate-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.gate h2 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 600;
}

.gate p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.gate form { margin-top: 20px; }

.gate .input {
  text-align: center;
  letter-spacing: .4em;
  font-size: 18px;
}

.gate .btn-primary { height: 46px; margin-top: 10px; font-size: 14px; letter-spacing: .1em; }

.gate-err {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #B04A40;
}

.gate-err.is-show { display: block; }

.gate-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* 统计 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  padding: 15px 16px 13px;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-1);
}

.stat-k {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

.stat-v {
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
}

.stat-v small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 2px;
}

.stat:nth-child(1) .stat-v { color: var(--rose-deep); }
.stat:nth-child(2) .stat-v { color: var(--gold-deep); }

/* 工具条 */
.s-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.s-search { position: relative; }

.s-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.s-search .input { height: 44px; padding-left: 38px; font-size: 14.5px; }

.s-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select {
  height: 38px;
  padding: 0 30px 0 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A8780' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line);
  border-radius: 9px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.select:focus { border-color: var(--rose); }

.s-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--gold-line);
  border-radius: 9px;
  background: #fff;
  color: var(--gold-deep);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.s-export:hover { background: var(--gold-soft); }

/* 表格 */
.s-table-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.s-table { width: 100%; border-collapse: collapse; }

.s-table th {
  padding: 11px 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: left;
  background: #FDFAF7;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.s-table td {
  padding: 13px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.s-table tbody tr:last-child td { border-bottom: 0; }
.s-table tbody tr:hover { background: #FEFAF7; }

.s-id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.s-name { font-weight: 600; }

.s-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.s-phone:hover { color: var(--rose-deep); }

.s-mute { font-size: 12px; color: var(--ink-3); }
.s-time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge--wait { background: #FCF3E4; color: #9A7943; }
.badge--done { background: #EDF4EE; color: #4F7A5A; }

.s-act {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11.5px;
  color: var(--rose-deep);
  cursor: pointer;
  white-space: nowrap;
}

.s-act:hover { border-color: #E3BCBB; background: var(--rose-soft); }
.s-act.is-done { color: var(--ink-3); }
.s-act.is-done:hover { border-color: var(--line); background: #FBF7F3; }

.s-empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
}

.s-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.s-note {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-3);
}

.s-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.s-lock {
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .s-table thead { display: none; }

  .s-table, .s-table tbody, .s-table tr, .s-table td { display: block; width: 100%; }

  .s-table tr {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
  }

  .s-table tr:last-child { border-bottom: 0; }

  .s-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 0;
    border: 0;
    text-align: right;
  }

  .s-table td::before {
    content: attr(data-l);
    flex: none;
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: .04em;
  }

  .s-table td:first-child {
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .s-table td:first-child::before { display: none; }

  .s-table td:last-child { padding-top: 10px; justify-content: flex-end; }
  .s-table td:last-child::before { display: none; }
  .s-table .s-act { width: 100%; height: 36px; }
  .s-table tbody tr:hover { background: none; }
}

@media (min-width: 721px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-tools { grid-template-columns: 280px 1fr; align-items: center; }
  .s-filters { justify-content: flex-end; }
  .s-export { margin-left: 0; }
}

@media (min-width: 900px) {
  .s-main { padding: 34px 0 60px; }
}

@media (max-width: 560px) {
  .s-sub-more { display: none; }
}

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