/* ==========================================================
   微知精测 WEIZHI · 官网样式表
   原创代码，未引用任何第三方站点样式
   ========================================================== */

:root {
  --brand: #0f3a5f;
  --brand-dark: #0a2842;
  --brand-light: #1a5d8f;
  --accent: #c8963e;
  --accent-soft: #f7f0e2;
  --ink: #16232f;
  --ink-2: #3d4f60;
  --muted: #6b7c8c;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-dark: #0d1f2e;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 58, 95, .06), 0 8px 24px rgba(15, 58, 95, .06);
  --wrap: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 .6em;
  line-height: 1.35;
}

h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }

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

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--brand-dark);
  color: #cfdbe6;
  font-size: 13px;
  line-height: 40px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; }
.topbar a { color: #cfdbe6; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 22px; }
@media (max-width: 760px) { .topbar .tb-right { display: none; } }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  flex: none;
}
.logo-text { line-height: 1.2; }
.logo-text b {
  display: block;
  font-size: 17px;
  color: var(--brand);
  letter-spacing: .06em;
}
.logo-text span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover { color: var(--brand-light); background: var(--bg-soft); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-cta:hover { background: var(--brand-light); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 18px;
  color: var(--brand);
  cursor: pointer;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #dbe6f0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero h1 { color: #fff; font-size: 42px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #a9bccc; font-size: 16px; max-width: 520px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.hero-tags span {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: #c5d4e2;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #21160a; font-weight: 600; }
.btn-primary:hover { background: #d9a856; color: #21160a; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #e5eef6; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-light); color: #fff; }

.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
  .hero h1 { font-size: 30px; }
  .hero-figure { order: -1; max-width: 420px; }
}

/* ---------- 数据条 ---------- */
.stats {
  background: var(--brand);
  color: #fff;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(255,255,255,.12);
}
.stat {
  background: var(--brand);
  padding: 26px 24px;
  text-align: center;
}
.stat b { display: block; font-size: 30px; color: #fff; font-weight: 600; letter-spacing: .02em; }
.stat b i { font-style: normal; font-size: 16px; color: var(--accent); margin-left: 2px; }
.stat span { font-size: 13px; color: #a9c1d6; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- 产品网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #c3d3e2; box-shadow: var(--shadow); transform: translateY(-2px); }

.prod-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.prod-card .thumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
}
.prod-card .thumb svg { width: 100%; max-width: 210px; height: auto; }
.prod-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prod-card .model {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.prod-card h3 { font-size: 17px; margin-bottom: 8px; }
.prod-card h3 a { color: var(--ink); }
.prod-card h3 a:hover { color: var(--brand-light); }
.prod-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.prod-card .meta { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.prod-card .meta dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 14px; }
.prod-card .meta dt { color: var(--muted); }
.prod-card .meta dd { margin: 0; color: var(--ink); }
.prod-card .more { font-size: 13px; letter-spacing: .04em; }

/* ---------- 行业应用 ---------- */
.ind-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ind-card .ico { flex: none; width: 40px; height: 40px; }
.ind-card h4 { margin-bottom: 4px; }
.ind-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- 能力/流程 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 16px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  position: absolute;
  top: -16px; left: 0;
  background: var(--bg);
  padding-right: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
}
.section.soft .step::before { background: var(--bg-soft); }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 页头（内页） ---------- */
.page-head {
  background: var(--brand-dark);
  color: #cfdbe6;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.page-head p { color: #9fb4c6; margin: 0; max-width: 640px; font-size: 14.5px; }
.crumb { font-size: 13px; color: #8aa1b6; margin-bottom: 14px; }
.crumb a { color: #8aa1b6; }
.crumb a:hover { color: var(--accent); }

/* ---------- 内容页 ---------- */
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose ul.ticks { list-style: none; padding-left: 0; }
.prose ul.ticks li { position: relative; padding-left: 22px; }
.prose ul.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 8px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.spec-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); width: 34%; }
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6a5220;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
}

/* ---------- 产品详情布局 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.figure-box {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px;
}
@media (max-width: 900px) {
  .detail-layout .figure-box { order: -1; }
}

.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.side-box h4 { margin-bottom: 14px; }
.side-box ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; }
.side-box li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li span { color: var(--muted); }
.side-box li b { float: right; color: var(--ink); font-weight: 600; }

/* ---------- 筛选器 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.filters button {
  font-family: inherit;
  font-size: 14px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 100px;
  cursor: pointer;
  transition: all .18s ease;
}
.filters button:hover { border-color: var(--brand-light); color: var(--brand-light); }
.filters button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 新闻 ---------- */
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-of-type { padding-top: 0; }
.news-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.news-date b { display: block; font-size: 26px; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a { color: var(--ink); }
.news-item p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-date { text-align: left; border-right: 0; display: flex; gap: 8px; align-items: baseline; }
  .news-date b { font-size: 18px; }
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 56px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 25px; }
.cta-band p { color: #a9c1d6; margin: 0; font-size: 14.5px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.info-list li span { color: var(--muted); font-size: 13.5px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(26, 93, 143, .1);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #93a8ba;
  font-size: 14px;
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-top h5 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-top a { color: #93a8ba; }
.footer-top a:hover { color: var(--accent); }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 9px; font-size: 13.5px; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; color: #7f96a9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6d8398;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 杂项 ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: 13px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 40px 0; }

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .page-head { padding: 40px 0; }
  .page-head h1 { font-size: 25px; }
}
