/* 现代化招聘首页样式 */

/* 基础样式重置 */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  color: #333;
}

/* 导航栏样式（兼容 Bootstrap 3） */
.navbar-brand { font-weight: 600; font-size: 1.25rem; }
.navbar-default .navbar-nav > li > a { font-weight: 500; position: relative; transition: color .3s ease; }
.navbar-default .navbar-nav > li > a:hover { color: #007bff; }
.navbar-default .navbar-nav > li > a::after { content:''; position:absolute; width:0; height:2px; bottom:0; left:50%; background:#007bff; transition:all .3s ease; }
.navbar-default .navbar-nav > li > a:hover::after { width:100%; left:0; }

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-background {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  position: relative;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: float 3s ease-in-out infinite;
}

/* 招聘类型卡片 */
.recruit-types-section {
  background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
}

.recruit-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  overflow: hidden;
  position: relative;
}

.recruit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.recruit-card:hover::before {
  height: 8px;
}

.recruit-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.social-card::before {
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.campus-card::before {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.referral-card::before {
  background: linear-gradient(90deg, #ffc107, #e0a800);
}

.card-icon {
  text-align: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.recruit-card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.card-text {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-features {
  margin-bottom: 2rem;
}

.card-features li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.card-features i {
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* 快速导航区域 */
.quick-nav-section {
  padding: 5rem 0;
  background: #ffffff;
}

.hot-jobs-card .card {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.hot-jobs-card .card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.job-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: white;
}

.job-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #007bff;
}

.job-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.job-dept {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.process-card .card,
.culture-card .card {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.process-card .card:hover,
.culture-card .card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.process-steps {
  padding: 1rem 0;
}

.step-item {
  position: relative;
  padding: 0.5rem 0;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #007bff, transparent);
}

.step-number {
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.culture-item h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.culture-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* 按钮样式 */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary {
  border: 2px solid #007bff;
  color: #007bff;
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-color: transparent;
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  color: #212529;
}

/* 卡片标题 */
.card-header { background: transparent; border-bottom: 1px solid #e9ecef; padding: 1.25rem; }

.card-title {
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.4rem; }
  
  .hero-background {
    padding: 60px 0;
  }
  
  .recruit-types-section {
    padding: 4rem 0;
  }
  
  .quick-nav-section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; text-align: center; }
  
  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .hero-background {
    padding: 40px 0;
    text-align: center;
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 !important;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .recruit-types-section {
    padding: 3rem 0;
  }
  
  .quick-nav-section {
    padding: 3rem 0;
  }
  
  .recruit-card {
    margin-bottom: 2rem;
  }
  
  .process-card,
  .culture-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .recruit-types-section {
    padding: 2rem 0;
  }
  
  .quick-nav-section {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .recruit-card {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .card-title {
    color: #e2e8f0;
  }
  
  .card-text {
    color: #a0aec0;
  }
  
  .hot-jobs-card .card,
  .process-card .card,
  .culture-card .card {
    background: #2d3748;
  }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 焦点样式 */
.btn:focus,
.nav-link:focus,
.job-item:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.section-wave svg { height: clamp(90px, 12vw, 140px); }
.navbar-default.is-scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 8px 24px rgba(0,0,0,0.08); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); }
.shadow-xl { box-shadow: 0 16px 32px rgba(0,0,0,0.2); }
.hero-title { letter-spacing: .5px; line-height: 1.25; }
.hero-subtitle { line-height: 1.8; }
.hero-actions .btn + .btn { margin-left: 12px; }
@media (hover: hover) { .recruit-card:hover::before { height: 6px; } .recruit-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 45px rgba(0,0,0,0.14); } .btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.15); } }
@media (hover: none) { .recruit-card:hover { transform: none; box-shadow: 0 15px 35px rgba(0,0,0,0.1); } .navbar-default .navbar-nav > li > a:hover { color: inherit; } }

/* 字体轻微增大 */
.navbar-default .navbar-nav > li > a { font-size: 1.05rem; }
.hero-title { font-size: 3.4rem; }
.hero-subtitle { font-size: 1.35rem; }
.card-title { font-size: 1.05rem; }
.card-text { font-size: 1.05rem; }
.card-features li { font-size: 0.95rem; }
.job-title { font-size: 1.05rem; }
.job-dept { font-size: 0.9rem; }

@media (max-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
}
@media (max-width: 992px) {
  .hero-title { font-size: 2.55rem; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1.2rem; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 1.1rem; }
}

/* 首页整体字体加大 */
html { font-size: 17px; }
.navbar-default .navbar-nav > li > a { font-size: 1.15rem; }
.hero-title { font-size: 3.6rem; }
.hero-subtitle { font-size: 1.5rem; }
.card-title { font-size: 1.1rem; }
.card-text { font-size: 1.1rem; }
.card-features li { font-size: 1rem; }
.btn-lg { font-size: 1.15rem; }

@media (max-width: 1200px) {
  .hero-title { font-size: 3.4rem; }
}
@media (max-width: 992px) {
  .hero-title { font-size: 2.7rem; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.3rem; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.15rem; }
}
