/* ============================================================
   超级保育师宣传站 - 共用样式（index.html / join.html）
   品牌色沿用小程序：主色 #FF8C42 / 页面底 #FAF6F0
   ============================================================ */

/* ---------- Tokens & Reset ---------- */
:root {
  --brand: #FF8C42;
  --brand-dark: #E6732E;
  --brand-deep: #C95E1F;
  --brand-tint: #FFF1E6;
  --brand-tint-2: #FFE3CC;
  --bg: #FAF6F0;
  --card: #FFFFFF;
  --text: #333333;
  --text-secondary: #777777;
  --text-muted: #999999;
  --warn: #F56C2C;
  --ok: #52A775;
  --line: #F0E7DC;
  --ink: #3B2F28;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(120, 80, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(120, 80, 40, 0.14);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--brand-tint-2); color: var(--brand-deep); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-tint { background: #FFF9F2; }
.section-anchor { scroll-margin-top: calc(var(--nav-h) + 12px); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(24px, 4.5vw, 32px);
  line-height: 1.4;
  margin-bottom: 12px;
}
.section-head .section-sub { color: var(--text-secondary); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.35);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand-tint-2);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 246, 240, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(120, 80, 40, 0.1); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.nav-cta) { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:not(.nav-cta):hover { color: var(--brand); }
.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; width: 40px; height: 40px; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 7vw, 50px);
  line-height: 1.28;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { color: var(--text-secondary); font-size: clamp(15px, 2.5vw, 17px); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-secondary); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* Hero 右侧示意卡片 */
.hero-visual { position: relative; padding: 12px 0; }
.mock-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 26px 24px;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(255, 140, 66, 0.12);
}
.mock-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 3px 12px;
}
.mock-age { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.mock-list li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--text);
}
.mock-list li:last-child { border-bottom: none; }
.mock-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.mock-check svg { width: 11px; height: 11px; }
.mock-card-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ok);
  background: #EDF7F1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-card-foot svg { width: 14px; height: 14px; flex: none; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: float 3.4s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.chip-1 { top: -6px; right: 2%; animation-delay: 0.4s; }
.chip-2 { bottom: -8px; left: 2%; }

/* 居中式 Hero（招聘页） */
.hero-center { text-align: center; margin: 0 auto; max-width: 640px; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-points { justify-content: center; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 卡片（图标 + 标题 + 描述） ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); }

/* 痛点卡片 */
.pain-card .card-icon { background: #FDEDE3; color: var(--warn); }

/* ---------- 步骤 ---------- */
.steps { display: grid; gap: 16px; }
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  height: 100%;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.35);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* ---------- 招聘页：画像 / 岗位 ---------- */
.persona-list { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.persona-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.persona-item svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 3px; }
.persona-item h3 { font-size: 16px; margin-bottom: 4px; }
.persona-item p { font-size: 14px; color: var(--text-secondary); }

.position-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  display: grid;
  gap: 28px;
}
.position-block h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.position-block h3 svg { width: 20px; height: 20px; color: var(--brand); }
.position-block li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 15px;
  color: var(--text);
}
.position-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.position-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ---------- 转化区（二维码） ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--warn) 100%);
  padding: 72px 0;
  color: #fff;
}
.cta-inner {
  display: grid;
  gap: 36px;
  align-items: center;
  text-align: center;
}
.cta h2 { font-size: clamp(24px, 4.5vw, 34px); margin-bottom: 14px; }
.cta .cta-sub { font-size: 15px; opacity: 0.92; max-width: 34em; margin: 0 auto 30px; }
.qr-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.qr-img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  background: var(--bg);
}
.qr-tip { font-size: 14px; font-weight: 600; color: var(--text); }
.qr-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  border: 2px dashed var(--brand-tint-2);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}
.qr-placeholder small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.cta-remark {
  font-size: 13px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 18px;
  display: inline-block;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #CDBFB5; padding: 48px 0 32px; font-size: 14px; }
.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: #8F7F73;
}
.footer-bottom a { color: #8F7F73; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 移动端底部转化条 ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(120, 80, 40, 0.12);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 84px 0; }
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr auto; text-align: left; }
  .cta .cta-sub { margin-left: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .mobile-cta { display: none; }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .position-block { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(120, 80, 40, 0.12);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.nav-cta) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; }
  body { padding-bottom: 68px; }
  .float-chip { display: none; }
}
