/* ==================== 彬诚人力-沧州招聘网 - 公众网站 ==================== */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --success: #34a853;
  --warning: #fbbc04;
  --danger: #ea4335;
  --red: #e74c3c;
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --text: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --border: #e0e0e0;
  --border-light: #e8eaed;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --text-dark: #202124;
  --z-header: 100;
  --z-overlay: 200;
  --z-dropdown: 300;
  --z-modal: 1000;
  --z-toast: 1100;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==================== 头部导航 ==================== */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-logo { font-size: 28px; }
.nav-title { font-size: 18px; font-weight: 700; color: var(--primary); }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-link:hover { color: var(--primary); background: var(--bg); }
.nav-link.active { color: var(--primary); background: #e8f0fe; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z-overlay);
}

.mobile-nav-overlay.active { display: block; }

/* ==================== 首页 Hero ==================== */
.hero-section {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  padding: 60px 24px;
  text-align: center;
  color: white;
}
.hero-section h1 { font-size: 32px; margin-bottom: 8px; }
.hero-section p { font-size: 16px; opacity: 0.92; margin-bottom: 0; }
.hero-search {
  max-width: 640px;
  margin: 24px auto 0;
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  background: white;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  color: var(--text);
}

/* ==================== 统计卡片 ==================== */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-val {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
}

/* ==================== 区域网格 ==================== */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.district-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.district-tag:hover {
  box-shadow: var(--shadow-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==================== Section Header ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 { font-size: 20px; font-weight: 700; }

.more-link { color: var(--primary); font-size: 14px; font-weight: 500; }
.more-link:hover { text-decoration: underline; }

/* ==================== 职位卡片网格 ==================== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.job-card {
  display: block;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.job-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.job-card.urgent { border-left: 3px solid var(--red); }

.job-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.job-title { font-size: 16px; font-weight: 600; flex: 1; }

.urgent-tag {
  background: #fef2f2;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.job-company { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.job-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.benefit-tag {
  background: #e8f0fe;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==================== 公司卡片网格 ==================== */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.company-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.company-card:hover {
  box-shadow: var(--shadow-hover);
}

.company-card-icon { font-size: 40px; margin-bottom: 12px; }
.company-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.company-card-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.company-card-jobs { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ==================== 网络招聘会 ==================== */
.jf-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.jf-tab {
  border: 1.5px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.jf-tab:hover { border-color: var(--primary); color: var(--primary); }
.jf-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.jf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.jf-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  border-top: 4px solid var(--primary);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.jf-card:hover { box-shadow: var(--shadow-hover); }
.jf-card.upcoming { border-top-color: var(--warning); }
.jf-card.ongoing { border-top-color: var(--success); }
.jf-card.ended { border-top-color: var(--text-muted); opacity: 0.85; }

.jf-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.jf-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.jf-badge.upcoming { background: #fef7e0; color: #b7791f; }
.jf-badge.ongoing { background: #e6f4ea; color: var(--success); }
.jf-badge.ended { background: #f1f3f4; color: var(--text-muted); }
.jf-venue { font-size: 12px; color: var(--text-muted); }

.jf-title {
  font-size: 17px; font-weight: 700; color: var(--text);
  text-decoration: none; margin-bottom: 6px; display: block;
}
.jf-title:hover { color: var(--primary); }
.jf-host { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.jf-time { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }

.jf-countdown {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.jf-card.upcoming .jf-countdown { color: #b7791f; }
.jf-card.ongoing .jf-countdown { color: var(--success); }
.jf-card.ended .jf-countdown { color: var(--text-muted); }

.jf-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.jf-card-bottom { margin-top: auto; display: flex; gap: 8px; }

.jf-companies { display: flex; flex-wrap: wrap; gap: 10px; }
.jf-company-chip {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--text);
  min-width: 150px; transition: all 0.2s;
}
.jf-company-chip:hover { border-color: var(--primary); background: #e8f0fe; }
.jf-company-chip span { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ==================== 页面通用 ==================== */
.page-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.page-banner h1 { font-size: 28px; margin-bottom: 4px; }
.page-banner p { opacity: 0.9; font-size: 15px; }

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty h3 { margin: 12px 0 4px; color: var(--text); }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  gap: 12px;
  color: var(--text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 筛选栏 ==================== */
.filter-bar {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row input,
.filter-row select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: white;
}

.filter-row input { flex: 1; min-width: 180px; }
.filter-row input:focus,
.filter-row select:focus { border-color: var(--primary); }

.filter-row select {
  cursor: pointer;
  min-width: 120px;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.pagination-inner { display: flex; gap: 4px; align-items: center; }

.pagination-inner button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.pagination-inner button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-inner button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-inner button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==================== 详情页 ==================== */
.detail-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail-header h1 { font-size: 24px; font-weight: 700; }

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.meta-item:nth-child(-n+3) { border-top: none; }
.meta-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.meta-value { font-size: 15px; font-weight: 500; }

.detail-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child { border-bottom: none; }
.detail-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.detail-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==================== 页脚 ==================== */
.site-footer {
  background: #1e293b;
  color: white;
  margin-top: 48px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ==================== 按钮（复用） ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(26,115,232,0.3); }

.btn-outline { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #e8f0fe; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ==================== 导航用户区域 ==================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-user {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
}

.nav-user-btn:hover { border-color: var(--primary); }

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: var(--z-dropdown);
}

.user-dropdown.show { display: block; animation: fadeInDown 0.2s ease; }

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.user-dropdown-menu { padding: 4px; }

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown-item:hover { background: var(--bg); color: var(--danger); }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 注册登录弹窗 ==================== */
.auth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: scaleIn 0.25s ease;
  overflow: hidden;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 1;
}

.auth-close:hover { background: var(--bg); color: var(--text); }

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
}

.auth-tabs button {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.auth-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tabs button:hover:not(.active) { color: var(--text); }

.auth-form {
  padding: 28px 28px 24px;
}

.auth-form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-field input:focus { border-color: var(--primary); }

.auth-code-row {
  display: flex;
  gap: 8px;
}

.auth-code-row input { flex: 1; }

.auth-code-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-error {
  display: none;
  background: #fef2f2;
  color: var(--danger);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.auth-switch a:hover { text-decoration: underline; }

/* ==================== Toast 提示 ==================== */
.cz-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  max-width: 360px;
  z-index: var(--z-toast);
  transform: translateX(420px);
  transition: transform 0.3s ease;
}

.cz-toast.show { transform: translateX(0); }
.cz-toast-success { border-left-color: var(--success); }
.cz-toast-info { border-left-color: var(--primary); }
.cz-toast-warning { border-left-color: var(--warning); }

.cz-toast-icon { font-size: 20px; flex-shrink: 0; }

.cz-toast-title { font-size: 14px; font-weight: 600; color: var(--text); }
.cz-toast-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; gap: 0; }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -280px;
    width: 260px;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: var(--z-overlay);
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions .btn-sm { padding: 6px 12px; font-size: 12px; }
  .nav-user-name { display: none; }

  .hero-section h1 { font-size: 26px; }
  .hero-section p { font-size: 15px; }
  .hero-search { flex-direction: column; border-radius: var(--radius) !important; }
  .hero-search input { border-radius: var(--radius) var(--radius) 0 0 !important; }

  .job-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: repeat(2, 1fr); }

  .filter-row { flex-direction: column; }
  .filter-row input { width: 100%; min-width: auto; }
  .filter-row select { width: 100%; }

  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .district-grid { grid-template-columns: repeat(4, 1fr); }

  .detail-meta { grid-template-columns: 1fr 1fr; }

  .cz-toast { right: 12px; left: 12px; max-width: none; }
  .auth-modal { max-width: 100%; }
}

@media (max-width: 480px) {
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .district-tag { padding: 8px; font-size: 13px; }
  .company-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-section { padding: 36px 16px !important; }
}

/* ==================== 个人中心 / 简历编辑 ==================== */
.profile-page { max-width: 960px; margin: 0 auto; padding: 28px 24px 60px; }

.profile-header {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 24px 28px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; flex-shrink: 0;
}
.profile-head-info { flex: 1; }
.profile-name-row { display: flex; align-items: center; gap: 12px; }
.profile-nickname-input {
  font-size: 20px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px; padding: 6px 12px; width: 220px; font-family: inherit; outline: none;
}
.profile-nickname-input::placeholder { color: rgba(255,255,255,0.7); }
.profile-phone { margin-top: 6px; opacity: 0.9; font-size: 14px; }

.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 22px; }
.profile-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
}
.profile-card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.resume-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 18px; }
.resume-summary-item { display: flex; flex-direction: column; gap: 2px; }
.resume-summary-item span { font-size: 12px; color: var(--text-muted); }
.resume-summary-item b { font-size: 14px; color: var(--text); font-weight: 600; }

.resume-progress { height: 8px; background: var(--bg); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.resume-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 6px; transition: width 0.4s; }
.resume-progress-text { font-size: 13px; color: var(--text-secondary); margin: 8px 0 16px; }

.profile-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-quick-item {
  display: flex; align-items: center; gap: 8px; padding: 14px;
  background: var(--bg); border-radius: var(--radius); font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.profile-quick-item:hover { background: #e8f0fe; color: var(--primary); }

/* 简历编辑表单 */
.resume-edit-head { margin-bottom: 18px; }
.resume-edit-head h1 { font-size: 24px; font-weight: 700; margin-top: 8px; }
.resume-form { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 8px 24px 24px; box-shadow: var(--shadow); }
.form-section { padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.form-section:last-of-type { border-bottom: none; }
.form-section-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none; font-family: inherit;
  box-sizing: border-box; background: #fff; color: var(--text); transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); }
.form-field textarea { resize: vertical; }

.we-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.we-entry { position: relative; border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 16px 4px; background: var(--bg); }
.we-remove {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
  border: none; background: var(--danger); color: #fff; border-radius: 50%;
  cursor: pointer; font-size: 12px; line-height: 1;
}
.we-remove:hover { opacity: 0.85; }

.resume-form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 20px; }

/* ==================== 发布中心 / 企业中心 ==================== */
.publish-choice-card { border: 1px solid var(--border-light); }
.publish-choice-tip { color: var(--text-secondary); font-size: 13px; margin: 4px 0 16px; }
.publish-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.publish-choice-item {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 20px; border: 1.5px solid var(--border-light); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: all .2s; font: inherit;
}
.publish-choice-item:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(22,119,255,.12); transform: translateY(-2px); }
.publish-choice-icon { font-size: 34px; line-height: 1; }
.publish-choice-text { display: flex; flex-direction: column; gap: 4px; }
.publish-choice-text b { font-size: 16px; color: var(--text-dark); }
.publish-choice-text small { color: var(--text-muted); font-size: 12px; }

/* 参加网络招聘会 - 录入企业参会信息 */
.jf-join-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jf-join-card { border: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 12px; }
.jf-join-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jf-join-title { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.jf-join-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.jf-join-time { font-size: 13px; color: var(--text-secondary); }
.jf-joined-tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600;
  background: #e6f4ea; color: var(--success); padding: 4px 12px; border-radius: 20px;
}
.jf-join-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jf-job-checks { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius); background: #fff; }
.checkbox-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-inline input { width: auto; }

.ent-company-card { border: 1px solid var(--border-light); }
.ent-company-head { display: flex; align-items: center; gap: 16px; }
.ent-company-logo {
  width: 56px; height: 56px; border-radius: 14px; flex: 0 0 56px;
  background: linear-gradient(135deg, var(--primary), #6aa9ff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.ent-company-info { flex: 1; min-width: 0; }
.ent-company-name { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.ent-company-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ent-company-desc { margin-top: 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.ent-company-contact { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

.ent-jobs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ent-job-list { display: flex; flex-direction: column; gap: 12px; }
.ent-job-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border-light); border-radius: var(--radius); background: #fff;
}
.ent-job-main { min-width: 0; }
.ent-job-title { font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.ent-job-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ent-job-status { color: var(--success); }
.ent-job-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

.form-field-inline { display: flex; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input { width: auto; }

/* ==================== 投递 / 招聘 / 消息 / 互动 ==================== */
.nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
}
.nav-bell:hover { background: var(--bg); }
.nav-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  font-style: normal;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
}
.job-detail-actions .btn { flex: 0 0 auto; }

/* 我的投递 / 招聘管理 通用 */
.app-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.app-tab {
  padding: 7px 16px;
  border: 1px solid var(--border-light);
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
}
.app-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.app-list { display: grid; gap: 12px; }
.app-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.app-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.app-card-main { min-width: 0; }
.app-card-title { font-size: 15px; font-weight: 600; }
.app-card-meta { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.app-card-remark { font-size: 12px; color: var(--text-muted); margin-top: 6px; background: var(--bg); padding: 6px 8px; border-radius: 6px; }
.app-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.app-card-time { font-size: 12px; color: var(--text-muted); }

.app-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  background: #eee;
  color: #555;
}
.st-pending { background: #fff3e0; color: #e65100; }
.st-viewed { background: #e3f2fd; color: #1565c0; }
.st-interview { background: #ede7f6; color: #5e35b1; }
.st-hired { background: #e8f5e9; color: #2e7d32; }
.st-rejected { background: #fce4ec; color: #c2185b; }

/* 招聘管理卡片 */
.recruit-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.recruit-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.recruit-seeker { font-weight: 600; font-size: 15px; }
.recruit-job { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.recruit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.recruit-remark-row { display: flex; gap: 8px; margin-top: 12px; }
.recruit-remark-input { flex: 1; padding: 8px 10px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 13px; }

/* 消息中心 */
.msg-list { display: grid; gap: 10px; }
.msg-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.msg-item:hover { border-color: var(--primary); }
.msg-unread { background: #f5f9ff; }
.msg-icon { font-size: 22px; line-height: 1; }
.msg-body { flex: 1; min-width: 0; }
.msg-title { font-weight: 600; font-size: 14px; }
.msg-content { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.msg-time { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; margin-top: 6px; }

/* 个人中心 - 工作台菜单 */
.profile-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.profile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}
.profile-menu-item:hover { background: #eaf1fd; color: var(--primary); }

.ent-recruit-card .ent-jobs-head { margin-bottom: 0; }

/* 简历查看弹窗 */
.cz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cz-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow: auto;
  box-shadow: var(--shadow-hover);
}
.cz-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: #fff;
}
.cz-modal-head h3 { margin: 0; font-size: 16px; }
.cz-modal-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.cz-modal-body { padding: 20px; }
.resume-view-row { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--border-light); }
.resume-view-row span { color: var(--text-muted); width: 80px; flex: 0 0 auto; }
.resume-view-intro { margin-top: 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.resume-view-exp { margin-top: 14px; }
.resume-view-exp h4 { margin: 0 0 8px; font-size: 14px; }
.resume-exp-item { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .resume-summary { grid-template-columns: 1fr 1fr; }
  .profile-quick { grid-template-columns: 1fr; }
  .profile-nickname-input { width: 160px; }
  .publish-choice { grid-template-columns: 1fr; }
  .jf-join-list { grid-template-columns: 1fr; }
  .ent-company-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .profile-page { padding: 16px 14px 50px; }
  .profile-header { flex-direction: column; text-align: center; }
  .resume-summary { grid-template-columns: 1fr; }
  .ent-job-row { flex-direction: column; align-items: stretch; }
  .ent-job-actions { justify-content: flex-end; }
}
