/* ============================================================
   VR 舰礼补发登记 · 样式表
   没有用任何 CSS 框架，全部手写。看懂这一份，你就能自己改颜色和排版。
   结构顺序：变量 → 基础 → 布局 → 组件 → 页面 → 响应式
   ============================================================ */

:root {
  --bg: #0a2f1c;
  --ink: #f2f0fa;
  --muted: #a09cbb;
  --dim: #6c6888;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.038);

  --brand: #228B22;
  --brand-2: #2add9c;
  --pink: #ff6bcb;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;

  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

/* hidden 属性必须能压住 display:flex 之类的规则，否则隐藏不生效 */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光斑：让纯黑看起来有点"舞台灯"的感觉 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 520px at 92% -5%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(760px 520px at 50% 108%, rgba(255, 107, 203, 0.08), transparent 65%);
}

a {
  color: var(--brand-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
}

/* ── 布局 ──────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}
.wrap-narrow {
  max-width: 720px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand b {
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.18s;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nav a.active {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.16);
}

.footer {
  margin-top: 72px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}

main {
  padding: 44px 0 0;
}
/* 首页/登记/查询/后台都是 <main class="wrap">，
   这里要显式写出来，否则 .wrap 的 padding 简写会把上边距覆盖成 0 */
main.wrap {
  padding: 44px 22px 0;
}

/* ── 首页 hero ─────────────────────────────────────────── */
.hero {
  padding: 34px 0 46px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.55rem);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #c4b5fd 5%, var(--brand) 40%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.trust-line {
  margin-top: 16px;
  color: var(--dim);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 通用组件 ──────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card + .card {
  margin-top: 18px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.card-title h2,
.card-title h3 {
  font-size: 1.12rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 20px;
}
.section-head h2 {
  font-size: 1.35rem;
}
.section-head p {
  color: var(--dim);
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled,
.btn[aria-busy='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1 60%, #5b8def);
  color: #fff;
  box-shadow: 0 14px 34px -16px rgba(139, 92, 246, 0.95);
}
.btn-primary:hover {
  box-shadow: 0 18px 40px -16px rgba(139, 92, 246, 1);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.btn-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover {
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}
.badge-ok {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
}
.badge-warn {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
}
.badge-bad {
  color: var(--bad);
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.1);
}
.badge-info {
  color: var(--brand-2);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.field .req {
  color: var(--pink);
}
.input,
textarea.input,
select.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.16s, box-shadow 0.16s;
  outline: none;
}
.input::placeholder {
  color: var(--dim);
}
.input:focus {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
textarea.input {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.hint {
  color: var(--dim);
  font-size: 0.78rem;
  margin-top: 7px;
  line-height: 1.55;
}
.error-text {
  color: var(--bad);
  font-size: 0.8rem;
  margin-top: 7px;
  display: none;
}
.error-text.show {
  display: block;
}
.form-error {
  display: none;
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fda4af;
  font-size: 0.85rem;
}
.form-error.show {
  display: block;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: 0.16s;
}
.checkbox input:checked {
  background: linear-gradient(135deg, var(--brand), #6366f1);
  border-color: transparent;
}
.checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── 首页：期次卡 / 步骤 / 隐私 ────────────────────────── */
.period-card {
  position: relative;
  overflow: hidden;
}
.period-card::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 65%);
  pointer-events: none;
}
.period-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.period-name {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.period-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}
.period-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.82rem;
}
.period-meta b {
  color: var(--ink);
  font-weight: 600;
}
.countdown {
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.countdown .num {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown .cap {
  color: var(--dim);
  font-size: 0.76rem;
  margin-top: 4px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brand-2);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}
.step-card h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}
.step-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.privacy-item {
  display: flex;
  gap: 13px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}
.privacy-item .ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  font-size: 1rem;
}
.privacy-item h4 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.privacy-item p {
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.6;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--dim);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 10px;
  line-height: 1.75;
}

/* ── 表单页：步骤条 ────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.stepper .s {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 600;
}
.stepper .s .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  font-family: var(--mono);
}
.stepper .s.active {
  color: var(--ink);
}
.stepper .s.active .n {
  background: linear-gradient(135deg, var(--brand), #6366f1);
  border-color: transparent;
  color: #fff;
}
.stepper .s.done .n {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}
.stepper .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 12px;
}

.panel[hidden] {
  display: none;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px dashed rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
}
.code-box .code {
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #ddd6fe;
  word-break: break-all;
}

.howto {
  counter-reset: h;
  padding: 0;
  margin: 0;
  list-style: none;
}
.howto li {
  counter-increment: h;
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}
.howto li::before {
  content: counter(h);
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 0.72rem;
  font-family: var(--mono);
  display: grid;
  place-items: center;
}
.howto li b {
  color: var(--ink);
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.07);
  margin-bottom: 18px;
}
.account-chip img,
.account-chip .avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
  flex: 0 0 auto;
}
.account-chip .name {
  font-weight: 700;
  font-size: 0.95rem;
}
.account-chip .sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.segmented label {
  position: relative;
  display: block;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.segmented span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  font-weight: 600;
  transition: 0.16s;
}
.segmented small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--dim);
}
.segmented input:checked + span {
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.success-box {
  text-align: center;
  padding: 16px 0 6px;
}
.success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ok);
  font-size: 1.6rem;
}
.big-code {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed var(--line-strong);
  margin: 18px 0;
  word-break: break-all;
}

/* ── 查询页 ────────────────────────────────────────────── */
.timeline {
  margin: 22px 0 4px;
  padding-left: 4px;
}
.timeline .t-item {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 1px solid var(--line);
}
.timeline .t-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline .t-dot {
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.timeline .t-item.done .t-dot {
  background: var(--ok);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}
.timeline .t-item.now .t-dot {
  background: var(--brand-2);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}
.timeline .t-title {
  font-size: 0.9rem;
  font-weight: 600;
}
.timeline .t-desc {
  color: var(--dim);
  font-size: 0.79rem;
  margin-top: 2px;
}

.empty {
  text-align: center;
  padding: 40px 18px;
  color: var(--dim);
  font-size: 0.88rem;
}

/* ── 管理后台 ──────────────────────────────────────────── */
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.admin-top .who {
  color: var(--dim);
  font-size: 0.82rem;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.16s;
}
.tabs button:hover {
  color: var(--ink);
}
.tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
}
.stat .k {
  color: var(--dim);
  font-size: 0.75rem;
}
.stat .v {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2px;
}
.stat.hl .v {
  color: var(--brand-2);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar .input {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.85rem;
  width: auto;
}
.toolbar .grow {
  flex: 1 1 200px;
  min-width: 150px;
}
.toolbar select.input {
  min-width: 130px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.015);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  min-width: 860px;
}
.table th {
  text-align: left;
  font-weight: 600;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.table .mono {
  font-family: var(--mono);
  font-size: 0.78rem;
}
.table .nick {
  font-weight: 600;
}
.table .sub {
  color: var(--dim);
  font-size: 0.74rem;
}
.table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.pager .btns {
  display: flex;
  gap: 8px;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 3, 9, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-mask[hidden] {
  display: none;
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow: auto;
  background: #100e1c;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 40px 100px -30px #000;
}
.modal h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.modal .modal-sub {
  color: var(--dim);
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 14px;
  font-size: 0.86rem;
  margin: 14px 0;
}
.dl dt {
  color: var(--dim);
}
.dl dd {
  margin: 0;
  word-break: break-all;
}
.masked-note {
  color: var(--warn);
  font-size: 0.78rem;
  margin-top: 10px;
}

/* 提示条 */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 420px);
}
.toast {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #17142a;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.85rem;
  box-shadow: 0 18px 40px -18px #000;
  animation: toast-in 0.22s ease-out;
}
.toast.ok {
  border-color: rgba(52, 211, 153, 0.4);
}
.toast.bad {
  border-color: rgba(251, 113, 133, 0.4);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 0.82rem;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 32px;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}

/* ── 公开名单 ──────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.chip {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: 0.16s;
}
.chip:hover {
  color: var(--ink);
  border-color: rgba(139, 92, 246, 0.5);
}
.chip.active {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.6);
}
.chip .dim {
  margin-left: 4px;
  font-size: 0.76rem;
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.roster-row:last-child {
  border-bottom: none;
}
.roster-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.roster-name {
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 0.76rem;
  white-space: nowrap;
}

/* ── 响应式 ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .period-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .steps-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  main.wrap {
    padding: 26px 16px 0;
  }
  main {
    padding-top: 26px;
  }
  .site-header .wrap {
    height: 60px;
  }
  .brand span.full {
    display: none;
  }
  .nav a {
    padding: 8px 9px;
    font-size: 0.84rem;
  }
  .roster-right span:first-child {
    display: none;
  }
  .card {
    padding: 20px;
    border-radius: 18px;
  }
  .hero {
    padding: 18px 0 34px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section-head {
    margin-top: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper .s span.label {
    display: none;
  }
  .stepper .s.active span.label {
    display: inline;
  }
  .table {
    min-width: 760px;
  }
}
