/* ============================================================
   码上行 — IT人才灵活接单平台  样式表
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-lighter: #818cf8;
  --primary-dark: #4338ca;
  --primary-bg: #eef2ff;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --pink: #ec4899;

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-white: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: var(--transition);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.35); }
.btn-outline { background: transparent; border-color: var(--border-dark); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text-primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.logo-icon { font-size: 24px; }
.logo-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-bg); }
.nav-link.active { color: var(--primary); background: var(--primary-bg); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; }
.show-logged-in,
.show-logged-out { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- 页面切换 ---------- */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: float 20s infinite ease-in-out; }
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -50px; }
.blob-2 { width: 350px; height: 350px; background: var(--secondary); bottom: -80px; left: -80px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 50%; animation-delay: -10s; opacity: 0.15; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.05); } 66% { transform: translate(-20px,20px) scale(0.95); } }
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(255,255,255,0.8); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--primary);
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--pink) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }
.hero-search { max-width: 640px; margin: 0 auto; }
.hero-search-bar { display: flex; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 6px 6px 6px 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.search-icon { font-size: 18px; color: var(--text-tertiary); }
.hero-search-bar input { flex: 1; border: none; padding: 12px 12px; font-size: 15px; background: transparent; }
.hero-search-bar .btn { border-radius: var(--radius); }
.hero-search-tags { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--text-tertiary); justify-content: center; flex-wrap: wrap; }
.hero-search-tags a { color: var(--primary); font-weight: 500; transition: var(--transition); }
.hero-search-tags a:hover { text-decoration: underline; }

/* ---------- 统计 ---------- */
.stats-section { padding: 64px 0; background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 32px 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface-alt) 0%, #fff 100%); border: 1px solid var(--border); transition: var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-lighter); }
.stat-number { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary); background: var(--primary-bg); padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.section-footer { text-align: center; margin-top: 40px; }

/* ---------- How it works ---------- */
.how-it-works { padding: 80px 0; background: var(--bg); }
.how-grid { display: flex; align-items: center; justify-content: center; gap: 16px; }
.how-card { flex: 1; max-width: 280px; text-align: center; padding: 40px 24px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-lighter); }
.how-icon { font-size: 48px; margin-bottom: 16px; }
.how-step { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary); margin-bottom: 8px; }
.how-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.how-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.how-connector { flex-shrink: 0; }

/* ---------- 分类 ---------- */
.categories-section { padding: 80px 0; background: var(--surface); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card { padding: 24px 16px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--border); text-align: center; cursor: pointer; transition: var(--transition); }
.category-card:hover { background: var(--primary-bg); border-color: var(--primary-lighter); transform: translateY(-4px); }
.category-icon { font-size: 32px; margin-bottom: 10px; }
.category-name { font-size: 14px; font-weight: 600; }
.category-count { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- 人才卡片 ---------- */
.featured-section { padding: 80px 0; background: var(--bg); }
.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.talent-card {
  background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 28px 24px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.talent-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.talent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-lighter); }
.talent-card:hover::before { transform: scaleX(1); }
.talent-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.talent-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--surface-alt); flex-shrink: 0; border: 2px solid var(--border); }
.talent-info { flex: 1; min-width: 0; }
.talent-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.talent-verified { color: var(--secondary); font-size: 14px; }
.talent-title { font-size: 14px; color: var(--text-secondary); }
.talent-top-badge { position: absolute; top: 16px; right: 16px; background: linear-gradient(135deg, var(--accent), #f97316); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.talent-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.talent-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.skill-tag { font-size: 12px; padding: 3px 10px; border-radius: 100px; background: var(--primary-bg); color: var(--primary); font-weight: 500; }
.skill-tag.more { background: var(--surface-alt); color: var(--text-tertiary); }
.talent-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.talent-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.talent-rating .star { color: var(--accent); }
.talent-rating .review-count { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }
.talent-rate { text-align: right; }
.talent-rate .price { font-size: 18px; font-weight: 800; color: var(--primary); }
.talent-rate .unit { font-size: 12px; color: var(--text-tertiary); }
.talent-footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-tertiary); }
.talent-footer span { display: flex; align-items: center; gap: 4px; }

/* ---------- Why Us ---------- */
.why-section { padding: 80px 0; background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { padding: 32px 24px; border-radius: var(--radius-lg); background: var(--surface-alt); border: 1px solid var(--border); transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; background: var(--bg); }
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-xl); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%); }
.cta-content { position: relative; }
.cta-content h2 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 16px; }
.cta-actions { display: flex; gap: 12px; position: relative; }

/* ---------- 人才市场页 ---------- */
.page-header { padding: 48px 0 32px; background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-header p { font-size: 16px; color: var(--text-secondary); }
.register-header { background: linear-gradient(135deg, #ede9fe 0%, #fff 100%); }
.postjob-header { background: linear-gradient(135deg, #ccfbf1 0%, #fff 100%); }

.marketplace-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 24px; }
.filter-sidebar { position: sticky; top: 88px; align-self: start; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text-secondary); transition: var(--transition); }
.filter-check:hover { color: var(--primary); }
.filter-check input { accent-color: var(--primary); }
.price-range { position: relative; height: 40px; margin-bottom: 8px; }
.price-range input[type="range"] { position: absolute; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; height: 4px; background: transparent; }
.price-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid #fff; box-shadow: var(--shadow); }
.price-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid #fff; }
.price-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

.marketplace-main { min-width: 0; }
.marketplace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; flex: 1; max-width: 400px; }
.search-box-lg { max-width: 500px; }
.search-box input { border: none; padding: 12px 0; flex: 1; background: transparent; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.toolbar-right { display: flex; align-items: center; gap: 16px; }
.result-count { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.sort-select { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; cursor: pointer; }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* ---------- 职位卡片 ---------- */
.jobs-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.job-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.job-filter-chip { padding: 6px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.job-filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.job-filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 64px; }
.job-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; cursor: pointer; transition: var(--transition); position: relative; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-lighter); }
.job-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.job-company-avatar { width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0; }
.job-card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.job-card-company { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.job-verified { color: var(--secondary); font-size: 13px; }
.job-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.job-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.job-meta-left { display: flex; gap: 12px; font-size: 12px; color: var(--text-tertiary); }
.job-meta-left span { display: flex; align-items: center; gap: 4px; }
.job-budget { font-size: 18px; font-weight: 800; color: var(--primary); }
.job-budget .unit { font-size: 13px; font-weight: 500; color: var(--text-tertiary); }

/* ---------- 表单 ---------- */
.form-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; }
.form-sidebar { position: sticky; top: 88px; align-self: start; }
.form-step { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); margin-bottom: 8px; transition: var(--transition); opacity: 0.5; }
.form-step.active { opacity: 1; background: var(--primary-bg); }
.form-step.completed { opacity: 0.8; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-alt); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; transition: var(--transition); }
.form-step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-step.completed .step-num { background: var(--success); color: #fff; border-color: var(--success); }
.step-title { font-size: 14px; font-weight: 600; }
.step-desc { font-size: 12px; color: var(--text-tertiary); }
.form-main { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 40px; }
.form-step-content { display: none; animation: fadeIn 0.3s ease; }
.form-step-content.active { display: block; }
.form-heading { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.form-subheading { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.required { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: var(--transition); font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }
.input-prefix { position: relative; display: flex; align-items: center; }
.input-prefix span:first-child { position: absolute; left: 14px; font-weight: 600; color: var(--text-secondary); }
.input-prefix input { padding-left: 32px; }
.input-prefix .suffix { position: absolute; right: 14px; font-size: 13px; color: var(--text-tertiary); }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { display: block; cursor: pointer; }
.radio-card input { display: none; }
.radio-content { padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.radio-card input:checked + .radio-content { border-color: var(--primary); background: var(--primary-bg); }
.radio-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.radio-desc { font-size: 12px; color: var(--text-tertiary); }
.skill-input-area { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; align-items: center; transition: var(--transition); }
.skill-input-area:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.skill-tags-display { display: contents; }
.skill-tag-removable { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 100px; background: var(--primary-bg); color: var(--primary); font-size: 13px; font-weight: 500; }
.skill-tag-removable .remove { cursor: pointer; opacity: 0.6; transition: var(--transition); }
.skill-tag-removable .remove:hover { opacity: 1; }
.skill-input-area input { border: none; outline: none; flex: 1; min-width: 120px; padding: 4px 8px; background: transparent; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 100px; font-size: 14px; cursor: pointer; transition: var(--transition); }
.checkbox-chip input { display: none; }
.checkbox-chip:has(input:checked) { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.portfolio-item { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; margin-bottom: 8px; }
.portfolio-item input { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.form-actions { display: flex; justify-content: space-between; margin-top: 32px; }
.form-notice { display: flex; gap: 16px; padding: 20px; background: var(--primary-bg); border-radius: var(--radius); border: 1px solid var(--primary-lighter); margin: 24px 0; }
.notice-icon { font-size: 28px; }
.notice-content strong { display: block; font-size: 14px; margin-bottom: 4px; }
.notice-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.form-agree { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin: 16px 0; }
.form-agree input { accent-color: var(--primary); width: 16px; height: 16px; }
.confirm-summary { background: var(--surface-alt); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.confirm-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-label { width: 120px; color: var(--text-tertiary); flex-shrink: 0; }
.confirm-value { font-weight: 500; }
.confirm-skills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 发布需求页 ---------- */
.postjob-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px 0 64px; }
.postjob-tips { display: flex; flex-direction: column; gap: 16px; }
.tips-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; }
.tips-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.tips-card ul { list-style: none; }
.tips-card li { font-size: 13px; color: var(--text-secondary); padding: 6px 0; line-height: 1.5; }
.tips-card li strong { color: var(--text-primary); }
.price-ref-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.price-ref-item:last-child { border-bottom: none; }
.price-ref-item span:last-child { font-weight: 600; color: var(--primary); }

/* ---------- 弹窗 ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-container { background: var(--surface); border-radius: var(--radius-xl); max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-xl); }
.modal-container-sm { max-width: 560px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 10; transition: var(--transition); }
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 0; }

/* 人才详情弹窗内容 */
.modal-profile-header { padding: 32px 32px 24px; background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 100%); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-profile-top { display: flex; gap: 20px; }
.modal-profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); }
.modal-profile-info { flex: 1; }
.modal-profile-name { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modal-profile-title { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }
.modal-profile-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.profile-badge { font-size: 12px; padding: 4px 12px; border-radius: 100px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.badge-top { background: linear-gradient(135deg, var(--accent), #f97316); color: #fff; }
.badge-verified { background: var(--secondary-bg, #ecfdf5); color: var(--success); border: 1px solid #a7f3d0; }
.badge-loc { background: var(--surface-alt); color: var(--text-secondary); }
.modal-profile-stats { display: flex; gap: 24px; margin-top: 16px; }
.profile-stat { text-align: center; }
.profile-stat .num { font-size: 20px; font-weight: 800; color: var(--primary); }
.profile-stat .label { font-size: 12px; color: var(--text-tertiary); }
.modal-profile-body { padding: 24px 32px 32px; }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.modal-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.modal-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-portfolio-item { padding: 16px; background: var(--surface-alt); border-radius: var(--radius); margin-bottom: 8px; }
.modal-portfolio-item .name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.modal-portfolio-item .desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.modal-portfolio-item .tech { font-size: 12px; color: var(--primary); font-weight: 500; }
.modal-contact-bar { display: flex; gap: 12px; padding: 20px 32px; background: var(--surface-alt); border-top: 1px solid var(--border); position: sticky; bottom: 0; }

/* 职位详情弹窗 */
.modal-job-header { padding: 28px 32px 20px; }
.modal-job-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-job-company { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.modal-job-body { padding: 0 32px 24px; }
.modal-job-section { margin-bottom: 20px; }
.modal-job-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.modal-job-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.modal-job-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.modal-job-info-item { padding: 12px 16px; background: var(--surface-alt); border-radius: var(--radius-sm); }
.modal-job-info-item .label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.modal-job-info-item .value { font-size: 15px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text-primary); color: #fff; padding: 14px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500; z-index: 3000; box-shadow: var(--shadow-lg); transition: transform 0.3s ease; opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---------- 导航栏用户菜单 ---------- */
.user-menu-trigger { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--radius-sm); transition: var(--transition); }
.user-menu-trigger:hover { background: var(--surface-alt); }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); }
.nav-user-name { font-size: 13px; font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 聊天页 ---------- */
.chat-page { display: flex; height: calc(100vh - 64px); }
.chat-sidebar { width: 320px; border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.chat-sidebar-header h3 { font-size: 18px; font-weight: 800; }
.chat-conversations { flex: 1; overflow-y: auto; }
.chat-empty { padding: 40px 20px; text-align: center; color: var(--text-tertiary); }
.chat-empty p { font-size: 14px; }
.chat-empty .sub { font-size: 12px; margin-top: 4px; }
.chat-conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.chat-conv-item:hover { background: var(--surface-alt); }
.chat-conv-item.active { background: var(--primary-bg); }
.chat-conv-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--surface-alt); }
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.chat-conv-preview { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-meta { text-align: right; flex-shrink: 0; }
.chat-conv-time { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }
.chat-conv-unread { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 100px; min-width: 20px; text-align: center; }
.chat-main { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.chat-main-header { padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); min-height: 56px; display: flex; align-items: center; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.chat-messages-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chat-typing { padding: 4px 24px; font-size: 12px; color: var(--text-tertiary); font-style: italic; }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 70%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.chat-msg-bubble { background: var(--surface); padding: 10px 16px; border-radius: 16px; border: 1px solid var(--border); }
.chat-msg.mine .chat-msg-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-msg-text { font-size: 14px; line-height: 1.5; }
.chat-msg-time { font-size: 10px; margin-top: 4px; opacity: 0.6; text-align: right; }
.chat-input-area { display: flex; gap: 12px; padding: 16px 24px; background: var(--surface); border-top: 1px solid var(--border); }
.chat-input-area input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.chat-input-area input:focus { border-color: var(--primary); outline: none; }

/* ---------- Dashboard ---------- */
.dashboard-header { background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; }
.dashboard-sidebar { position: sticky; top: 88px; align-self: start; }
.dash-profile { text-align: center; padding: 24px 16px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 16px; }
.dash-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--primary-lighter); margin-bottom: 12px; }
.dash-name { font-size: 17px; font-weight: 700; }
.dash-role { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.dash-nav { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.dash-nav-item { display: block; padding: 14px 20px; font-size: 14px; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; color: var(--text-secondary); }
.dash-nav-item:hover { background: var(--surface-alt); color: var(--text-primary); }
.dash-nav-item.active { background: var(--primary-bg); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.dashboard-content { min-width: 0; }
.dash-section { margin-bottom: 24px; }
.dash-section h3 { font-size: 18px; font-weight: 700; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.dash-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.dash-stat-label { font-size: 13px; color: var(--text-secondary); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 账户安全 + 改密码 */
.dash-account-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 32px;
}
.dash-account-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
}
.dash-account-item + .dash-account-item { border-top: 1px solid var(--border); }
.dash-account-label { font-size: 14px; color: var(--text-secondary); }
.dash-account-value { font-size: 14px; font-weight: 600; }

.pwd-form { max-width: 400px; }
.pwd-form .form-group { margin-bottom: 16px; }
.pwd-form .form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.pwd-form .form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  transition: border-color 0.2s; box-sizing: border-box;
  background: var(--surface); color: var(--text-primary);
}
.pwd-form .form-input:focus { border-color: var(--primary); }
.pwd-form .btn-primary { margin-top: 8px; }

.dash-profile-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; }
.dash-profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dash-profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border); }
.dash-profile-name { font-size: 20px; font-weight: 700; }
.dash-profile-title { font-size: 14px; color: var(--text-secondary); }
.dash-profile-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.dash-card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dash-card-desc { font-size: 13px; color: var(--text-secondary); }

/* ---------- 响应式补充 ---------- */
@media (max-width: 968px) {
  .chat-sidebar { width: 100%; }
  .chat-main { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .show-logged-in, .show-logged-out { width: 100%; justify-content: center; }
}

/* ---------- 页脚 ---------- */
.footer { background: #1e293b; color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.show { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { flex-direction: column; }
  .how-connector { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .talent-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; text-align: center; padding: 40px 24px; }
  .marketplace-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .jobs-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-sidebar { position: static; }
  .form-step { display: none; }
  .form-main { padding: 24px; }
  .postjob-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
  .portfolio-item { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .modal-profile-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
