/* ===== matchcand 人岗匹配页面样式 ===== */

/* ---- Hero ---- */
.page-hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.page-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #b8b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-size: 18px;
  color: #9aa0b4;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- 双栏主体 ---- */
.match-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
}

/* ---- 左侧表单卡片 ---- */
.match-form-card {
  background: rgba(22, 22, 38, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 15px;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246,0.15);
}
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  min-height: 260px;
  transition: border-color .2s, box-shadow .2s;
}
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246,0.15);
}
.btn-match {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(59, 130, 246,0.3);
}
.btn-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246,0.45);
}
.btn-match:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.form-tip {
  font-size: 13px;
  color: #6b7280;
  margin: 14px 0 0;
}

/* ---- 右侧结果 ---- */
.match-result {
  min-height: 500px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}
.result-title {
  font-size: 17px;
  color: #d1d5db;
}
.result-title span { color: var(--primary); font-weight: 600; }
.result-note {
  font-size: 13px;
  color: #6b7280;
}

/* ---- 候选人卡片 ---- */
.candidate-list { display: flex; flex-direction: column; gap: 16px; }
.candidate-card {
  background: rgba(22,22,38,0.75);
  border: 1px solid rgba(59, 130, 246,0.2);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.candidate-card:hover {
  border-color: rgba(59, 130, 246,0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246,0.15);
}
.candidate-card.highlight {
  border-color: rgba(59, 130, 246,0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246,0.25), 0 8px 24px rgba(59, 130, 246,0.12);
}

.cand-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.cand-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(59, 130, 246,0.3);
}
.cand-info { flex: 1; min-width: 0; }
.cand-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cand-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.cand-position {
  background: rgba(59, 130, 246,0.15);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246,0.25);
}
.cand-score {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cand-stars {
  display: inline-flex; gap: 3px;
  font-size: 18px; color: #3b3b52;
}
.cand-stars .star-on { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,0.4); }
.cand-stars .star-half {
  position: relative;
  color: #3b3b52;
}
.cand-stars .star-half::before {
  content: '★';
  position: absolute;
  left: 0; top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}
.cand-reason {
  font-size: 13px;
  color: #bfdbfe;
  margin: 4px 0 10px;
  line-height: 1.6;
  padding-left: 10px;
  border-left: 2px solid rgba(59, 130, 246,0.5);
}
.cand-score-num {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cand-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.cand-meta span b { color: #d1d5db; font-weight: 500; margin-right: 4px; }
.cand-major {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.cand-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cand-skill {
  background: rgba(59, 130, 246,0.12);
  color: #bfdbfe;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(59, 130, 246,0.2);
}

/* ---- 加载态 ---- */
.match-loading {
  padding: 80px 20px;
  text-align: center;
}
.loading-bar {
  width: 280px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin: 0 auto 24px;
  overflow: hidden;
}
.loading-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 3px;
  animation: matchLoading 2.2s ease-in-out forwards;
}
@keyframes matchLoading {
  0%   { width: 0%; }
  25%  { width: 35%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}
.loading-text {
  color: #9ca3af;
  font-size: 15px;
}

/* ---- 空状态 ---- */
.match-empty {
  padding: 80px 20px;
  text-align: center;
  color: #6b7280;
}
.empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: #4b5563;
}
.empty-icon svg { width: 100%; height: 100%; }

/* ---- 相关能力 ---- */
.related-solution {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 24px;
}
.section-title {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}
.solution-tags { display: flex; gap: 14px; flex-wrap: wrap; }
.solution-tag {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  color: #d1d5db;
  font-size: 15px;
  transition: all .2s;
  text-decoration: none;
}
.solution-tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}
.solution-tag.active {
  background: rgba(59, 130, 246,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ---- 响应式 ---- */
@media (max-width: 1000px) {
  .match-main {
    grid-template-columns: 1fr;
  }
  .match-form-card { position: static; }
  .page-title { font-size: 40px; }
}
@media (max-width: 600px) {
  .cand-top { flex-direction: column; }
  .cand-score { margin-left: 0; }
  .page-title { font-size: 32px; }
}
.contact-qr-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.contact-qr-item {
    text-align: center;
}
.contact-qr-img {
    width: 128px;
    height: 128px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.contact-qr-img img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}
.contact-qr-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}