/* ============ 基础变量 ============ */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #06b6d4;
  --accent-orange: #f59e0b;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e8ecf3;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(30, 41, 59, .06);
  --shadow-md: 0 16px 40px rgba(30, 41, 59, .10);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .16);
  --container: 1180px;
}

/* ============ 重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 2px 16px rgba(30, 41, 59, .06);
}
.header-inner { display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 10px; }
.brand-mark.small svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-text small { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .28s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.header-cta:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ============ 通用区标题 ============ */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag::before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-head h2, .about-content h2, .contact-info h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.5px;
}
.section-head p, .section-lead { color: var(--muted); font-size: 16px; margin-top: 16px; }
.gradient-text {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gradient-text-light {
  background: linear-gradient(100deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  background: linear-gradient(135deg, #eef0ff 0%, #f3f7ff 45%, #ecfeff 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 460px; height: 460px; background: #c7d2fe; top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #a5f3fc; bottom: -120px; left: -100px; }
.blob-3 { width: 260px; height: 260px; background: #ddd6fe; top: 45%; right: 30%; opacity: .4; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79,70,229,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-content { }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(79,70,229,.12);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6,182,212,.15); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 24px 0 22px;
}
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .22s, box-shadow .22s, background .22s;
  cursor: pointer;
  border: 0;
}
.btn span { transition: transform .22s; }
.btn:hover span { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(100deg, var(--primary), #6366f1);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79,70,229,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(79,70,229,.38); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; padding: 15px; }

.hero-stats { display: flex; gap: 44px; margin-top: 52px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat strong span { color: var(--accent); font-size: 22px; margin-left: 2px; }
.stat small { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Hero 视觉卡片 */
.hero-visual { position: relative; min-height: 420px; }
.visual-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.card-main { padding: 22px; position: relative; z-index: 2; transform: rotate(-1.5deg); }
.visual-card-head { display: flex; gap: 6px; margin-bottom: 18px; }
.vc-dot { width: 9px; height: 9px; border-radius: 50%; }
.vc-dot.red { background: #f87171; } .vc-dot.yellow { background: #fbbf24; } .vc-dot.green { background: #34d399; }
.chart { position: relative; height: 220px; }
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 16px; padding: 0 6px; }
.chart-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #c7d2fe, #eef2ff);
  animation: barGrow 1.1s ease both;
}
.chart-bars span:nth-child(even) { background: linear-gradient(180deg, #a5f3fc, #ecfeff); }
.chart-line { position: absolute; inset: 0; color: var(--primary); }
.chart-line svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(79,70,229,.25)); }
.visual-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.visual-card-foot .up { color: #059669; font-weight: 700; }
.card-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.card-float .float-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--primary); font-size: 16px;
}
.card-float strong { display: block; font-size: 14px; }
.card-float small { display: block; font-size: 11px; color: var(--muted); }
.card-float-1 { top: 6%; right: -6%; animation-delay: 0s; }
.card-float-2 { bottom: 8%; left: -8%; animation-delay: -2s; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 90px; }

/* ============ 关于我们 ============ */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-frame { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; }
.about-shape {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  border-radius: 44% 56% 58% 42% / 45% 42% 58% 55%;
  animation: morph 12s ease-in-out infinite;
}
.about-icon-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 68px;
  place-items: center;
}
.about-icon-grid span {
  width: 100%; height: 100%;
  min-height: 92px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 20px;
  font-size: 30px; font-weight: 800;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform .3s;
}
.about-icon-grid span:nth-child(2) { color: var(--accent); }
.about-icon-grid span:nth-child(3) { color: var(--accent-orange); }
.about-icon-grid span:nth-child(4) { color: #10b981; }
.about-icon-grid span:hover { transform: translateY(-6px) rotate(-3deg); }
.about-badge {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 16px 28px; border-radius: 14px;
  text-align: center; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-size: 15px; }
.about-badge small { display: block; font-size: 8px; letter-spacing: 1px; opacity: .6; margin-top: 4px; }
.about-content p { color: var(--ink-soft); font-size: 15.5px; margin-top: 18px; }
.about-content .section-lead { color: var(--muted); }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--primary); font-weight: 700; font-size: 15px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(5px); }

/* ============ 服务领域 ============ */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  background: #fff;
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: #dfe6f5; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 26px; height: 26px; }
.icon-blue { background: #eef2ff; color: var(--primary); }
.icon-cyan { background: #ecfeff; color: #0891b2; }
.icon-violet { background: #f5f3ff; color: #7c3aed; }
.icon-orange { background: #fffbeb; color: #d97706; }
.icon-green { background: #ecfdf5; color: #059669; }
.icon-pink { background: #fdf2f8; color: #db2777; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.service-num {
  position: absolute; right: 22px; top: 18px;
  font-size: 42px; font-weight: 800;
  color: #f1f5f9; line-height: 1;
}

/* ============ 核心优势 ============ */
.advantages { position: relative; background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #1e3a8a); color: #fff; overflow: hidden; }
.advantages-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.advantages .container { position: relative; z-index: 2; }
.section-head.light .section-tag { color: #a5b4fc; }
.section-head.light .section-tag::before { background: #a5b4fc; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.62); }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.advantage-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 34px 26px;
  backdrop-filter: blur(6px);
  transition: transform .3s, background .3s;
}
.advantage-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.11); }
.adv-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  font-size: 20px; margin-bottom: 20px;
}
.advantage-item h3 { font-size: 18px; margin-bottom: 10px; }
.advantage-item p { font-size: 14px; color: rgba(255,255,255,.66); line-height: 1.7; }

/* ============ 合作流程 ============ */
.process { background: #fff; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding-right: 24px; }
.step-index {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 18px; font-weight: 800;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(79,70,229,.25);
}
.step-line { position: absolute; top: 28px; left: 64px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 12px); }
.step:last-child .step-line { display: none; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ============ 联系我们 ============ */
.contact { background: var(--bg-soft); }
.contact-card {
  background: #fff;
  border-radius: 26px;
  padding: 60px 56px;
  box-shadow: var(--shadow-md);
  max-width: 960px;
  margin-inline: auto;
}
.contact-info { text-align: center; }
.contact-info .section-tag { margin-bottom: 14px; }
.contact-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-list li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px;
  padding: 28px 18px;
  background: var(--bg-soft);
  border-radius: 16px;
  transition: transform .3s, box-shadow .3s;
}
.contact-list li:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.contact-icon {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--primary);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.contact-list div > span, .contact-list div > a { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.6; display: block; word-break: break-word; }
.contact-list a:hover { color: var(--primary); }

/* ============ 页脚 ============ */
.site-footer { background: #0f172a; color: #cbd5e1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 48px 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; }
.footer-brand small { display: block; font-size: 12px; color: #64748b; margin-top: 3px; }
.footer-contact p { font-size: 13px; margin: 4px 0; color: #94a3b8; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0; }
.footer-bottom p { font-size: 12.5px; color: #64748b; }
.footer-bottom a { color: #94a3b8; transition: color .2s; }
.footer-bottom a:hover { color: #67e8f9; text-decoration: underline; }

/* ============ 动画 ============ */
@keyframes fadeUp { from { transform: translateY(28px); } to { transform: translateY(0); } }
/* 首屏入场仅做位移，默认可见，永不白屏 */
.hero-content { animation: fadeUp .8s ease both; }
.hero-visual { animation: fadeUp 1s .15s ease both; }
@keyframes barGrow { from { height: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes morph {
  0%, 100% { border-radius: 44% 56% 58% 42% / 45% 42% 58% 55%; }
  50% { border-radius: 55% 45% 42% 58% / 55% 58% 42% 45%; }
}
/* 默认全部可见；滚动到视口内时播放轻微上移动画增强，不依赖透明度 */
.reveal { opacity: 1; }
.reveal.visible { animation: revealIn .55s ease both; }
@keyframes revealIn { from { transform: translateY(26px); } to { transform: translateY(0); } }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .about-grid { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .step-line { display: none; }
  .contact-card { padding: 44px 36px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 36px, var(--container)); }
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 90px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 28px; }
  .stat strong { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-icon-grid { padding: 48px; gap: 12px; }
  .about-icon-grid span { min-height: 66px; font-size: 24px; }
  .services-grid, .advantages-grid, .process-steps { grid-template-columns: 1fr; }
  .process-steps { gap: 32px; }
  .contact-card { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .card-float-1 { right: -2%; }
  .card-float-2 { left: -2%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal.visible { animation: none !important; }
}
