/* =========================================================
   深圳市金诚永诺企业服务有限公司 — 官网样式
   纯 CSS · 响应式 · 无依赖
   配色：深海军蓝(信任) + 亮蓝(专业) + 琥珀金(价值)
   ========================================================= */

:root {
  --navy: #0f2a52;
  --navy-2: #143a6b;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --ink: #1f2937;
  --muted: #5b6b82;
  --line: #e6ebf2;
  --bg: #f7f9fc;
  --bg-alt: #eef3fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 82, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 42, 82, 0.18);
  --container: 1180px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .30);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, .42); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(245,158,11,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; color: var(--navy); letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 3px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--ink); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { color: #fff !important; padding: 9px 20px; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, #1d4 e d 100%);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, #1d4ed8 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 130px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(500px 500px at 10% 80%, rgba(59,130,246,.28), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  font-size: 14px; letter-spacing: 1px;
  background: rgba(255,255,255,.14);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .5px;
}
.grad-text {
  background: linear-gradient(90deg, var(--amber), #ffd479);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin: 22px 0 32px;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 640px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 34px; font-size: 14px; color: rgba(255,255,255,.9);
}
.hero-points li { display: flex; align-items: center; }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--bg);
  clip-path: polygon(0 60%, 18% 45%, 38% 60%, 58% 40%, 78% 55%, 100% 42%, 100% 100%, 0 100%);
}

/* ---------- 数据条 ---------- */
.stats {
  background: var(--white);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 20px;
}
.stat {
  text-align: center;
  padding: 14px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; color: var(--navy);
  line-height: 1;
}
.stat-plus { font-size: 22px; font-weight: 800; color: var(--amber); }
.stat-label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-tag {
  font-size: 13px; letter-spacing: 3px; font-weight: 700;
  color: var(--blue); margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--navy); font-weight: 800;
}
.section-desc { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- 服务卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--bg-alt); margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; color: var(--blue);
  background: rgba(37,99,235,.10); padding: 3px 10px; border-radius: 999px;
}
.card-feature { background: linear-gradient(160deg, #fff, #f3f8ff); }

/* ---------- 为什么选我们 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.feature-no {
  font-size: 26px; font-weight: 800; color: var(--amber);
  margin-bottom: 12px;
}
.feature h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- 流程时间线 ---------- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%;
  height: 2px; background: linear-gradient(90deg, var(--blue), var(--amber));
}
.tl-item { text-align: center; position: relative; }
.tl-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue);
  color: var(--blue); font-weight: 800; font-size: 20px;
  display: grid; place-items: center; margin: 0 auto 16px;
  position: relative; z-index: 2; box-shadow: var(--shadow);
}
.tl-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--muted); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: clamp(24px,3vw,34px); color: var(--navy); margin: 8px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 8px; }
.about-list li { padding: 8px 0; color: var(--ink); font-weight: 500; }
.about-card {
  background: linear-gradient(140deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: 46px 30px;
  color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.about-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(245,158,11,.28);
}
.about-card-inner { position: relative; z-index: 2; }
.about-card .big { font-size: 46px; font-weight: 900; letter-spacing: 4px; }
.about-card .sub { display: block; font-size: 16px; letter-spacing: 2px; opacity: .9; margin-top: 6px; }
.about-card p { margin-top: 18px; font-size: 14px; opacity: .85; }

/* ---------- 联系我们 ---------- */
.contact { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-desc { color: rgba(255,255,255,.8); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.field textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 14px; min-height: 20px; }
.form-note.ok { color: #16a34a; }
.form-note.err { color: #dc2626; }

.contact-info {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info h3 { font-size: 20px; margin-bottom: 18px; }
.contact-info ul { list-style: none; }
.contact-info li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info li span { font-size: 22px; }
.contact-info li div { font-size: 14px; color: rgba(255,255,255,.9); }
.qr-placeholder { margin-top: 18px; }
.qr-box {
  width: 100%; aspect-ratio: 16/7; border-radius: var(--radius-sm);
  border: 2px dashed rgba(255,255,255,.4);
  display: grid; place-items: center;
  font-size: 15px; color: rgba(255,255,255,.85); letter-spacing: 1px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1f3d; color: rgba(255,255,255,.8); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 40px 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.55); }
.disclaimer { margin-top: 4px; font-size: 12px; opacity: .7; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--navy-2); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   响应式断点
   ========================================================= */
@media (max-width: 1024px) {
  .cards, .features, .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }

  .cards, .features, .timeline { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .hero { padding: 70px 0 110px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
