/* ============================================================
   劳助助互助在线 — 门户首页
   设计语言：专业信赖 · 清晰现代 · 劳动力量感
   ============================================================ */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  /* Primary */
  --primary:       #1a56db;
  --primary-dark:  #1242b3;
  --primary-light: #3b82f6;
  --primary-soft:  #dbeafe;
  --primary-bg:    #eff6ff;

  /* Accent */
  --accent:        #f59e0b;
  --accent-soft:   #fef3c7;

  /* Success */
  --green:         #16a34a;
  --green-soft:    #dcfce7;

  /* Neutral */
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #0f172a;
  --bg-dark-2:     #1e293b;
  --text:          #0f172a;
  --text-secondary:#475569;
  --text-light:    #94a3b8;
  --text-white:    #f1f5f9;
  --border:        #e2e8f0;
  --border-dark:   #334155;

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

  /* Shadow */
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:     0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-xl:     0 20px 40px -10px rgba(0,0,0,0.1);

  --max-width:     1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 40%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: rgba(26,86,219,0.08);
  color: var(--primary);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(26,86,219,0.12);
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.text-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual Cards */
.hero-visual {
  flex: 1;
  position: relative;
  height: 400px;
  min-width: 360px;
}
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.hero-card-1 { top: 30px; left: 30px; z-index: 3; }
.hero-card-2 { top: 130px; left: 180px; z-index: 2; }
.hero-card-3 { top: 240px; left: 50px; z-index: 1; }
.hero-card .card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.hero-card-1 .card-icon { background: #dbeafe; }
.hero-card-2 .card-icon { background: #dcfce7; }
.hero-card-3 .card-icon { background: #fef3c7; }
.hero-card .card-body { min-width: 0; }
.hero-card .card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.hero-card .card-text { color: var(--text-secondary); font-size: 0.88rem; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .container { padding: 0; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.badge-light { background: rgba(59,130,246,0.15); color: #93c5fd; }
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-dark .section-header p { color: var(--text-light); }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon { margin-bottom: 20px; }
.service-icon svg { display: block; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 20px; line-height: 1.65; }
.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ===== FEATURE SHOWCASE ===== */
.feature-showcase { display: flex; gap: 56px; align-items: flex-start; }
.feature-list { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-check {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.feature-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.55; }
.feature-cta { flex-shrink: 0; width: 320px; }
.feature-card {
  background: linear-gradient(145deg, var(--bg-dark-2) 0%, #1a2940 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}
.feature-card-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; font-weight: 700; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 24px; }

/* ===== JOBS ===== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.job-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.3s;
  position: relative;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-type {
  display: inline-block;
  padding: 3px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.job-type.part-time { background: var(--accent-soft); color: #d97706; }
.job-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.job-company { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 14px; }
.job-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; font-size: 0.88rem; color: var(--text-secondary); }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tags span {
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.job-card-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  border: 2px dashed var(--border);
  background: transparent;
  min-height: 200px;
  grid-column: 1 / -1;
  border-radius: var(--radius);
  padding: 40px;
}
.more-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ===== FORUM ===== */
.forum-placeholder {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

/* ===== STATS ===== */
.stats-row { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-secondary); font-size: 0.95rem; margin-top: 6px; font-weight: 500; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 56px 0 28px;
}
.footer-grid { display: flex; gap: 80px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 0.92rem; max-width: 240px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; gap: 48px; }
  .hero-visual {
    height: 240px;
    min-width: 0;
    width: 100%;
  }
  .hero-card { padding: 20px 24px; }
  .hero-card-1 { top: 0; left: 0; }
  .hero-card-2 { top: 80px; left: 140px; }
  .hero-card-3 { top: 30px; left: 260px; }
  .feature-showcase { flex-direction: column; }
  .feature-cta { width: 100%; }
  .stats-row { gap: 40px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1rem; }

  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }

  /* Mobile: card pills */
  .hero-visual {
    height: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero-card {
    position: static;
    flex: 0 1 auto;
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    gap: 8px;
    white-space: nowrap;
  }
  .hero-card .card-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; }
  .hero-card .card-title { font-size: 0.85rem; }
  .hero-card .card-text { display: none; }

  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header { margin-bottom: 40px; }

  .stats-row { gap: 32px; }
  .stat-num { font-size: 2rem; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .stats-row { gap: 20px; }
}

/* ===== H5 移动端增强 ===== */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 20px 18px; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.88rem; }
  .service-link { font-size: 0.88rem; }

  .hero-badge { font-size: 0.82rem; padding: 6px 14px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1rem; }

  .feature-list { gap: 16px; }
  .feature-item { gap: 12px; }
  .feature-item h4 { font-size: 0.95rem; }
  .feature-item p { font-size: 0.82rem; }

  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-desc { font-size: 0.9rem; }
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.9rem; }
}

/* 触控优化 */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-primary, .btn-outline { min-height: 44px; -webkit-tap-highlight-color: transparent; }
  .service-link { min-height: 44px; display: flex; align-items: center; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* 刘海屏 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
