/* ============================================================
   天使直约 · 设计系统（v3 重建）
   统一设计令牌：色彩 / 圆角 / 间距 / 字号阶梯 / 阴影
   ============================================================ */

:root {
  /* ---- 色彩 ---- */
  --bg: #f6f7fa;
  --card: #ffffff;
  --ink: #1c2430;
  --ink-2: #3d4956;
  --muted: #68738a;
  --line: #e6e9f0;
  --line-strong: #d4d9e3;
  --brand: #1a66f3;
  --brand-hover: #3d7bf6;
  --brand-active: #1552c6;
  --brand-soft: #edf3ff;
  --brand-ink: #ffffff;
  --ok: #0e7a52;
  --ok-soft: #e6f5ee;
  --warn: #9a6700;
  --warn-soft: #fdf3e0;
  --danger: #c0361f;
  --danger-hover: #d24a33;
  --danger-soft: #fdeeed;

  /* ---- 圆角阶梯 ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 999px;

  /* ---- 间距阶梯（4px 基准） ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* ---- 字号阶梯 ---- */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-hero: clamp(26px, 4vw, 36px);

  /* ---- 阴影（克制，两级） ---- */
  --shadow-sm: 0 1px 2px rgba(28, 36, 48, 0.05);
  --shadow-md: 0 4px 16px rgba(28, 36, 48, 0.08);

  /* ---- 版心 ---- */
  --wrap: 1200px;
}

/* ============ 基础 ============ */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 细窄滚动条：细、圆角小 */
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #c3cad6 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #c3cad6;
  border-radius: var(--r-xs);
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: #a9b3c4; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

::selection { background: var(--brand-soft); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ============ 顶栏 ============ */

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-lg);
  text-decoration: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--fs-md);
  flex: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--fs-md);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

.topnav a:hover { background: var(--bg); color: var(--ink); }
.topnav a:active { background: var(--line); }

.topnav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

/* ============ 演示横幅 ============ */

.demo-banner {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid #f0dfb8;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ============ 首屏 ============ */

.hero {
  padding: var(--sp-10) 0 var(--sp-6);
}

.hero-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: var(--sp-3);
  max-width: 640px;
  color: var(--muted);
  font-size: var(--fs-md);
}

.hero-stats {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.stat-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--sp-1);
}

/* ============ 工具栏（搜索 + 筛选） ============ */

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4) 0 var(--sp-5);
  border-top: 1px solid var(--line);
}

.input {
  height: 38px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: var(--fs-base);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:hover { border-color: #b9c1cf; }

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.input::placeholder { color: #9aa4b5; }

#search { flex: 1 1 240px; min-width: 200px; }

.toolbar .input[type="search"] { flex: 1 1 260px; }

/* 可深度对接复选 */
.deep-check {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: var(--fs-base);
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.deep-check:hover { border-color: #b9c1cf; }

.deep-check input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.result-meta {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-bottom: var(--sp-4);
}

/* ============ 卡片网格 ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
  padding-bottom: var(--sp-8);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: #c4d5fb;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card:active { transform: translateY(0); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--fs-lg);
  font-weight: 600;
  flex: none;
}

.avatar.lg { width: 60px; height: 60px; font-size: var(--fs-2xl); }

.card-top > div:last-child {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fav-btn {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid #e2e6ee;
  border-radius: var(--r-md);
  background: #fff;
  color: #b9c1cf;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fav-btn:hover { border-color: #f0b429; color: #f0b429; }

.fav-btn.on { color: #f0b429; border-color: #f0b429; background: #fffaf0; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-full);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}

.pill.warn { background: var(--warn-soft); color: var(--warn); }

.card-name { font-size: var(--fs-lg); }

.card-desc {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.7em);
}

.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-xs);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.meta-label {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.meta-value {
  font-size: var(--fs-sm);
  color: var(--ink);
  margin-top: var(--sp-1);
  font-weight: 500;
}

.card-source {
  font-size: var(--fs-xs);
  color: #9aa4b5;
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-2);
}

/* 卡片骨架屏 */
.skel-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 200px;
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  pointer-events: none;
}

.skel-card .skel-bar:first-child { width: 44px; height: 44px; border-radius: var(--r-md); }

.skel-bar {
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, #eef1f6 25%, #e2e7ee 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skel 1.2s ease infinite;
  height: 14px;
}

@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ============ 空态 / 错误态 ============ */

.empty {
  margin: 0 auto var(--sp-8);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  max-width: 520px;
  font-size: var(--fs-md);
}

.empty::before {
  content: "○";
  display: block;
  font-size: 28px;
  color: #c3cad6;
  margin-bottom: var(--sp-3);
}

.error-banner {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--danger-soft);
  border: 1px solid #f3cfc9;
  color: var(--danger);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ============ 分页 ============ */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-2) 0 var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.pager .btn-secondary { min-width: 88px; justify-content: center; }

/* ============ 通用页头 / 面板 ============ */

.page { padding: var(--sp-8) 0 var(--sp-5); }

.page h1 { font-size: var(--fs-2xl); }

.page-sub {
  margin-top: var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-md);
  max-width: 640px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.legal-body h3 { font-size: var(--fs-md); margin: var(--sp-5) 0 var(--sp-2); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); font-size: var(--fs-base); margin-bottom: var(--sp-2); }

/* ============ 详情页 ============ */

.detail-page { padding-bottom: var(--sp-10); }

.detail-head { padding: var(--sp-5) 0 0; }

.back {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none !important;
}

.back:hover { color: var(--brand); }

.detail-card {
  margin-top: var(--sp-4);
  padding: var(--sp-8);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.detail-top {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.detail-name { font-size: var(--fs-2xl); }

.detail-subname {
  margin-top: var(--sp-1);
  color: var(--muted);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.detail-desc {
  margin-top: var(--sp-5);
  color: var(--ink-2);
  font-size: var(--fs-md);
  line-height: 1.8;
}

.detail-source {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: #9aa4b5;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.info-label {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.info-value {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
}

.detail-card .chips { margin-top: var(--sp-5); }

/* 详情 CTA */
.detail-cta {
  margin-top: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  background: var(--brand-soft);
  border: 1px solid #d4e2fd;
  border-radius: var(--r-md);
}

.cta-title { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }

.cta-sub {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 480px;
}

/* ============ 按钮（四态：hover / active / disabled / loading） ============ */

.btn-primary,
.btn-secondary,
.btn-danger,
.filter-btn,
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--fs-base);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }

.btn-secondary {
  background: var(--card);
  color: var(--ink-2);
  border-color: var(--line-strong);
}

.btn-secondary:hover { border-color: #b9c1cf; color: var(--ink); background: #fbfcfe; }
.btn-secondary:active { background: var(--bg); }

.btn-danger {
  background: var(--card);
  color: var(--danger);
  border-color: #eccfca;
}

.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-danger:active { background: #fbded9; }

/* disabled 态 */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.filter-btn:disabled,
.tab-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* loading 态（微调器 + 阻止重复点击） */
.btn-primary.loading,
.btn-secondary.loading,
.btn-danger.loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
  padding-left: calc(var(--sp-5) + 16px);
}

.btn-primary.loading::before,
.btn-secondary.loading::before,
.btn-danger.loading::before {
  content: "";
  position: absolute;
  left: var(--sp-4);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.9;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 弹窗 ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh var(--sp-4) var(--sp-8);
  background: rgba(28, 36, 48, 0.45);
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal-panel {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.modal-head h2 { font-size: var(--fs-xl); }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-close:active { background: var(--line); }

/* ============ 表单 ============ */

.form { display: flex; flex-direction: column; gap: var(--sp-4); }

.form .btn-primary { align-self: flex-start; min-width: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.field { display: flex; flex-direction: column; gap: var(--sp-1); }

.field label {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  font-weight: 500;
}

.field label em {
  color: var(--danger);
  font-style: normal;
  margin-left: 2px;
}

.field input,
.field select,
.field textarea,
.status-select {
  height: 38px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: var(--fs-base);
  color: var(--ink);
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  height: auto;
  padding: var(--sp-2) var(--sp-3);
  line-height: 1.7;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b9c1cf; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field input:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }

.field-hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; line-height: 1.5; }

.form-error {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--danger-soft);
  border: 1px solid #f3cfc9;
  color: var(--danger);
  font-size: var(--fs-sm);
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

.consent-line input { accent-color: var(--brand); margin-top: 3px; }

/* ============ 提交成功 ============ */

.success-body { display: flex; flex-direction: column; gap: var(--sp-4); }

.success-tip { color: var(--muted); font-size: var(--fs-sm); }

.query-code {
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: var(--fs-xl);
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  text-align: center;
  word-break: break-all;
}

.kv-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.kv-rows > div:last-child { border-bottom: none; }

.kv-rows span { color: var(--muted); flex: none; }
.kv-rows b { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }

/* ============ 状态徽章 ============ */

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

.st-pending  { background: var(--warn-soft); color: var(--warn); }
.st-forwarded { background: var(--brand-soft); color: var(--brand); }
.st-met      { background: var(--ok-soft); color: var(--ok); }
.st-declined { background: var(--danger-soft); color: var(--danger); }

/* ============ 申请 / 活动行卡片 ============ */

.apply-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.apply-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.apply-name { font-size: var(--fs-md); font-weight: 600; }

.apply-investor {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 2px;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
}

.apply-cell { font-size: var(--fs-sm); }

.apply-cell .k { color: var(--muted); margin-right: var(--sp-2); }
.apply-cell .v { color: var(--ink); font-weight: 500; word-break: break-all; }

.apply-intro {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

.apply-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.apply-foot .btn-secondary { height: 32px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }

.meet-check, .inv-check {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
  flex: none;
}

/* ============ L2 解锁卡片 ============ */

.l2-card {
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  background: var(--ok-soft);
  border: 1px solid #c8e6d6;
  border-radius: var(--r-md);
}

.l2-card h3 { font-size: var(--fs-md); color: var(--ok); margin-bottom: var(--sp-3); }

.l2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-bottom: 1px solid rgba(14, 122, 82, 0.12);
}

.l2-row:last-child { border-bottom: none; }

.copy-btn {
  flex: none;
  height: 26px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn:active { background: var(--bg); }

/* ============ 后台 ============ */

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0 var(--sp-4);
  flex-wrap: wrap;
}

.admin-head h1 { font-size: var(--fs-xl); }

.admin-sub { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-1); }

.admin-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
}

.tab-btn {
  height: 42px;
  padding: 0 var(--sp-4);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 500;
}

.tab-btn:hover { color: var(--ink); background: var(--bg); }

.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.admin-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: var(--fs-lg);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.filter-btn {
  height: 32px;
  padding: 0 var(--sp-3);
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.filter-btn:hover { color: var(--ink); border-color: #b9c1cf; }
.filter-btn:active { background: var(--bg); }

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* ============ 数据表格：表头区分 + 隔行底纹 ============ */

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
}

.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: #f2f4f8;
  border-bottom: 1px solid var(--line-strong);
  padding: var(--sp-3) var(--sp-4);
  white-space: nowrap;
}

.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}

.data-table tbody tr:nth-child(even) td { background: #fafbfd; }

.data-table tbody tr:hover td { background: var(--brand-soft); }

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table .btn-secondary,
.data-table .btn-danger { height: 30px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }

.data-table .btn-secondary + .btn-danger { margin-left: var(--sp-2); }

.import-preview { margin-top: var(--sp-4); }

.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.settings-card h3 { font-size: var(--fs-md); }

.settings-card > .admin-sub { margin-bottom: var(--sp-4); }

.status-select {
  height: 32px;
  width: auto;
  font-size: var(--fs-sm);
}

/* ============ 登录页 ============ */

.login-box {
  max-width: 380px;
  margin: 12vh auto 0;
  padding: var(--sp-8);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.login-box h1 { font-size: var(--fs-xl); text-align: center; }

.login-box .sub {
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: var(--sp-2) 0 var(--sp-6);
}

.login-box .btn-primary { width: 100%; }

/* ============ 页脚 ============ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: var(--sp-6) 0;
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 2;
  text-align: center;
}

.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--brand); }

/* ============ 响应式 ============ */

@media (max-width: 1280px) {
  :root { --wrap: 1080px; }
}

@media (max-width: 1024px) {
  :root { --wrap: 920px; }
  .hero { padding: var(--sp-8) 0 var(--sp-5); }
  .detail-card { padding: var(--sp-6); }
}

@media (max-width: 768px) {
  .wrap { padding: 0 var(--sp-4); }
  .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .toolbar .input[type="search"] { flex-basis: 100%; }
  .hero-stats { gap: var(--sp-5); }
  .detail-cta { flex-direction: column; align-items: stretch; }
  .detail-cta .btn-primary { width: 100%; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .topnav a { padding: 0 var(--sp-2); font-size: var(--fs-sm); }
  .apply-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .topbar-inner { height: 52px; }
  .brand-name { display: none; }
  .apply-grid { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; }
}

/* 打印 */
@media print {
  .topbar, .footer, .toolbar, .pager, .detail-cta { display: none !important; }
  body { background: #fff; }
}
