/**
 * ============================================
 * 首页样式�?- index.css
 * 包含首页专用的样�? * ============================================
 */

/* ===== 品牌Logo ===== */
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 搜索结果视图 ===== */
.search-result-view {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.search-result-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.search-keyword-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-keyword-label {
  font-size: 13px;
  color: var(--text-tertiary);
}
.search-keyword {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.search-keyword-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: var(--transition);
}
.search-keyword-clear:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* ===== 地域筛选栏（搜索结果页�?===== */
.region-filter-bar {
  padding: 10px 0;
  background: var(--bg);
}
.region-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.region-filter-scroll::-webkit-scrollbar { display: none; }
.region-chip {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.region-chip:hover { border-color: var(--accent); color: var(--accent); }
.region-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 地域筛选面�?===== */
.region-filter-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.region-filter-panel.active {
  transform: translateY(0);
}
.region-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.region-filter-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.region-filter-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}
.region-filter-close:hover { background: var(--border); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.region-item {
  padding: 10px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.region-item:hover { border-color: var(--accent); color: var(--accent); }
.region-item.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ===== 筛选栏城市按钮 ===== */
.filter-chip.region-trigger svg { color: var(--accent); }

/* ===== ɸѡ���ƶ����Ż� ===== */
.filter-bar-container {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 31px;
}

/* ����λ��ɸѡ��ť */
.filter-chip.location-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 16px;
}

.filter-chip.location-chip:hover {
  background: var(--border);
}

.filter-chip.location-chip svg {
  color: var(--accent);
}

/* ȫ����ť�̶� */
/* ȫ����ť�̶� */
.filter-bar-container > .filter-chip:first-child {
  flex-shrink: 0;
  margin-right: 6px;
}

/* ȫ����ť�ұ߾� */
#allTypeChip {
  margin-right: 6px;
}

/* �ɹ������� */
.filter-bar-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-right: 40px;
  flex: 1;
  min-width: 0;
}

.filter-bar-scroll::-webkit-scrollbar {
  display: none;
}

/* ɸѡ��ť��ʽ�Ż� */
.filter-bar-scroll .filter-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* �Ҳཥ��������ʾ���и������� */
.filter-bar-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--surface) 70%);
  pointer-events: none;
  z-index: 1;
}

/* ������Ҫ��Զ�λ */
.filter-bar-container {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 16px;
  position: relative;
}

/* ɸѡ��ť�ƶ����Ż� */
@media (max-width: 480px) {
  .filter-chip {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
  }
  .filter-chip svg {
    width: 12px;
    height: 12px;
  }
}

/* ɸѡ����������������ʾ�� */
.filter-bar-wrap {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--surface);
  z-index: 999;
  border-bottom: 1px solid var(--border);
}

/* ����ָʾ�� */
.filter-scroll-hint {
  display: none;
}

@media (max-width: 480px) {
  .filter-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0 8px;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    background: var(--surface);
  }
  .filter-scroll-hint svg {
    width: 12px;
    height: 12px;
    animation: scrollHint 1.5s ease-in-out infinite;
  }
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ������ʾ�Ĺ��ɶ��� */
.filter-scroll-hint {
  transition: opacity 0.3s ease;
}

/* ===== 关闭搜索结果按钮 ===== */
.results-close-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.results-close-btn:hover {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

/* ===== 搜索结果岗位列表 ===== */
.search-result-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
}

/* ===== 首页快捷入口按钮 ===== */
.home-quick-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.quick-action-btn {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}
.quick-action-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.quick-action-btn.secondary {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.quick-action-btn.secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

/* ===== 底部登录引导 ===== */
.bottom-gate {
  padding: 16px 20px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.bottom-gate-inner {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.bottom-gate-inner p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.btn-outline {
  height: 44px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--accent-light); }

/* ===== 锁定横幅 ===== */
.lock-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lock-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.lock-banner h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.lock-banner p { font-size: 13px; opacity: 0.8; margin-bottom: 14px; line-height: 1.5; }
.lock-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lock-banner-btn:hover { background: rgba(255,255,255,0.25); }

/* ===== 演示切换器（开发调试用�?===== */
.demo-bar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex-shrink: 0;
}
.demo-bar::-webkit-scrollbar { display: none; }
.demo-label {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.demo-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.demo-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.demo-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 加载更多提示 ===== */
.load-more-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--text-tertiary);
  font-size: 13px;
}
.load-more-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ===== ʡ-������ɸѡ��ʽ ===== */
.region-picker {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.region-province-list {
  width: 100px;
  background: var(--bg);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.region-province-item {
  width: 100%;
  padding: 14px 12px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.region-province-item:hover {
  background: var(--surface);
}
.region-province-item.active {
  background: var(--surface);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.region-city-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}
.region-city-item {
  padding: 10px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.region-city-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.region-city-item.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.region-filter-footer {
  display: flex;
  gap: 12px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.region-btn-reset {
  flex: 1;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
}
.region-btn-confirm {
  flex: 2;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  cursor: pointer;
}

/* ===== AI �Ƽ�רҵ��ʽ��ǳɫ�棩 ===== */
.job-ai-match {
  margin: 12px 0;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.ai-match-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ai-icon {
  color: #64748b;
  animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ai-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.5px;
}
.ai-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.ai-tag-primary {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}
.ai-tag-more {
  background: transparent;
  border: 1px dashed #94a3b8;
  color: #64748b;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.ai-tag-more:hover {
  background: rgba(148, 163, 184, 0.1);
  border-style: solid;
}

/* ===== �ͷ�������ʽ�����������һ�£� ===== */
#serviceModal {
  align-items: center;
}
#serviceModal .modal-sheet {
  border-radius: var(--radius-xl);
  max-width: 320px;
  animation: modalCenterIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalCenterIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.service-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 28px;
}
.service-qr-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.service-qr-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: #07C160;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(7,193,96,0.3);
}
.service-tip {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.service-desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== ��ҳҳ�������������ܿ��̶����� ===== */
#page-home {
  padding-top: 110px;
}

/* ===== ͳ����Ϣ����ʽ ===== */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  animation: fadeInSlide 0.4s ease;
}

.stats-badge.today {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.stats-badge.yesterday {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.stats-total {
  font-size: 14px;
  color: var(--text-secondary);
}

.stats-total strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.stats-highlight {
  color: var(--accent);
  font-weight: 700;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ���ͷ����ʽ�Ż� */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  min-height: 56px;
}

/* ===== AI ������ť ===== */
.ai-analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
}
.ai-analyze-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.ai-analyze-btn svg {
  flex-shrink: 0;
}

/* ===== AI �������� ===== */
.ai-analyze-modal {
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ����ͷ���̶� */
.ai-analyze-modal .modal-header {
  flex-shrink: 0;
  background: var(--surface);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

/* ������������ɹ��� */
.ai-analyze-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  /* �Զ����������ʽ */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Webkit �������������ʽ */
.ai-analyze-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.ai-analyze-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.ai-analyze-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.ai-analyze-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* �رհ�ť��ʽ�Ż� */
.ai-analyze-modal .modal-close {
  border-radius: 50%;
}
.ai-analyze-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.ai-analyze-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.ai-analyze-loading p {
  color: var(--text-secondary);
  font-size: 14px;
}
.ai-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* AI����������ʾ���� - ȫ��ͳһ��ʾɫ */
.ai-result-hint {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
}
.ai-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-result-item {
  padding: 16px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.ai-result-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ai-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-result-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.ai-result-match {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
}
.ai-result-positions {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.ai-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.ai-result-btn:hover {
  opacity: 0.9;
}
.ai-analyze-limit {
  text-align: center;
  padding: 40px 20px;
}
.ai-limit-icon {
  margin-bottom: 16px;
  color: var(--text-tertiary);
}
.ai-analyze-limit h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ai-analyze-limit p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* AI �����е����������� */
.ai-invite-input-wrap {
  margin: 20px 0 12px;
}
.ai-invite-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font);
  text-align: center;
  letter-spacing: 2px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.ai-invite-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.ai-invite-input::placeholder {
  color: var(--text-tertiary);
  letter-spacing: 1px;
}
.ai-invite-error {
  display: none;
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 18px;
}
.ai-invite-hint {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.ai-invite-hint span {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--accent-light);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-invite-hint span:hover {
  background: var(--accent);
  color: #fff;
}
/* ===== 页面顶部间距 ===== */
#page-home {
  padding-top: 110px; /* 56px固定头部 + 约54px筛选栏 */
}
#page-resume {
  padding-top: 0;
}

/* ===== 匹配专业表格样式 ===== */
.match-major-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.match-major-row {
  display: flex;
}
.match-major-row:first-child {
  border-bottom: 1px solid var(--border);
}
.match-major-row.match-major-header {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-major-row.matched {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
}
.match-major-col {
  flex: 1;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.match-major-col:first-child {
  flex: 0 0 100px;
  border-right: 1px dashed var(--border);
  font-weight: 600;
  color: var(--text-primary);
}
.match-major-row.matched .match-major-col:first-child {
  color: var(--success);
}
.match-major-col:last-child {
  color: var(--text-secondary);
  flex-wrap: wrap;
  align-items: flex-start;
}
.match-major-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  margin-top: 4px;
  flex-shrink: 0;
}
.match-major-tag svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.match-major-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.match-major-major-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.match-major-major-item.matched {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
  border-color: rgba(34, 197, 94, 0.3);
  color: #047857;
  font-weight: 600;
}
