/* ===== 金卫数智官网样式 ===== */
:root {
  --navy-950: #060d1f;
  --navy-900: #0b1f3a;
  --navy-800: #12294d;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --grad-main: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #7c3aed 110%);
  --radius: 18px;
  --shadow-lg: 0 24px 48px -12px rgba(2, 12, 32, 0.35);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--navy-900);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-primary {
  color: #fff; background: var(--grad-main); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(37, 99, 235, .65); }
.btn-ghost { color: #e8f2ff; border-color: rgba(148, 197, 255, .5); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== 顶栏 ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(6, 13, 31, .92); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 19px; letter-spacing: 2px; }
.brand-text small { color: var(--slate-400); font-size: 10px; letter-spacing: 1px; }

.main-nav { display: flex; gap: 34px; }
.main-nav a { color: var(--slate-300); font-size: 15px; font-weight: 500; position: relative; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad-main); border-radius: 2px; transition: width .25s;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 首屏 ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 70% -10%, #143a75 0%, transparent 60%),
              radial-gradient(900px 500px at 10% 110%, #0e3f7a 0%, transparent 55%),
              linear-gradient(160deg, #081226 0%, #0b1f3a 55%, #0a1630 100%);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 12s ease-in-out infinite; }
.orb-1 { width: 460px; height: 460px; left: -120px; top: 8%; background: radial-gradient(circle, rgba(56,189,248,.55), transparent 70%); }
.orb-2 { width: 420px; height: 420px; right: -100px; bottom: 5%; background: radial-gradient(circle, rgba(124,58,237,.5), transparent 70%); animation-delay: -5s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,197,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,197,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-36px) } }

.hero-inner { position: relative; z-index: 2; text-align: center; padding: 140px 0 90px; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; letter-spacing: 2px; color: var(--cyan-300);
  border: 1px solid rgba(103, 232, 249, .35); background: rgba(34, 211, 238, .08);
  margin-bottom: 28px;
}
.hero-title { font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; line-height: 1.25; letter-spacing: 2px; }
.grad-text {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 720px; margin: 26px auto 0; color: var(--slate-300);
  font-size: clamp(15px, 1.6vw, 18px); line-height: 2;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 数据条 ===== */
.stats {
  background: linear-gradient(135deg, #0d2b55, #10294e);
  color: #fff; border-top: 1px solid rgba(148,197,255,.12);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; text-align: center; }
.stat strong { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--slate-300); font-size: 14px; letter-spacing: 1px; }

/* ===== 通用区块 ===== */
.section { padding: 96px 0; }
.section-dark { background: linear-gradient(170deg, #0a1730 0%, #0b1f3a 100%); color: #fff; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag { font-size: 13px; letter-spacing: 4px; color: var(--blue-600); font-weight: 700; }
.section-dark .section-tag { color: var(--cyan-400); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 10px; letter-spacing: 2px; }
.section-desc { color: var(--slate-500); margin-top: 12px; }
.section-dark .section-desc { color: var(--slate-400); }

/* ===== 卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid #e6edf7; border-radius: var(--radius);
  padding: 34px 28px; box-shadow: 0 6px 20px -12px rgba(2,12,32,.12);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.35); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; color: var(--blue-600);
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(37,99,235,.12));
  border: 1px solid rgba(37,99,235,.2);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-item .info-icon svg { width: 22px; height: 22px; fill: none; stroke: #60a5fa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--slate-500); font-size: 14.5px; }
.card-solution h3::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 4px;
  background: var(--grad-main); margin-bottom: 14px;
}

/* ===== 关于 ===== */
.section-about { background: linear-gradient(180deg, #f7faff, #fff); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--slate-500); margin-bottom: 18px; font-size: 15.5px; }
.mv { display: grid; gap: 14px; }
.mv-item {
  background: #fff; border: 1px solid #e6edf7; border-left: 4px solid var(--blue-600);
  border-radius: 12px; padding: 18px 22px; box-shadow: 0 4px 14px -10px rgba(2,12,32,.15);
}
.mv-item h4 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.mv-no { color: var(--blue-600); font-weight: 800; font-size: 15px; }
.mv-item p { color: var(--slate-500); font-size: 14px; margin-top: 6px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.3);
}
.info-item h4 { color: #fff; font-size: 15px; }
.info-item p { color: var(--slate-400); font-size: 14px; margin-top: 4px; }

.contact-form {
  background: rgba(255,255,255,.05); border: 1px solid rgba(148,197,255,.16);
  border-radius: var(--radius); padding: 34px; backdrop-filter: blur(6px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; color: var(--slate-300); font-size: 14px; margin-bottom: 8px; }
.form-field em { color: var(--cyan-400); font-style: normal; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px; font-family: inherit;
  background: rgba(6, 13, 31, .6); border: 1px solid rgba(148,197,255,.22);
  color: #fff; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--slate-500); }
.form-field input.invalid, .form-field textarea.invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.form-tip { margin-top: 12px; font-size: 14px; text-align: center; min-height: 20px; }
.form-tip.ok { color: #4ade80; }
.form-tip.err { color: #fca5a5; }

/* ===== 页脚 ===== */
.site-footer { background: #050b1a; color: var(--slate-400); padding: 44px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(148,197,255,.1); }
.footer-brand strong { color: #fff; font-size: 17px; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; margin-top: 8px; color: var(--slate-500); }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--cyan-300); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; padding-top: 18px; }

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-main); color: #fff; font-size: 18px;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,.6);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ===== 滚动显现 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; top: 72px; right: 0; width: min(320px, 82vw);
    flex-direction: column; gap: 0; background: rgba(6,13,31,.98);
    padding: 18px 26px 26px; border-radius: 0 0 0 18px; border: 1px solid rgba(148,197,255,.12); border-right: 0;
    transform: translateX(110%); transition: transform .3s ease; z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(148,197,255,.08); }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
  .cards, .cards-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .hero-inner { padding: 120px 0 70px; }
}
