/* ==================================================
   福建新数思科技有限公司 — 官网样式
   简约大气 / 纯静态 / 零外部依赖
   ================================================== */

:root {
  --ink:        #0C1524;   /* 主文字 / 深色底 */
  --ink-soft:   #1E293B;
  --brand:      #1A5CFF;   /* 品牌主色 */
  --brand-dark: #0B3CC9;
  --brand-soft: #EAF0FF;
  --accent:     #FF7A45;   /* 点缀色 */
  --bg:         #FFFFFF;
  --bg-soft:    #F5F7FB;
  --muted:      #64748B;
  --line:       #E6EAF2;
  --radius:     14px;
  --shadow-sm:  0 2px 12px rgba(12, 21, 36, .06);
  --shadow-md:  0 12px 32px rgba(12, 21, 36, .09);
  --shadow-lg:  0 24px 60px rgba(12, 21, 36, .14);
  --maxw:       1200px;
  --nav-h:      72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 8px;
  font-size: .96rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(26,92,255,.24); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26,92,255,.32); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}
.nav.scrolled { background: #fff; border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #4C8DFF 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(26,92,255,.28);
}
.logo-sub { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; line-height: 1; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a { position: relative; font-size: .96rem; font-weight: 500; color: var(--ink-soft); padding: 6px 0; transition: color .2s; }
.nav-menu a:hover { color: var(--brand); }
.nav-menu a.active { color: var(--brand); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--nav-h) + 84px) 0 92px;
  background:
    radial-gradient(900px 420px at 82% -6%, rgba(26,92,255,.13), transparent 60%),
    radial-gradient(700px 380px at 8% 6%, rgba(255,122,69,.09), transparent 62%),
    var(--bg-soft);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-size: 1.75rem; color: var(--ink); line-height: 1.2; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card-head strong { font-size: .95rem; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.metric-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.metric-row b { font-size: 2rem; line-height: 1; }
.metric-row small { color: var(--accent); font-weight: 600; font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin: 18px 0 10px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7FA9FF, #DCE7FF); display: block; }
.bars i:last-child { background: linear-gradient(180deg, var(--brand), #6E9BFF); }
.hero-card-foot { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.float-card {
  position: absolute; width: 190px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.float-card b { font-size: .95rem; display: block; }
.float-card span { font-size: .74rem; color: var(--muted); }
.float-card .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.float-a { left: -34px; bottom: 46px; }
.float-b { right: -20px; top: -22px; }

/* ---------- 区块 ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- 业务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all .28s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #D6E1FF; }
.card-ic {
  width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px; transition: .28s;
}
.card:hover .card-ic { background: var(--brand); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { margin-top: 18px; display: grid; gap: 9px; }
.card ul li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--ink-soft); }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg);
}
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--brand); font-weight: 600; font-size: .92rem; }
.card-link:hover { gap: 10px; }

/* ---------- 优势 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.adv b { display: block; font-size: 1.5rem; color: var(--brand); margin-bottom: 8px; }
.adv h4 { font-size: 1.02rem; margin-bottom: 8px; }
.adv p { font-size: .9rem; color: var(--muted); }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-size: .82rem; font-weight: 700;
  color: var(--brand); letter-spacing: .06em;
}
.step::after {
  content: ""; position: absolute; top: 14px; left: 46px; right: 0; height: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h4 { margin: 6px 0 8px; font-size: 1.02rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- 深色 CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #0C1524 0%, #16294D 55%, #1A3C7A 100%);
  color: #fff; padding: 76px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -140px; top: -180px; background: radial-gradient(circle, rgba(26,92,255,.5), transparent 68%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.72); margin-top: 12px; }

/* ---------- 页头（内页） ---------- */
.page-head {
  padding: calc(var(--nav-h) + 64px) 0 60px;
  background:
    radial-gradient(800px 340px at 78% 0%, rgba(26,92,255,.12), transparent 62%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line); text-align: center;
}
.page-head .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 16px auto 0; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--muted); }
.about-art {
  border-radius: 18px; background: linear-gradient(135deg, #0C1524, #1A3C7A);
  color: #fff; padding: 40px; box-shadow: var(--shadow-lg);
}
.about-art h3 { color: #fff; margin-bottom: 18px; }
.about-art li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .94rem; }
.about-art li:last-child { border-bottom: 0; }
.about-art li b { color: #8FB6FF; min-width: 74px; font-weight: 600; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .n { font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: 10px; }
.value h4 { margin-bottom: 8px; }
.value p { font-size: .92rem; color: var(--muted); }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.tl-item b { color: var(--brand); font-size: .88rem; letter-spacing: .04em; }
.tl-item h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.tl-item p { color: var(--muted); font-size: .93rem; }

/* ---------- 产品服务 ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc.reverse .svc-art { order: -1; }
.svc-art {
  border-radius: 18px; border: 1px solid var(--line); background: var(--bg-soft);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.svc-art .win-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.svc-art .win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8DEEA; display: block; }
.svc-art .win-bar i:first-child { background: var(--accent); }
.svc-art .win-bar i:nth-child(2) { background: #FFC53D; }
.svc-art .shot { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.svc-art .shot h4 { font-size: .95rem; margin-bottom: 14px; }
.svc-art .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.svc-art .row:last-child { border-bottom: 0; }
.svc-art .row .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.svc-art .row span { color: var(--muted); }
.svc-art .row em { margin-left: auto; font-style: normal; font-weight: 600; font-size: .85rem; }
.svc h3 { font-size: 1.6rem; margin-bottom: 6px; }
.svc .sub { color: var(--brand); font-size: .88rem; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.svc > div > p { color: var(--muted); }
.svc-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.svc-list li { position: relative; padding-left: 22px; font-size: .92rem; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--brand);
}
.svc-tags { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.svc-tags span { font-size: .8rem; padding: 6px 12px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.info-item:hover { border-color: #D6E1FF; box-shadow: var(--shadow-sm); }
.info-item .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-item .t { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.info-item .v { font-weight: 600; font-size: 1.02rem; }
.info-item .v small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }

.map-box {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.map-box .map-placeholder { height: 200px; display: grid; place-items: center; gap: 8px; color: var(--muted); font-size: .9rem; background:
  repeating-linear-gradient(0deg, #EEF2F9 0 1px, transparent 1px 28px),
  repeating-linear-gradient(90deg, #EEF2F9 0 1px, transparent 1px 28px), var(--bg-soft); }

.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field label i { color: var(--accent); font-style: normal; margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,92,255,.12);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-msg { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 9px; font-size: .9rem; }
.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; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: .94rem; margin-top: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .9rem; max-width: 30em; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer li { font-size: .9rem; padding: 5px 0; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}
.footer-bottom a:hover { color: #fff; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .svc { grid-template-columns: 1fr; gap: 36px; }
  .svc.reverse .svc-art { order: 0; }
  .grid-3, .grid-4, .steps, .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 520px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-menu a.active::after { display: none; }
  .nav-menu .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .section { padding: 62px 0; }
  .grid-3, .grid-4, .steps, .values { grid-template-columns: 1fr; }
  .steps .step::after { display: none; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
}
