:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --ink: #0f1629;
  --ink-2: #475069;
  --ink-3: #8a93a8;
  --line: #e4e8f2;
  --brand: #5b6cff;
  --brand-2: #22c3ee;
  --brand-ink: #3d4ee6;
  --dark: #0b1020;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(25, 35, 80, .18);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: .5px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px -6px rgba(91,108,255,.7);
}
.brand-text b { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important; padding: 8px 18px; border-radius: 999px;
  background: var(--brand); color: #fff;
}
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: calc(var(--nav-h) + 96px) 0 96px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: #5b6cff; top: -160px; right: -120px; animation: float 12s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #22c3ee; bottom: -200px; left: -120px; opacity: .35; animation: float 14s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }

.hero-inner { position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #c9d1ff; margin-bottom: 28px;
}
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.grad {
  background: linear-gradient(90deg, #8f9bff, #22c3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.br-m { display: none; }
.hero-sub { max-width: 640px; margin-top: 24px; font-size: 17px; color: #b6bdd3; }
.hero-sub b { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #7a5bff); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(91,108,255,.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(91,108,255,.9); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-stats { display: flex; gap: 56px; margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats b { display: block; font-size: 28px; font-weight: 700; }
.hero-stats span { font-size: 14px; color: #8f98b3; }

/* ---------- 通用 Section ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--brand); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 800; }
.section-desc { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- 业务 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { position: relative; padding: 36px 32px; }
.service.featured { background: linear-gradient(160deg, #f3f4ff 0%, #fff 60%); border-color: #d9ddff; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(91,108,255,.12), rgba(34,195,238,.12));
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-no { position: absolute; top: 30px; right: 32px; font-size: 40px; font-weight: 800; color: #eef0f7; line-height: 1; }
.service h3 { font-size: 21px; margin-bottom: 12px; }
.service > p { color: var(--ink-2); font-size: 15px; }
.checks { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .3;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-dot {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px var(--bg-alt), 0 8px 20px -8px rgba(91,108,255,.8);
  margin-bottom: 20px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 优势 ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why-item { background: #fff; padding: 36px 32px; transition: background .3s; }
.why-item:hover { background: #fafbff; }
.why-item h4 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.why-item h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transform: rotate(45deg); }
.why-item p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 案例 ---------- */
.case-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -24px 0 40px; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); transition: all .2s;
}
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { overflow: hidden; display: flex; flex-direction: column; }
.case-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1b2350, #2a3a8f 55%, #1d7fa8);
  display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover .ph { font-size: 14px; letter-spacing: 2px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.case-cover .ph svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .8; }
.case-type {
  position: absolute; top: 14px; left: 14px; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--brand-ink); font-weight: 600;
}
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-industry { font-size: 13px; color: var(--ink-3); }
.case h3 { font-size: 18px; }
.case p { font-size: 14.5px; color: var(--ink-2); }
.case-result { font-size: 14px; color: var(--brand-ink); font-weight: 600; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.case-tags span { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); }
.case-link { font-size: 14px; color: var(--brand); font-weight: 600; }
.case.soon .case-cover { background: repeating-linear-gradient(135deg, #eef0f8 0 12px, #f6f7fb 12px 24px); color: var(--ink-3); }
.case.soon h3 { color: var(--ink-3); }
.cases-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ---------- 联系 ---------- */
.contact { padding-top: 96px; }
.contact-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: var(--dark); color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.contact-box::before {
  content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px;
  border-radius: 50%; background: var(--brand); filter: blur(90px); opacity: .45;
}
.contact-text, .contact-list { position: relative; }
.contact-text h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; }
.contact-text p { margin-top: 16px; color: #b6bdd3; }
.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.contact-list .label { font-size: 13px; color: #8f98b3; }
.contact-list .value { font-size: 17px; font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.brand-footer { margin-bottom: 10px; color: var(--ink); }
.muted { color: var(--ink-3); font-size: 13.5px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta a:hover { color: var(--brand); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .services, .cases { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .contact-box { grid-template-columns: 1fr; padding: 48px; }
}

/* ---------- H5 / 手机 ---------- */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 16px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink);
    padding: 8px 16px 20px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; opacity: 1; }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 12px; }
  .nav.open { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }

  .hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
  .br-m { display: inline; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; height: 48px; }
  .hero-stats { gap: 0; justify-content: space-between; margin-top: 44px; padding-top: 24px; }
  .hero-stats li { flex: 1; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 12px; }
  .orb-1 { width: 320px; height: 320px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-desc { font-size: 15px; }

  .services, .cases, .why { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .service-no { top: 24px; right: 22px; font-size: 34px; }
  .card:hover { transform: none; }

  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 4px; }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; text-align: left; padding: 0 0 28px; }
  .step::before {
    content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px;
    background: linear-gradient(var(--brand), var(--brand-2)); opacity: .25;
  }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { grid-row: span 2; margin: 0; }
  .step h4 { margin: 10px 0 4px; }

  .why-item { padding: 24px 22px; }

  .case-filter {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: -12px -16px 28px; padding: 0 16px;
    scrollbar-width: none;
  }
  .case-filter::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .contact { padding-top: 72px; }
  .contact-box { padding: 36px 22px; border-radius: 22px; gap: 28px; }

  .footer { padding-top: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}
