/* ==========================================================================
   ext3_20261111.css — 学生 × 报考（末位覆盖）
   ========================================================================== */

/* ---------------------------- 阶段徽标 ---------------------------- */
.stage {
  height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: filter .14s;
}
.stage:hover { filter: brightness(.96); }
.stage-0 { background: var(--skin-input); color: var(--text-2); }
.stage-1 { background: var(--primary-pale); color: var(--skin-primary); }
.stage-2 { background: var(--skin-primary); color: #fff; }
.stage-3 { background: color-mix(in srgb, #3E6B9B 14%, var(--card)); color: #35618E; }
.stage-4 { background: color-mix(in srgb, #7C5CBF 15%, var(--card)); color: #6B4CAD; }
.stage-5 { background: var(--skin-cta); color: #23300F; }

/* ---------------------------- 院校详情 · 报考名单 ---------------------------- */
.tr-row {
  display: grid;
  grid-template-columns: 96px auto minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}
.tr-row:first-child { border-top: 0; }
.tr-name { font-weight: 600; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tr-name i { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 400; flex: none; }
.tr-at { font-size: 11.5px; color: var(--text-3); text-align: right; }
.tr-at .hot, .hot { color: #B4402F; font-weight: 600; }
.tr-del {
  width: 22px; height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-4);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.tr-del:hover { background: var(--skin-input); color: #B4402F; }
.hint { margin-top: 7px; font-size: 11.5px; color: var(--text-4); }

/* ---------------------------- 省份详情 · 本省考生 ---------------------------- */
.stu-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.stu-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--primary-pale);
  color: var(--skin-primary);
  font-size: 12.5px;
  font-weight: 600;
}
.stu-chip i { font-style: normal; font-size: 10px; font-weight: 400; opacity: .72; }
.stu-chip.off { background: var(--skin-input); color: var(--text-3); }

/* ---------------------------- 首页 · 待跟进 ---------------------------- */
.fu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}
.pub-list > .fu-row:first-child { border-top: 0; }
.fu-row:hover { background: var(--primary-alpha); }
.fu-name { font-weight: 600; width: 96px; flex: none; display: flex; align-items: baseline; gap: 5px; }
.fu-name i { font-style: normal; font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.fu-school { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-left { font-size: 11.5px; color: var(--text-3); flex: none; }

/* ---------------------------- 学生页 ---------------------------- */
.stgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 10px;
}
.stcard {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--shadow-card);
}
.stcard.off { opacity: .62; }
.stcard-h { display: flex; align-items: center; gap: 7px; }
.stcard-name { font-size: 14.5px; font-weight: 700; }
.stcard-prov {
  font-size: 11px;
  color: var(--text-3);
  background: var(--skin-input);
  padding: 1px 7px;
  border-radius: 5px;
  margin-left: auto;
}
.st-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.st-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--skin-input);
  color: var(--text-2);
}
.st-tag i { font-style: normal; font-size: 10px; font-weight: 400; opacity: .74; }
.st-tag.st-1 { background: var(--primary-pale); color: var(--skin-primary); }
.st-tag.st-2 { background: var(--skin-primary); color: #fff; }
.st-tag.st-3 { background: color-mix(in srgb, #3E6B9B 14%, var(--card)); color: #35618E; }
.st-tag.st-4 { background: color-mix(in srgb, #7C5CBF 15%, var(--card)); color: #6B4CAD; }
.st-tag.st-5 { background: var(--skin-cta); color: #23300F; }
.st-none { font-size: 12px; color: var(--text-4); }

/* ---------------------------- 学生选择浮层 ---------------------------- */
.picker-panel { max-width: 560px; }
.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.pk-close {
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.pk-close:hover { border-color: var(--primary-border); color: var(--text); }
.pk-group { padding: 9px 0 4px; }
.pk-group + .pk-group { border-top: 1px solid var(--border-soft); }
.pk-prov {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 16px 7px;
  font-size: 11.5px;
  color: var(--text-3);
}
.pk-prov span { font-size: 10px; color: var(--text-4); }
.pk-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 6px; }
.pk-item {
  height: 31px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.pk-item:hover { border-color: var(--skin-primary); background: var(--primary-pale); }

/* ---------------------------- 手机 ---------------------------- */
@media (max-width: 860px) {
  .tr-row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    grid-template-areas:
      "name at del"
      "stage stage stage";
    gap: 7px 8px;
  }
  .tr-row .tr-name { grid-area: name; }
  .tr-row .stage { grid-area: stage; justify-self: start; height: 24px; }
  .tr-row .tr-at { grid-area: at; text-align: right; }
  .tr-row .tr-del { grid-area: del; }

  .stgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stcard { padding: 11px 12px; gap: 7px; }
  .stcard-name { font-size: 14px; }
  .fu-name { width: 78px; }
  .fu-left { font-size: 11px; }
  .picker-panel { max-width: none; }
}

@media (max-width: 420px) {
  .stgrid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   收尾修正（2026-11-11）：待跟进空态 / 选择浮层固定底栏
   ========================================================================== */

.fu-empty {
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* 浮层高度受控：搜索框与底栏固定，中间名单滚动 */
.picker-panel {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 640px);
}
.picker-panel > .search-in,
.picker-panel > .pk-head,
.picker-panel > .pk-foot { flex: none; }
.picker-panel > .search-res {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pk-head { font-size: 13.5px; color: var(--text); }
#pickerTitle { font-weight: 700; }

.pk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--page) 55%, var(--card));
  font-size: 11.5px;
  color: var(--text-3);
}
#pickerCount { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-done {
  height: 28px;
  padding: 0 15px;
  flex: none;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--skin-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.pk-done:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
  .picker-panel { max-height: min(82vh, 680px); }
  .pk-foot { padding: 8px 12px; }
  .fu-empty { font-size: 12px; }
}

/* ==========================================================================
   服务端版（2026-11-11）：顶栏登录状态 / 登录引导 / 登录浮层
   ========================================================================== */

.auth-btn {
  height: 30px;
  padding: 0 12px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
}
.auth-btn:hover { border-color: var(--primary-border); color: var(--text); }
.auth-btn.on { color: var(--skin-primary); border-color: color-mix(in srgb, var(--skin-primary) 34%, var(--border)); }
.auth-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--skin-cta); flex: none; }

.login-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.login-tip svg { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.login-tip > span { flex: 1; min-width: 0; }
.login-tip .btn { flex: none; height: 28px; padding: 0 14px; font-size: 12px; }
.login-tip.compact { font-size: 12px; }
.login-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
}

/* 登录浮层：用 ID 完整定义，不受搜索浮层基类影响 */
#loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, var(--text) 40%, transparent);
}
#loginOverlay.open { display: flex; }
.login-panel {
  width: min(360px, 100%);
  padding: 24px 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--skin-card);
  box-shadow: 0 18px 48px rgba(31, 29, 25, .24);
}
.login-h { font-size: 16px; font-weight: 600; color: var(--text); }
.login-s { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.login-lb { display: block; margin: 16px 0 6px; font-size: 11.5px; color: var(--text-3); }
.login-panel input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--skin-input);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.login-panel input:focus { border-color: var(--skin-primary); background: var(--card); }
.login-err { min-height: 18px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.login-go {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: var(--skin-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login-go:disabled { opacity: .6; cursor: default; }
.login-x {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .auth-btn { height: 28px; padding: 0 10px; margin-left: 6px; font-size: 11.5px; }
  .login-tip { flex-wrap: wrap; }
  .login-tip .btn { margin-left: auto; }
  .login-panel { padding: 20px 18px 16px; }
}
