/* ============================================================
   苏州锦铃科电子有限公司 官网样式
   设计系统：深蓝主色 + 蓝橙强调色 + 卡片化布局
   ============================================================ */

:root {
  --blue-900: #0A2540;
  --blue-800: #0E3360;
  --blue-700: #133E73;
  --blue-600: #1B5FA8;
  --blue-500: #2E7DD1;
  --orange-500: #FF7A1A;
  --orange-400: #FF9442;

  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --text: #1A2B3C;
  --text-soft: #5A6B7B;
  --border: #E3EAF2;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 37, 64, .08);
  --shadow-hover: 0 16px 40px rgba(10, 37, 64, .14);
  --maxw: 1160px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 37, 64, .08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; color: var(--blue-900); letter-spacing: .5px; }
.brand-text em {
  font-style: normal; font-size: 10px; letter-spacing: 2px;
  color: var(--text-soft);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px; color: var(--text); font-weight: 500;
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--orange-500);
  transition: width .25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--blue-600); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--orange-500); color: #fff !important;
  padding: 9px 18px !important; border-radius: 999px; font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--orange-400); transform: translateY(-1px); }

.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: var(--blue-900); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.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 ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 96px 0 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46, 125, 209, .45), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(255, 122, 26, .25), transparent 55%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700) 60%, var(--blue-600));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-size: 14px; letter-spacing: 2px;
  color: var(--orange-400); font-weight: 600; margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 52px); line-height: 1.2;
  margin: 0 0 18px; font-weight: 800; letter-spacing: .5px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); max-width: 720px;
  color: rgba(255,255,255,.9); margin: 0 0 30px;
}
.hero-sub strong { color: #fff; }
.hero-slogan {
  font-size: clamp(15px, 2vw, 19px); font-weight: 700; letter-spacing: .12em;
  color: var(--orange-400); margin: 0 0 22px;
  padding: 8px 16px; display: inline-block;
  border-left: 3px solid var(--orange-500);
  background: rgba(255,255,255,.06);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-size: 15px; font-weight: 600; font-family: inherit;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 22px rgba(255,122,26,.4); }
.btn-primary:hover { background: var(--orange-400); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.hero-stats li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px 16px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-num { display: block; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.8); }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  color: var(--orange-500); font-weight: 700; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 12px; color: var(--blue-900); font-weight: 800; }
.lead { color: var(--text-soft); font-size: 16px; margin: 0; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start;
}
.about-text p { margin: 0 0 16px; color: var(--text); }
.about-text b { color: var(--blue-700); }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-points li {
  background: var(--bg); border: 1px solid var(--border);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.about-points h3 { margin: 0 0 6px; font-size: 17px; color: var(--blue-900); }
.about-points p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ---------- 核心业务 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.biz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.biz-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff; margin-bottom: 18px;
}
.biz-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--blue-900); }
.biz-card p { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.biz-list li {
  position: relative; padding-left: 22px; font-size: 14px; color: var(--text);
}
.biz-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--orange-500);
}

/* ---------- 技术能力 ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tech-card {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff; border-radius: var(--radius); padding: 26px 22px;
  transition: transform .25s ease;
}
.tech-card:hover { transform: translateY(-5px); }
.tech-card h3 { margin: 0 0 10px; font-size: 18px; color: #fff; }
.tech-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- 案例与资质 ---------- */
.showcase-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.col-title { font-size: 20px; color: var(--blue-900); margin: 0 0 20px; padding-left: 12px; border-left: 4px solid var(--orange-500); }
.case-list { display: grid; gap: 16px; }
.case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--blue-600); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.case-card h4 { margin: 0 0 8px; font-size: 17px; color: var(--blue-900); }
.case-card p { margin: 0; font-size: 14px; color: var(--text-soft); }

.certs-col {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff; border-radius: var(--radius); padding: 26px 24px;
}
.certs-col .col-title { color: #fff; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cert-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-list strong { font-size: 16px; color: #fff; }
.cert-list span { font-size: 13px; color: rgba(255,255,255,.75); }
.certs-note { font-size: 12px; color: rgba(255,255,255,.6); margin: 18px 0 0; }

/* ---------- 应用领域 ---------- */
.fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.field-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease;
}
.field-card:hover { transform: translateY(-5px); border-color: var(--blue-500); }
.field-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--blue-900); }
.field-card p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* ---------- 为什么选择我们 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow);
}
.why-no {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--orange-500); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.why-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--blue-900); }
.why-item p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* ---------- 设备与产品实景 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gallery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10,37,64,.12); }
.gallery-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f6f8;
  display: grid; place-items: center;
}
.gallery-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-card:hover .gallery-img img { transform: scale(1.05); }
.gallery-card figcaption {
  padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: var(--blue-900);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ---------- 治具载具网格（5 列，10 图刚好 2 行） ---------- */
.fixture-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .fixture-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .fixture-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 视频演示 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.video-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10,37,64,.12); }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1b34;
  display: grid; place-items: center;
}
.video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-card figcaption {
  padding: 14px 16px;
  font-size: 15px; font-weight: 600; color: var(--blue-900);
  text-align: center;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- 合作流程 ---------- */
.process-hero {
  margin: 0 0 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.process-hero img {
  display: block; width: 100%; height: auto;
  background: #fff;
}
.process-hero figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--text-soft);
  border-top: 1px solid var(--border);
}
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  counter-reset: step;
}
.process-steps li {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 18px 22px; text-align: center;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--blue-700); color: #fff;
  font-weight: 800; margin-bottom: 12px;
}
.process-steps h3 { margin: 0 0 6px; font-size: 16px; color: var(--blue-900); }
.process-steps p { margin: 0; font-size: 13px; color: var(--text-soft); }

/* ---------- 联系我们 ---------- */
.contact { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .kicker { color: var(--orange-400); }
.contact h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.contact .lead { color: rgba(255,255,255,.85); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; font-size: 15px; color: rgba(255,255,255,.92); }
.c-label {
  flex: none; width: 48px; font-size: 13px; color: var(--orange-400); font-weight: 700;
}
.contact-note { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 18px; }

.contact-form {
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-hover);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--blue-900); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(46,125,209,.15);
}
.field textarea { resize: vertical; }
.form-hint { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.form-hint.ok { color: #1f9d55; }
.form-hint.err { color: #d64545; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.8); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  align-items: center; padding: 36px 24px;
}
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.65); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,.8); transition: color .2s ease; }
.footer-nav a:hover { color: var(--orange-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; font-size: 12px; color: rgba(255,255,255,.55);
}

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid, .showcase-grid { grid-template-columns: 1fr; }
  .biz-grid, .tech-grid, .fields-grid, .why-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 14px 24px 20px;
    box-shadow: 0 14px 30px rgba(10,37,64,.12); border-bottom: 1px solid var(--border);
  }
  .nav.open a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .biz-grid, .tech-grid, .fields-grid, .why-grid, .process-steps, .hero-stats, .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
