/* ============================================================
   安永优邦调结师 · 企业官网样式
   主题：用工合规 · 简约大气 · 专业稳重
   配色：藏青主色 / 暖金点缀 / 中性灰白
   ============================================================ */

:root {
  --navy: #13294b;
  --navy-deep: #0c1d38;
  --navy-soft: #1d3a66;
  --gold: #c9a24b;
  --gold-light: #e3c884;
  --ink: #1f2733;
  --gray: #5b6675;
  --gray-light: #8a93a3;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-line: #e7ebf1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(19, 41, 75, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(19, 41, 75, 0.22);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- 导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bg-line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand .brand-name { font-size: 18px; color: var(--navy); }
.brand .brand-sub {
  font-size: 11px; color: var(--gray-light);
  letter-spacing: 2px; font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--gray);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active {
  color: var(--navy);
  background: var(--bg-soft);
  font-weight: 600;
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 10px 22px -10px rgba(201, 162, 75, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(201, 162, 75, 0.9); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none; background: var(--bg-soft);
  border-radius: 10px; cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute;
  left: 11px; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: 0.3s var(--ease);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,0.16), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px;
  color: var(--gold-light);
  border: 1px solid rgba(227,200,132,0.4);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}
.btn-primary {
  background: var(--gold); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(201,162,75,0.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -14px rgba(201,162,75,0.95); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 70px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 36px;
}
.hero-stats .stat .num {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  color: var(--gold-light); line-height: 1;
}
.hero-stats .stat .label { font-size: 13.5px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  font-size: 13px; letter-spacing: 3px; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--navy); font-weight: 800;
  margin: 14px 0 14px; letter-spacing: 0.5px;
}
.section-head p { color: var(--gray); font-size: 16px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.card p { color: var(--gray); font-size: 15px; }

/* ---------------- 优势/流程 ---------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.feature-row .media {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  min-height: 360px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.feature-row .media::after {
  content: "用工合规 · 风险防控";
  position: absolute; font-size: 22px; font-weight: 800;
  color: rgba(255,255,255,0.92); letter-spacing: 2px;
}
.feature-list { list-style: none; }
.feature-list li {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--bg-line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .tick {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); color: var(--gold);
  display: grid; place-items: center; font-weight: 800;
}
.feature-list b { color: var(--navy); display: block; font-size: 16.5px; }
.feature-list span { color: var(--gray); font-size: 14.5px; }

/* 流程步骤 */
.steps { counter-reset: step; }
.step {
  position: relative; padding: 26px 26px 26px 78px;
  background: #fff; border: 1px solid var(--bg-line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; left: 22px; top: 24px;
  font-size: 22px; font-weight: 800; color: var(--gold);
}
.step h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 14.5px; }

/* 数据条 */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.metric .num {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--navy); line-height: 1;
}
.metric .num .unit { color: var(--gold); font-size: 0.55em; margin-left: 2px; }
.metric .label { color: var(--gray); margin-top: 12px; font-size: 14.5px; }

/* ---------------- 联系表单 ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info h3 { color: var(--navy); font-size: 22px; margin-bottom: 22px; }
.contact-info .info-item { display: flex; gap: 14px; padding: 14px 0; }
.contact-info .info-item .ic {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; font-size: 18px;
}
.contact-info .info-item b { color: var(--navy); display: block; font-size: 15px; }
.contact-info .info-item span { color: var(--gray); font-size: 14.5px; }

.form-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font-size: 15px;
  border: 1px solid var(--bg-line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--gray-light); margin-top: 6px; }
.form-success {
  display: none; padding: 16px; border-radius: var(--radius-sm);
  background: #eafaf1; color: #1f7a4d; border: 1px solid #bfe9cf; margin-top: 14px; font-size: 14.5px;
}
.form-success.show { display: block; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: 22px; padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 10%, rgba(201,162,75,0.22), transparent 60%);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); position: relative; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); position: relative; margin-bottom: 30px; max-width: 560px; margin-inline: auto; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.72);
  padding: 64px 0 30px; font-size: 14.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.66); padding: 6px 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .brand-name { color: #fff; font-size: 17px; font-weight: 700; }
.footer-brand p { margin-top: 14px; max-width: 300px; line-height: 1.8; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ---------------- 滚动动画 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 20px 22px;
    border-bottom: 1px solid var(--bg-line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 90px; }
  .container { padding: 0 20px; }
  .cta-band { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
