/* 排行榜管理后台 —— 浅色卡片风，无第三方 UI 库 */
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #16172b;
  --sub: #6b6d85;
  --fade: #9b9bae;
  --line: #ececf3;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.layout { display: flex; min-height: 100vh; }

.side {
  width: 208px;
  flex-shrink: 0;
  padding: 22px 16px;
  background: #0b0b14;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.brand { font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 24px; }
.brand span { font-size: 12px; font-weight: 500; opacity: .6; }

.nav {
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
}
.nav:hover { background: rgba(255,255,255,.1); color: #fff; }

.side-foot { margin-top: auto; font-size: 12px; opacity: .7; display: flex; justify-content: space-between; }
.side-foot a { color: #fff; opacity: .8; }

.main { flex: 1; padding: 26px 30px 60px; min-width: 0; }

.h1 { font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.h2 { font-size: 16px; font-weight: 700; margin: 26px 0 12px; }
.count { font-size: 13px; font-weight: 500; color: var(--fade); margin-left: 10px; }

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.flash {
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }

.kpi {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.kpi-v { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.kpi-k { font-size: 12px; color: var(--sub); margin-top: 2px; }
.kpi-link:hover { border-color: var(--brand); }

.tbl {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13px;
}
.tbl th, .tbl td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: #fafbff; font-weight: 700; color: var(--sub); font-size: 12px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--sub); }
.ops { white-space: nowrap; }

.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }
.linkbtn {
  background: none; border: none; padding: 0; margin-left: 10px;
  color: var(--brand); cursor: pointer; font-size: 13px; font-family: inherit;
}
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--err); }

.inline { display: inline; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.tag-待审核 { background: #fff7e6; color: #b45309; }
.tag-已通过 { background: #ecfdf5; color: #047857; }
.tag-已拒绝 { background: #fef2f2; color: #b91c1c; }
.tag-示例 { background: #fff7ed; color: #c2410c; }

.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter input, .filter select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 13px; font-family: inherit; color: inherit;
}
.filter input { min-width: 190px; }

.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); text-decoration: none; font-size: 13px;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.btn {
  padding: 9px 18px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn:hover { opacity: .92; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; color: inherit; background: #fff;
}
.field textarea { resize: vertical; line-height: 1.6; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 18px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.actions { display: flex; gap: 12px; align-items: center; }

.nom-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 14px;
}
/* 世代创业者管理页顶部的「待审核提名」区块 */
.nom-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px 16px; margin-bottom: 18px;
}
.nom-box .h2 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nom-box .count { font-size: 12px; font-weight: 500; color: var(--fade); }
.nom-else { display: inline-flex; gap: 6px; margin-left: 4px; }
.nom-else .chip { padding: 3px 10px; font-size: 12px; }
.tip.inline { margin: 8px 0 12px; }
.nom-tbl { margin-top: 4px; }
/* 创业者照片上传 */
.photo-field { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.photo-row { display: flex; align-items: flex-start; gap: 14px; }
.photo-box {
  width: 84px; height: 112px; border-radius: 10px; border: 1px solid var(--line);
  background: #f1f2f7; display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: none;
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ph { font-size: 12px; color: var(--fade); }
.photo-side { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.photo-side input[type=file] { font-size: 13px; }
.photo-side input:not([type=file]) {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; width: 100%; box-sizing: border-box;
}

.nom-person { display: flex; align-items: center; gap: 10px; }
.nom-avatar {
  width: 38px; height: 50px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: #f1f2f7; flex: none;
}
.nom-empty { padding: 18px 0; font-size: 13px; }
.nom-name { font-size: 16px; font-weight: 800; }
.nom-meta { font-size: 12px; color: var(--fade); }
.nom-line { font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.nom-ops { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.note {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; margin-right: 8px; min-width: 180px;
}

.pager { margin-top: 16px; font-size: 13px; color: var(--sub); display: flex; gap: 14px; align-items: center; }
.empty { padding: 40px 0; text-align: center; color: var(--fade); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 340px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px; box-shadow: 0 12px 40px rgba(22,23,43,.08);
}
.login-title { font-size: 20px; font-weight: 800; }
.login-sub { font-size: 13px; color: var(--sub); margin: 4px 0 18px; }
.login-card label { font-size: 12px; color: var(--sub); display: block; margin: 10px 0 5px; }
.login-card input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit;
}
.login-card .btn { width: 100%; margin-top: 18px; }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--fade); text-align: center; }

/* 轮播图管理 */
.tip { font-size: 12px; color: var(--fade); margin: -6px 0 16px; line-height: 1.6; }
.thumb { width: 84px; height: 46px; border-radius: 8px; object-fit: cover; display: block; background: #f1f2f7; }
.thumb-txt {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  font-size: 13px; font-weight: 700;
}
.preview { max-width: 320px; width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cell-main { font-size: 13px; font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--fade); margin-top: 2px; }
.kpi-link { text-decoration: none; color: inherit; }

/* 跳转方式单选（按「第N张轮播图配置」样式） */
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.radio { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.radio input { accent-color: var(--brand); }

/* 轮播图上传行 + 压缩状态 */
.readonly-field {
  padding: 9px 12px; border: 1px dashed var(--line); border-radius: 10px;
  background: #f7f8fc; font-size: 14px; font-weight: 600; color: var(--sub);
}
.readonly-field .cell-sub { font-weight: 400; margin-left: 8px; }
.upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp-status { font-size: 12px; color: var(--sub); }

/* 创业者管理：世代分页导航 */
.nav.sub { padding-left: 26px; font-size: 13px; opacity: 0.85; }
.nav.sub.on { opacity: 1; font-weight: 600; background: #eef0fb; }
.gen-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gen-tab {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); font-size: 13px; text-decoration: none;
}
.gen-tab:hover { border-color: var(--brand); color: var(--brand); }
.gen-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.filter-tag {
  display: inline-flex; align-items: center; padding: 0 14px; height: 34px;
  border-radius: 6px; background: #eef0fb; color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.linkbtn.audit { color: var(--brand); font-weight: 600; }
