/* ===== 同分去向查询 · 页面专属样式 ===== */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100%; }
.tf-wrap { flex: 1 0 auto; max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; width: 100%; }
.tf-wrap header { text-align: center; padding: 16px 0 22px; }
.tf-wrap header h1 { font-size: 26px; font-weight: 700; color: #185FA5; }

/* 控制区 */
.tf-controls {
  background: #fff; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 16px;
  display: flex; flex-wrap: nowrap; gap: 10px; align-items: center;
}
.tf-field { display: flex; align-items: center; gap: 5px; flex: none; }
.tf-field label { font-size: 12px; color: #666; font-weight: 600; white-space: nowrap; }
.tf-field select, .tf-field input {
  padding: 7px 8px; border: 1px solid #d9d9d9; border-radius: 8px;
  font-size: 13px; background: #fff; color: #2c2c2a; outline: none;
  width: 96px;
}
.tf-field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 16px;
}
.tf-field select:focus, .tf-field input:focus { border-color: #185FA5; box-shadow: 0 0 0 2px rgba(24,95,165,0.15); }
.tf-btn {
  padding: 7px 14px; border: none; border-radius: 8px; font-size: 13px;
  cursor: pointer; background: #185FA5; color: #fff; font-weight: 600;
  align-self: center; white-space: nowrap; flex: none;
}
.tf-btn:hover { background: #0C447C; }
.tf-btn.ghost { background: #fff; color: #185FA5; border: 1px solid #185FA5; }
.tf-btn.ghost:hover { background: #e8f0f8; }

/* 选科 chips */
.tf-subjects { display: flex; gap: 4px; align-items: center; }
.tf-subj {
  padding: 3px 8px; border-radius: 14px; font-size: 12px; cursor: pointer;
  background: #f0f0f0; color: #555; user-select: none; border: 1px solid transparent;
  white-space: nowrap;
}
.tf-subj.on { background: #185FA5; color: #fff; }
.tf-subj.disabled { opacity: 0.35; cursor: not-allowed; }

/* 状态 */
#tf-status { text-align: center; color: #999; padding: 30px 0; font-size: 14px; }
#tf-status.hidden { display: none; }
#tf-status.loading { color: #185FA5; }
#tf-status.error { color: #C0392B; }

/* 三部分垂直排列 */
.tf-cols { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.tf-card {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tf-card h2 { font-size: 16px; color: #0C447C; margin-bottom: 4px; }
.tf-card .tf-sub { font-size: 12px; color: #888780; margin-bottom: 12px; }
.tf-rank-num {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #c5c9cf;
}
.tf-rank-total {
  width: 70px; flex: none; font-size: 12px; color: #999; text-align: right;
}

/* 院校卡片 */
.tf-uni-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tf-uni-card {
  background: #f7f9fc; border: 1px solid #e8edf3; border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.tf-uni-card:hover { border-color: #185FA5; }
.tf-uc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tf-uc-rank {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #c5c9cf;
}
.tf-uc-name {
  font-size: 14px; font-weight: 600; color: #2c2c2a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.tf-uc-pct { font-size: 13px; color: #185FA5; font-weight: 700; flex: none; white-space: nowrap; }
.tf-uc-total { font-size: 12px; color: #999; flex: none; white-space: nowrap; }
.tf-uc-meta {
  font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tf-prov-group { margin-bottom: 10px; }
.tf-prov-head {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px;
  margin-bottom: 4px; white-space: nowrap;
}
.tf-prov-head > span:nth-child(2) { width: 220px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-prov-head .tf-pct { color: #185FA5; font-weight: 700; width: 80px; flex: none; text-align: right; }
.tf-prov-head .tf-rank-total { width: 70px; flex: none; text-align: right; }

.tf-city-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.tf-city-card {
  background: #f7f9fc; border: 1px solid #e8edf3; border-radius: 8px;
  padding: 8px 6px; text-align: center;
}
.tf-city-card:hover { border-color: #185FA5; }
.tf-cc-name { font-size: 13px; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-cc-pct { font-size: 12px; color: #185FA5; font-weight: 700; margin-top: 2px; }

@media (max-width: 1100px) {
  .tf-controls { flex-wrap: wrap; }
}
