/* 陪玩入职 · 表格型布局 */
:root {
  --bg: #0b0d11;
  --panel: #12151b;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --danger: #f87171;
  --ok: #4ade80;
  --input: #0f131a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.join-body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.join-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #0e1117;
}
.join-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.join-brand svg { width: 22px; height: 22px; color: var(--accent); }
.join-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.join-top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
}
.join-top-links a:hover { color: #f1f5f9; background: rgba(148,163,184,.08); }
.join-link-btn {
  color: #0b1220 !important;
  background: var(--accent) !important;
  font-weight: 600;
}
.join-link-btn:hover { filter: brightness(1.05); }

.join-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.join-sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.join-sheet-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #151922;
}
.join-sheet-head h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}
.join-sheet-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.join-sheet-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.join-sheet-actions a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.join-sheet-actions a:hover { text-decoration: underline; }

.join-alert {
  margin: 0;
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.join-alert.ok {
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
}
.join-alert.err {
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}
.join-alert a { color: var(--accent); margin-left: 8px; }
.join-alert code {
  font-family: ui-monospace, "IBM Plex Sans", monospace;
  background: rgba(0,0,0,.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.join-table-wrap { overflow-x: auto; }

.join-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.join-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: #0f131a;
  border-bottom: 1px solid var(--line);
}
.join-table td {
  vertical-align: middle;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.join-table tbody tr:hover td { background: rgba(148, 163, 184, 0.03); }

.col-sec {
  width: 96px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  background: #10141c;
  border-right: 1px solid var(--line);
  vertical-align: top !important;
  padding-top: 16px !important;
}
.col-label {
  width: 120px;
  color: #cbd5e1;
  font-size: 13px;
  white-space: nowrap;
}
.col-label em {
  color: #fbbf24;
  font-style: normal;
  margin-left: 2px;
}
.col-value { width: auto; }

.join-table input[type="text"],
.join-table input[type="password"],
.join-table input:not([type]),
.join-table input.mono {
  width: 100%;
  max-width: 420px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--input);
  color: #f8fafc;
  font: inherit;
  outline: none;
}
.join-table input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.join-table input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.join-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.join-hint.ok { color: var(--ok); }
.join-hint.bad { color: var(--danger); }

.join-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.join-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0f131a;
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.join-opt:hover { border-color: rgba(56, 189, 248, 0.35); }
.join-opt:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.join-opt input {
  margin: 0;
  accent-color: var(--accent);
}
.join-opt .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.join-opt img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  vertical-align: -2px;
}
.join-opt i {
  font-style: normal;
  margin-right: 2px;
}

.join-footbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #151922;
  border-top: 1px solid var(--line);
}
.join-submit {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #0b1220;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.join-submit:hover { filter: brightness(1.06); }
.join-foot-note {
  color: var(--muted);
  font-size: 12px;
}
.join-foot-note a { color: var(--accent); text-decoration: none; }

.join-page-foot {
  text-align: center;
  padding: 8px 16px 28px;
  color: #64748b;
  font-size: 12px;
}

/* 进度查询页复用 */
.join-main.narrow { max-width: 640px; }
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.result-top .muted { color: var(--muted); font-size: 12px; }
.result-top .mono.big {
  font-family: ui-monospace, monospace;
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(148,163,184,.15);
  color: #cbd5e1;
}
.status-pill.pending { background: rgba(251,191,36,.15); color: #fbbf24; }
.status-pill.approved { background: rgba(74,222,128,.15); color: #4ade80; }
.status-pill.rejected { background: rgba(248,113,113,.15); color: #f87171; }
.result-dl {
  margin: 0;
  padding: 8px 0;
}
.result-dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.result-dl dt { margin: 0; color: var(--muted); font-size: 13px; }
.result-dl dd { margin: 0; color: #f1f5f9; }

@media (max-width: 720px) {
  .join-table thead { display: none; }
  .join-table, .join-table tbody, .join-table tr, .join-table td {
    display: block;
    width: 100%;
  }
  .join-table tr {
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  .col-sec {
    width: auto;
    border-right: 0;
    padding: 0 0 8px !important;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .col-label {
    width: auto;
    padding: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
  }
  .col-value { padding: 0; }
  .join-table input[type="text"],
  .join-table input[type="password"],
  .join-table input:not([type]),
  .join-table input.mono { max-width: none; }
  /* rowspan 在移动端会重复显示分组名，用 CSS 隐藏重复的空 sec 较难，保持可见亦可 */
}
