/* ===== 佛山市三一数智科技有限公司 官网样式 ===== */
:root {
  --primary: #1e4fa3;
  --primary-dark: #143a78;
  --primary-light: #3a6fd0;
  --accent: #2dd4bf;
  --ink: #1a2330;
  --ink-soft: #4a5568;
  --muted: #8a94a6;
  --line: #e7ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-deep: #0f1f3d;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(20, 58, 120, 0.06);
  --shadow-md: 0 14px 40px rgba(20, 58, 120, 0.10);
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  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(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active { color: #fff; background: var(--primary); }

.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: 5px auto; transition: .3s;
}

/* ===== 通用区块 ===== */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.deep { background: var(--bg-deep); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 34px; line-height: 1.3; font-weight: 800;
  letter-spacing: -0.5px;
}
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; }
.deep .section-head p { color: #b9c6df; }
.deep .eyebrow { color: var(--accent); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: all .22s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(45,212,191,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(30,79,163,.12), transparent 55%),
    linear-gradient(180deg, #f7faff, #ffffff);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 110px 0 96px;
}
.hero h1 {
  font-size: 46px; line-height: 1.22; font-weight: 800;
  letter-spacing: -1px; color: var(--ink);
}
.hero h1 .hl { color: var(--primary); }
.hero p.lead { margin-top: 22px; font-size: 17px; color: var(--ink-soft); max-width: 520px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-soft); box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero 视觉卡片 */
.hero-visual {
  position: relative;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.hero-visual .tag { font-size: 13px; opacity: .8; letter-spacing: 1px; }
.hero-visual .big { font-size: 40px; font-weight: 800; margin: 8px 0 4px; }
.hero-visual .sub { opacity: .85; font-size: 14px; }
.viz-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px;
}
.viz-cell {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 16px;
}
.viz-cell .n { font-size: 24px; font-weight: 800; }
.viz-cell .t { font-size: 13px; opacity: .82; margin-top: 2px; }

/* ===== 客户/信任条 ===== */
.trust { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 2px; margin-bottom: 20px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; opacity: .65; }
.trust-logos span { font-weight: 700; font-size: 16px; color: var(--ink-soft); }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,79,163,.10), rgba(45,212,191,.18));
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--primary); font-size: 24px; font-weight: 800;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* 服务卡片（services 页） */
.svc {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  align-items: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: all .25s ease;
}
.svc:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.svc .ic {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800;
}
.svc h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--ink-soft); font-size: 15px; }
.svc ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.svc ul li { margin: 6px 0; }

/* ===== 数据指标 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 42px; font-weight: 800; color: var(--primary); }
.deep .stat .num { color: #fff; }
.stat .num .u { font-size: 22px; }
.stat .lbl { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.deep .stat .lbl { color: #b9c6df; }

/* ===== 价值观 ===== */
.values { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value {
  text-align: center; padding: 30px 20px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.value .ic { font-size: 30px; }
.value h4 { margin: 12px 0 6px; font-size: 17px; }
.value p { color: var(--ink-soft); font-size: 14px; }

/* ===== 流程 / 时间线 ===== */
.timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tl { position: relative; padding-top: 28px; }
.tl::before {
  content: ""; position: absolute; top: 8px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 5px rgba(30,79,163,.15);
}
.tl .yr { font-weight: 800; color: var(--primary); }
.tl h4 { margin: 6px 0 6px; font-size: 16px; }
.tl p { color: var(--ink-soft); font-size: 14px; }

/* ===== CTA ===== */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.35), transparent 70%);
}
.cta-box h2 { font-size: 32px; font-weight: 800; }
.cta-box p { margin: 14px auto 28px; max-width: 560px; opacity: .9; }

/* ===== 关于页 简介 ===== */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split .txt h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.about-split .txt p { color: var(--ink-soft); margin-bottom: 16px; }
.about-visual {
  background: linear-gradient(160deg, var(--bg-soft), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px;
}
.about-visual .row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.about-visual .row:last-child { border-bottom: none; }
.about-visual .row .k { color: var(--ink-soft); }
.about-visual .row .v { font-weight: 700; color: var(--primary); }

/* ===== 联系页 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; }
.cinfo {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.cinfo .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: #fff; font-size: 22px;
}
.cinfo .k { font-size: 13px; color: var(--muted); }
.cinfo .v { font-weight: 700; font-size: 16px; }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

.map-placeholder {
  margin-top: 40px;
  height: 320px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(0deg, rgba(30,79,163,.05), rgba(30,79,163,.05)),
    repeating-linear-gradient(45deg, #f1f5fb 0 18px, #eaf0f8 18px 36px);
  display: grid; place-items: center; color: var(--muted);
  text-align: center;
}
.map-placeholder .pin { font-size: 34px; margin-bottom: 8px; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-deep); color: #c8d3e6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #7e8db0; }
.footer p.desc { margin-top: 16px; font-size: 14px; color: #9fb0ce; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin: 10px 0; font-size: 14px; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8a9bbd;
}
.footer-bottom a { color: #8a9bbd; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ===== 动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-4, .values, .timeline, .stats { grid-template-columns: repeat(2, 1fr); }
  .about-split, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 24px; border-radius: 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .values, .timeline, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
  .viz-grid { grid-template-columns: 1fr 1fr; }
}
