/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2b6beb;
  --primary-dark: #1a55d4;
  --primary-light: #e8f0fe;
  --secondary: #ff6b35;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --text-primary: #1a1a2e;
  --text-secondary: #666;
  --text-light: #999;
  --bg-light: #f5f6fa;
  --bg-white: #fff;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(43,107,235,0.15);
  --radius: 8px;
  --radius-lg: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,107,235,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-orange {
  background: var(--secondary);
  color: #fff;
}

.btn-orange:hover {
  background: #e55a25;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #3da012;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 8px;
}

/* ==================== Hero区域 ==================== */
.hero {
  background: linear-gradient(135deg, #1a3a7c 0%, #2b6beb 50%, #4d8ef0 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: #ffd666;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 40px;
}

.hero-search {
  display: flex;
  max-width: 640px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-primary);
  background: transparent;
}

.hero-search .btn {
  border-radius: 40px;
  padding: 10px 28px;
  font-size: 15px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags span {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-tags span:hover {
  background: rgba(255,255,255,0.25);
}

/* ==================== 数据统计条 ==================== */
.stats-bar {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px 0;
}

.stats-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==================== 区块标题 ==================== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}

.section-more {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
}

.section-more:hover {
  text-decoration: underline;
}

/* ==================== 职位卡片 ==================== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.job-card:hover::before {
  opacity: 1;
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.job-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.job-salary {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
  margin-left: 12px;
}

.job-company {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-tag {
  background: #f0f5ff;
  color: var(--primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
}

.tag.hot {
  background: #fff2e8;
  color: var(--secondary);
}

.tag.new {
  background: #f6ffed;
  color: var(--success);
}

.job-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.recruiter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6c9ef8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar.orange { background: linear-gradient(135deg, var(--secondary), #ff9a6c); }
.avatar.green { background: linear-gradient(135deg, var(--success), #7ecc4d); }
.avatar.purple { background: linear-gradient(135deg, #722ed1, #b37feb); }

.recruiter-info {
  font-size: 12px;
}

.recruiter-name {
  color: var(--text-primary);
  font-weight: 500;
}

.recruiter-title {
  color: var(--text-light);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* ==================== 公司展示 ==================== */
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.company-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.company-info {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.company-jobs {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ==================== 分类导航 ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.category-item:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.category-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.category-count {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ==================== 下单功能区 ==================== */
.order-banner {
  background: linear-gradient(135deg, #ff6b35 0%, #ff9a6c 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  box-shadow: 0 8px 32px rgba(255,107,53,0.3);
}

.order-banner-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.order-banner-text p {
  font-size: 15px;
  opacity: 0.9;
}

.order-banner .btn {
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.order-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-col ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* ==================== 通用工具类 ==================== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.badge-orange { background: #fff2e8; color: var(--secondary); }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: #f6ffed; color: var(--success); }
.badge-gray { background: var(--bg-light); color: var(--text-secondary); }
.badge-red { background: #fff1f0; color: var(--danger); }

.text-orange { color: var(--secondary); }
.text-blue { color: var(--primary); }
.text-green { color: var(--success); }
.text-gray { color: var(--text-light); }

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .job-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .order-banner { flex-direction: column; gap: 20px; text-align: center; }
  .stats-bar .container { flex-wrap: wrap; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
