
/* ========== SIC 通用：Toast ========== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: #18181b; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: var(--shadow-lg); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.toast.warn { background: var(--gold); }
.toast.info { background: #18181b; }

/* ========== 中介后台 ========== */
.agency-wrap { max-width: 1100px; margin: 0 auto; }
/* 中介页面：内容区与页脚之间留出间距，避免贴在一起 */
.agency-page #app { padding-bottom: 64px; }
.agency-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0 20px; flex-wrap: wrap;
}
.agency-head h2 { font-size: 22px; margin: 0; }
.agency-head .agency-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.agency-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.atab {
  padding: 10px 18px; font-size: 15px; color: var(--text-secondary); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.atab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.agency-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.agency-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.agency-table th, .agency-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-light); }
.agency-table th { background: var(--bg-subtle); color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.agency-table tr:last-child td { border-bottom: none; }
.agency-table tbody tr:hover { background: var(--red-light); }
.btn-link { color: var(--red); cursor: pointer; background: none; border: none; font-size: 14px; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-处理中 { background: #fffbeb; color: var(--gold); }
.status-预录取 { background: #ecfdf5; color: #059669; }
.status-已录取 { background: #ecfeff; color: #0284c7; }
.status-已到校 { background: #eef2ff; color: #4f46e5; }
.status-拒录 { background: #fef2f2; color: var(--red); }

/* 录入向导 */
.enroll-wizard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.estep {
  flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle);
  color: var(--text-tertiary); font-size: 14px; text-align: center; border: 1px solid transparent;
}
.estep.active { background: var(--red-light); color: var(--red); border-color: var(--red-soft); font-weight: 600; }
.estep.done { background: #ecfdf5; color: #059669; }
.selected-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--red-light); color: var(--red); font-size: 14px; margin: 6px 6px 0 0; border: 1px solid var(--red-soft);
}
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.enroll-preview { font-size: 14px; }
.enroll-preview .pv-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.enroll-preview .pv-row .k { width: 130px; color: var(--text-secondary); flex: none; }
.enroll-result { text-align: center; padding: 20px 0; }
.enroll-result .er-box { display: inline-block; background: var(--bg-subtle); border: 1px dashed var(--border); border-radius: 12px; padding: 16px 24px; margin: 8px 0; }
.enroll-result .er-box strong { color: var(--red); font-size: 18px; }

/* 详情抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(24,24,27,.45); z-index: 1000; display: none; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 92vw); background: var(--bg-card);
  z-index: 1001; transform: translateX(100%); transition: transform .3s; box-shadow: var(--shadow-lg);
  overflow-y: auto; padding: 28px;
}
.drawer.show { transform: translateX(0); }
.drawer .drawer-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-secondary); }
.detail-section { margin-bottom: 22px; }
.detail-section h4 { font-size: 15px; margin: 0 0 10px; color: var(--text); border-left: 3px solid var(--red); padding-left: 10px; }
.detail-row { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.detail-row .k { width: 120px; color: var(--text-secondary); flex: none; }
.mat-link { color: var(--red); text-decoration: underline; word-break: break-all; }
.auth-card-wrap { max-width: 480px; margin: 24px auto; }
