/* ===========================================================
   广西心成科技有限公司 · 企业官网
   设计语言：简约大气 · 留白 · 克制的高级感
   =========================================================== */

:root {
  --brand: #1e4fd6;
  --brand-600: #2f62e8;
  --brand-900: #0b2a6b;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #5b6b85;
  --line: #e7ecf5;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0b1f47;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(11, 42, 107, 0.09);
  --shadow-lg: 0 24px 60px rgba(11, 42, 107, 0.16);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #00306b; /* 与 logo 原图一致的深海军蓝 */
}
.brand .logo {
  width: 34px; height: 34px;
  flex: none;
}
.brand small { display:block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; }
.brand-slogan {
  margin-left: 4px; padding-left: 13px;
  border-left: 1px solid rgba(15,30,60,.14);
  font-size: 13.5px; font-weight: 600; letter-spacing: 3px;
  color: var(--brand); white-space: nowrap;
}
.footer-brand .brand-slogan { border-left-color: rgba(255,255,255,.2); color: #9db9f5; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: all .2s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-links a.active { color: var(--brand); background: #eef3ff; }
.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(30, 79, 214, 0.28);
}
.nav-cta:hover { background: var(--brand-600); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 4px auto; border-radius: 2px; transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 75% -10%, rgba(6,182,212,.35), transparent 60%),
    radial-gradient(900px 480px at 10% 110%, rgba(47,98,232,.55), transparent 55%),
    linear-gradient(135deg, var(--brand-900), #143a8f 60%, var(--brand) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .6;
  pointer-events: none; /* 纯装饰层，不拦截点击 */
}
.hero-inner {
  position: relative;
  padding: 104px 0 116px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px;
  color: #cfe0ff; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: #dbe6ff;
  margin: 0 0 36px;
  max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease;
  font-family: inherit;
}
.btn-primary { background: #fff; color: var(--brand-900); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(30,79,214,.25); }
.btn-line:hover { background: var(--brand-600); transform: translateY(-2px); }

/* stats */
.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 36px;
}
.stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; }
.stat .num span { color: var(--accent); }
.stat .lab { color: #b9cdf5; font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow-brand {
  display: inline-block;
  color: var(--brand); font-weight: 700; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 14px; font-weight: 800; letter-spacing: .5px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Grid cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d4e0fb; }
.card .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf1ff, #e6f9ff);
  color: var(--brand);
  margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* capability (四个会) */
.cap { display: flex; gap: 16px; align-items: flex-start; }
.cap .ic { margin-bottom: 0; flex: none; }
.cap .cap-body h3 { font-size: 18px; margin-bottom: 6px; }
.cap .cap-body p { font-size: 14.5px; }

/* business blocks on products page */
.biz { padding: 34px 30px; }
.biz .tag {
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:1px;
  color: var(--brand); background:#eef3ff; padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.biz h3 {
  display:inline-block; font-size:15px; font-weight:700; letter-spacing:.5px;
  color:#fff; background:linear-gradient(135deg, var(--brand), var(--brand-600));
  padding:7px 18px; border-radius:999px; margin:0 0 14px;
  box-shadow:0 4px 12px rgba(30,79,214,.22);
}
.biz ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.biz ul li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 15px; }
.biz ul li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 26px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 30px; font-weight: 800; color: #d7e2fb;
  letter-spacing: 1px;
}
.step h4 { margin: 8px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .free { font-size:12px; color: var(--accent); font-weight:700; }

/* ---------- Cases ---------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff; transition: .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.case:hover { box-shadow: var(--shadow); border-color: #d4e0fb; transform: translateY(-4px); }
.case .domain {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--brand); background:#eef3ff; padding:5px 12px; border-radius:999px;
  align-self: flex-start;
}
.case h4 { margin: 0; font-size: 18px; }
.case p { margin: 0; color: var(--muted); font-size: 14.5px; }
.case .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.case .tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-900), var(--brand));
  color: #fff; border-radius: 24px;
  padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(6,182,212,.4), transparent 60%);
  pointer-events: none; /* 纯装饰层，不拦截点击 */
}
.cta-band h2 { position: relative; font-size: clamp(24px,3vw,34px); margin:0 0 12px; }
.cta-band p { position: relative; color:#d4e2ff; margin:0 0 28px; }
.cta-band .hero-actions { position: relative; justify-content: center; }

/* ---------- About page ---------- */
.about-hero { padding: 72px 0 40px; }
.about-hero h1 { font-size: clamp(30px,4vw,46px); margin:0 0 16px; font-weight:800; }
.about-hero p { color: var(--muted); font-size: 18px; max-width: 720px; }
.value-row { display:grid; grid-template-columns: repeat(2,1fr); gap:20px; }
.reason { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.reason .no {
  flex:none; width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  font-weight:800; color:#fff; background:linear-gradient(135deg,var(--brand),var(--accent));
}
.reason h4 { margin:0 0 6px; font-size:17px; }
.reason p { margin:0; color:var(--muted); font-size:14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items:start; }
.info-card { background: var(--bg-deep); color:#fff; border-radius: var(--radius); padding: 36px 32px; }
.info-card h3 { margin:0 0 22px; font-size:22px; }
.info-list { list-style:none; margin:0; padding:0; display:grid; gap:18px; }
.info-list li { display:flex; gap:14px; align-items:flex-start; }
.info-list .ic { width:40px;height:40px;flex:none;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#cfe0ff; }
.info-list .ic svg { width:20px;height:20px; }
.info-list .t { font-size:13px; color:#9db4e6; }
.info-list .v { font-size:16px; color:#fff; font-weight:600; }
.info-list .v small { display:block; font-weight:400; color:#9db4e6; font-size:12.5px; }

.map-box {
  margin-top:22px; border-radius:14px; overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: #0c224d;
}
#map { width:100%; height:250px; display:block; }

form.contact-form { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px 30px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { margin-bottom:18px; }
.field label { display:block; font-size:14px; font-weight:600; margin-bottom:7px; color:var(--ink); }
.field label .req { color:#ef4444; margin-left:3px; }
.field input, .field textarea, .field select {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm);
  font-family:inherit; font-size:15px; color:var(--ink); background:#fff; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,79,214,.12);
}
.field textarea { min-height:120px; resize:vertical; }
.file-note { font-size:12.5px; color:var(--muted); margin-top:6px; }
.form-msg { margin-top:14px; font-size:14.5px; padding:12px 16px; border-radius:var(--radius-sm); display:none; }
.form-msg.ok { display:block; background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.form-msg.err { display:block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color:#cdd9f2; padding: 56px 0 28px; }
.footer-top { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-top h5 { color:#fff; font-size:15px; margin:0 0 16px; }
.footer-top a { display:block; color:#9db4e6; padding:5px 0; font-size:14px; }
.footer-top a:hover { color:#fff; }
.footer-brand p { color:#9db4e6; font-size:14px; max-width: 320px; margin:14px 0 0; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:13px; color:#7e93c4;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 70px; left:0; right:0;
    background:#fff; flex-direction:column; align-items:stretch;
    padding: 14px 24px 22px; gap:4px;
    border-bottom:1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align:center; }
  .nav-toggle { display:block; }
  .stats { grid-template-columns: repeat(2,1fr); gap:18px; }
  .grid-4, .grid-3, .grid-2, .steps, .value-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero-inner { padding: 70px 0 80px; }
  .cta-band { padding: 44px 24px; }
}

/* 企业微信卡片 */
.wecom-box { margin-top: 22px; padding: 20px; border-radius: 14px;
  background: linear-gradient(135deg, #f6f9ff, #edf3fe);
  border: 1px solid #dfe8f6; display: flex; gap: 20px; align-items: center; }
.wecom-qr { width: 128px; height: 128px; flex: 0 0 auto; display: block;
  background: #fff; padding: 8px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(12, 34, 77, .10); }
.wecom-info { flex: 1; min-width: 0; }
.wecom-title { font-weight: 700; color: #0c224d; font-size: 15.5px; margin-bottom: 6px; }
.wecom-desc { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #5b6b85; }
@media (max-width: 640px) {
  .wecom-box { flex-direction: column; text-align: center; padding: 22px 16px; }
  .wecom-info { width: 100%; }
}
