/* self-hosted fonts */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600 700;font-display:swap;src:url('/assets/fonts/montserrat-var.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 500;font-display:swap;src:url('/assets/fonts/roboto-var.woff2') format('woff2');}

/* meitai-static v4 2026-11-24T06:01 */
/* ==========================================================================
   Meitai Precision — clean demo stylesheet
   全站只有这一个 CSS 文件。改颜色只需改下面 :root 里的 6 个变量。
   ========================================================================== */

:root {
  --blue: #336699;        /* 主色：按钮、标题装饰、边框强调 */
  --blue-dark: #24476b;   /* 主色深：鼠标悬停 */
  --ink: #1e1f2e;         /* 正文字色（近黑） */
  --muted: #5e6278;       /* 次要文字（说明、图注） */
  --gold: #e1b32d;        /* 点缀色：数字、关键词 */
  --bg: #f8f8fa;          /* 浅底区块 */
  --line: #e5e7eb;        /* 分隔线与卡片边框 */
  --wrap: 1600px;         /* 内容最大宽度 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.2; }
h1, h2 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-weight: 700; }
h3, h4 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-weight: 600; }

/* 通用容器 */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 10px; }
.wrap-narrow { max-width: 900px; }

/* ===================== 按钮 ===================== */
.btn {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-weight: 600;
  font-weight: 400;
  display: inline-block;
  padding: 16px 45px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.1;
  transition: background .18s ease, color .18s ease;
}
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }
.btn-lg { padding: 16px 45px; font-size: 16px; }

/* ===================== 页头 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1344px; margin: 0 auto; padding: 0;
  position: relative;
  display: flex; align-items: center; gap: 28px;
  height: 100px;
}
.logo img { width: 295px; height: auto; }

/* 导航主体 */
.nav { margin-left: 108px; margin-right: auto; display: flex; align-items: center; gap: 44px; }
.nav a { color: var(--ink); font-size: 18px; }
.nav a:hover { color: var(--blue); }

/* 下拉菜单（桌面端 hover 展开） */
.nav-item { position: relative; }
.caret { font-size: 11px; color: var(--muted); }
.sub {
  position: absolute; top: 100%; left: -16px;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .10);
  padding: 8px 0;
  display: none;
}
.has-sub:hover .sub { display: block; }
.sub a {
  display: block;
  padding: 9px 18px;
  font-size: 14.5px;
  white-space: nowrap;
}
.sub a:hover { background: var(--bg); }

/* 汉堡菜单按钮：桌面端隐藏 */
.nav-check { display: none; }
.nav-burger { display: none; }
.nav-cta { display: none; }   /* 手机端导航里那个按钮 */
.sub-check { display: none; }
.sub-toggle { display: none; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 950px;
  padding: 120px 0;
  text-align: center;
  color: #fff;
  /* 改背景图就改这一行 */
  background-image:
    linear-gradient(rgba(51, 102, 153, .66), rgba(51, 102, 153, .66)),
    url("assets/img/hero-banner.webp");
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: none; margin: 0 auto; padding: 0 10px; }
.hero h1, .hero-sub { text-shadow: 0 2px 20px rgba(8, 22, 40, .45); }
.hero h1 { font-size: 50px; margin-bottom: 26px; color: #fff; line-height: 1.24; }
.hero-sub { font-size: 18px; line-height: 1.65; color: #fff; margin: 0 auto 34px; max-width: 1500px; }

/* ===================== 通用区块 ===================== */
.section { padding: 0; margin-top: 100px; }
h2, h3, h4 { margin-top: 0; }
.section-alt { background: transparent; }
.section-title { font-size: 36px; text-align: center; margin: 0 0 12px; line-height: 1.2; color: var(--ink); }
.section-lead {
  max-width: 1580px; margin: 0 auto 34px; text-align: center;
  color: var(--muted); font-size: 18px; line-height: 1.65;
}

/* ===================== 网格 ===================== */
.grid { display: grid; gap: 24px; align-items: start; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 服务卡 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px 22px 24px; }
.card h3 { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

/* 材料小卡 */
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 22px 20px;
}
.tile h3 { font-size: 20px; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.accent { color: var(--blue); font-size: 16px; }

/* ===================== 设备区 ===================== */
.equip { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.equip-media video { width: 100%; border-radius: 6px; background: #000; }
.equip-list h3 { font-size: 17px; margin: 0 0 8px; }
.equip-list ul { list-style: none; margin: 0 0 22px; padding: 0; }
.equip-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
.equip-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===================== 零件展示 ===================== */
.parts figure { margin: 0; }
.parts img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; border-radius: 6px;
}
.parts figcaption {
  margin-top: 10px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
  text-align: center;
}

/* ===================== 四步流程 ===================== */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start;
}
.steps li {
  background: #f5f5f5;
  border-radius: 0;
  padding: 52px 34px;
  display: flex;
  flex-direction: column;
}
.step-icon {
  display: inline-flex;
  color: var(--gold);        /* 图标颜色：换这里 */
  margin-bottom: 34px;
}
.step-icon svg { width: 84px; height: 84px; }
.steps h3 { font-size: 20px; margin-bottom: 14px; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ===================== FAQ ===================== */
.faq { counter-reset: faq; }
.faq details {
  background: #f4f4f5;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 2px;
}
.faq details:last-child { margin-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  padding: 14px 22px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { counter-increment: faq; content: "+ Q" counter(faq) ": "; color: var(--ink); font-weight: 700; }
.faq details[open] summary::before { content: "− "; }
.faq p { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ===================== 询价表单 ===================== */
.quote-section { padding-bottom: 96px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.rule { width: 76px; height: 4px; background: var(--gold); margin-bottom: 18px; }
.quote-title { font-size: 32px; }
.muted { color: var(--muted); font-size: 14.5px; }

.quote-form { display: grid; gap: 14px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 102, 153, .12);
}
.quote-form .btn { justify-self: start; margin-top: 4px; }

/* ===================== 页脚 ===================== */
.site-footer {
  margin-top: 70px; background: #fff; border-top: 1px solid var(--line); padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 72px; }
.footer-grid h4 { font-size: 16px; }
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid img { width: 140px; height: auto; margin-bottom: 12px; }
.footer-bar {
  background: var(--blue); color: #fff;
  text-align: center; font-size: 13px; padding: 20px;
}

/* ===================== 手机端 ===================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .equip { grid-template-columns: 1fr; gap: 28px; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .header-inner { height: 64px; gap: 10px; padding: 0 14px; }
  .logo img { width: 132px; }
  .header-cta { margin-left: 12px; padding: 9px 14px; font-size: 13.5px; }

  /* 汉堡按钮 */
  .nav-burger {
    margin-left: auto;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; padding: 8px;
    cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  /* 手机端：导航变成抽屉，勾选后才展开 */
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(16, 24, 40, .10);
    padding: 6px 0 12px;
  }
  .nav-check:checked ~ .nav { display: flex; }

  .nav a { display: block; padding: 12px 20px; font-size: 15.5px; }

  /* 手机端：导航里不再重复放 CTA（页头右侧已有） */
  .nav a.nav-cta { display: none; }

  /* 手机端：Capabilities 用开关展开，点一下开、再点收起 */
  .nav-item > a { display: none; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; font-size: 15.5px; cursor: pointer;
  }
  .sub {
    position: static; display: none;
    border: 0; box-shadow: none; min-width: 0;
    padding: 0 0 0 14px;
    background: var(--bg);
  }
  .sub-check:checked ~ .sub { display: block; }
  .sub a { padding: 10px 20px; font-size: 14.5px; color: var(--muted); }
  .caret { display: none; }

  .hero { min-height: 466px; padding: 64px 0; background-position: 50% 0%; }
  .section { margin-top: 56px; }
  .section-lead { margin-bottom: 22px; }
  .hero h1 { font-size: 22px; line-height: 1.35; }
  .hero-sub { font-size: 15px; }
  .section { padding: 0; margin-top: 56px; }
  .section-title { font-size: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===================== 内页：蓝色标题带 ===================== */
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 62px 0;
  text-align: center;
}
.page-hero h1 { font-size: 38px; color: #fff; margin-bottom: 10px; }
.page-hero p { margin: 0 auto; max-width: 860px; color: #dbe8f6; font-size: 16px; }

/* ===================== 勾选列表 ===================== */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15.5px;
}
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===================== 参数表 ===================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 16px;
}
.spec-table th {
  background: var(--blue);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.spec-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.spec-table tbody tr:nth-child(odd) { background: var(--bg); }
.spec-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* 两列网格、居中排版 */
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 小图版本：用于只有两三张图、不希望占满整宽的页面 */
.parts.parts-small {
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 48px;
}
.parts.parts-small img { width: 100%; }
.parts.parts-small figcaption { text-align: center; }
.center { text-align: center; }

/* 当前页导航高亮 */
.nav a.is-active { color: var(--blue); }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--blue);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0; }
  .page-hero h1 { font-size: 27px; }
  .page-hero p { font-size: 15px; }
  .spec-table { font-size: 14px; }
  .spec-table th, .spec-table td { padding: 10px 10px; }
  .spec-table td:first-child { white-space: normal; }
}

/* 材料区底部链接 */
.materials-link { text-align: center; margin: 28px 0 0; }
.materials-link a { color: var(--gold); font-weight: 600; font-size: 16px; text-decoration: none; }
.materials-link a:hover { text-decoration: underline; }

/* ===================== 返回顶部 ===================== */
html { scroll-behavior: smooth; }
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .16);
  transition: background .18s ease, color .18s ease;
}
.to-top:hover { background: var(--blue); color: #fff; }
@media (max-width: 767px) {
  .to-top { right: 16px; bottom: 18px; width: 46px; height: 46px; }
}

/* ===================== 设备/检测图集 ===================== */
.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px;
  margin-top: 34px; align-items: start;
}
.photo-card { margin: 0; display: flex; flex-direction: column; }
.photo-card img {
  width: 100%; height: 340px; object-fit: contain; display: block;
  background: #f6f7f9; border-radius: 3px; cursor: zoom-in;
}
.photo-card figcaption {
  margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted);
  text-align: center;
}
@media (max-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 767px)  { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .photo-card img { height: 190px; } }


/* ===================== 灯箱 ===================== */
.showcase img, .photo-card img, .parts img { cursor: zoom-in; }

.lb {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  background: #0a0e14;
  padding: 60px 72px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lb.is-open { display: flex; }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 190px);
  width: auto; height: auto;
  object-fit: contain; background: #fff; border-radius: 3px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.lb-stage figcaption {
  margin-top: 16px; color: #e8eef5; font-size: 15px; line-height: 1.5;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12);
  color: #fff; cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 18px; right: 18px; font-size: 30px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lb { padding: 56px 12px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-stage img { max-height: calc(100vh - 170px); }
  .lb-stage figcaption { font-size: 13.5px; margin-top: 10px; }
}
