/* =========================================================
   深圳市梅俊程智能终端科技有限公司 - 官网样式
   设计基调：浅色工业风 / 深蓝 + 工业橙 / 高对比度易读
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --c-brand: #0b3d91;        /* 工业深蓝 */
  --c-brand-2: #14509f;
  --c-accent: #ff6a00;       /* 工业橙（强调 / CTA） */
  --c-accent-dark: #e05c00;
  --c-ink: #16202e;          /* 正文 */
  --c-ink-2: #46566b;        /* 次要文字 */
  --c-line: #dfe5ee;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --c-bg-deep: #0b2347;      /* 深色区块 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 16px 44px rgba(11, 61, 145, 0.16);
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
          "Segoe UI", Roboto, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 16px; font-weight: 700; color: var(--c-ink); letter-spacing: .01em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p { margin: 0 0 14px; }
ul { padding-left: 1.2em; margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { color: var(--c-brand); }

/* ---------- 可访问性 ---------- */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--deep { background: var(--c-bg-deep); color: #e8eef7; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep strong { color: #ffb277; }
.section-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--c-ink-2); font-size: 1.02rem; }
.section--deep .section-head p { color: #b9c9e0; }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-accent); font-weight: 700; margin-bottom: 10px;
}

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--c-bg-deep); color: #cfdcf0; font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -1px;
}
.logo-text b { display: block; font-size: 1.02rem; color: var(--c-brand); line-height: 1.2; }
.logo-text span { display: block; font-size: .74rem; color: var(--c-ink-2); letter-spacing: .06em; }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--c-ink); font-weight: 600; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--c-brand); border-bottom-color: var(--c-accent); text-decoration: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--c-brand); transition: .25s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow); display: none;
  }
  .menu.open { display: flex; }
  .menu li { border-bottom: 1px solid var(--c-line); }
  .menu a { display: block; padding: 14px 0; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 6px 18px rgba(255,106,0,.28); }
.btn--primary:hover { background: var(--c-accent-dark); }
.btn--ghost { background: #fff; color: var(--c-brand); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-brand); }
.btn--dark { background: var(--c-brand); color: #fff; }
.btn--dark:hover { background: var(--c-brand-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b2347 0%, #123a75 55%, #0b3d91 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  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;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 4.4vw, 3rem); margin-bottom: 18px; }
.hero h1 .hl { color: #ffb277; }
.hero .lead { font-size: 1.08rem; color: #d5e2f5; max-width: 620px; }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 0; margin: 26px 0 0; }
.hero-badges li {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; color: #eaf1fb;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

/* ---------- 产品示意图（纯 CSS/SVG 占位） ---------- */
.device-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 26px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
}
.device {
  background: linear-gradient(180deg, #ffffff, #eef3fa); color: var(--c-brand);
  border-radius: 14px; padding: 18px 12px; text-align: center; box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.device svg { margin: 0 auto 8px; }
.device b { display: block; font-size: .92rem; }
.device span { font-size: .74rem; color: var(--c-ink-2); }

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

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c3d3ea; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e8f0fb, #d6e4f7); margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--c-ink-2); font-size: .95rem; margin-bottom: 12px; }
.card ul { font-size: .92rem; color: var(--c-ink-2); margin-bottom: 0; }
.card ul li::marker { color: var(--c-accent); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; line-height: 1.2; }
.stat span { font-size: .9rem; color: #b9c9e0; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 痛点 / 对比 ---------- */
.pain { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .pain { grid-template-columns: 1fr; } }
.pain-box { border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--c-line); background: #fff; }
.pain-box.bad { background: #fff6f3; border-color: #f7d9cd; }
.pain-box.good { background: #f2f8ff; border-color: #cfe0f5; }
.pain-box h3 { font-size: 1.05rem; }
.pain-box ul { list-style: none; padding: 0; margin: 0; }
.pain-box li { padding-left: 26px; position: relative; font-size: .95rem; color: var(--c-ink-2); }
.pain-box li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pain-box.bad li::before { content: "✕"; color: #d0451f; }
.pain-box.good li::before { content: "✓"; color: #1a7f4b; }

/* ---------- 场景标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--c-ink-2); }

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--c-ink-2); font-size: .93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1rem; color: var(--c-ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-accent); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--c-brand); }
.faq .answer { padding: 0 20px 20px; color: var(--c-ink-2); font-size: .96rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
thead th { background: var(--c-bg-soft); color: var(--c-brand); font-size: .92rem; }
tbody tr:last-child td { border-bottom: none; }
td { color: var(--c-ink-2); }

/* ---------- 表单 ---------- */
.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--c-ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-brand); outline: 2px solid #c9dcf8; outline-offset: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--c-ink-2); }
.form-msg { margin-top: 14px; font-size: .92rem; font-weight: 600; color: #1a7f4b; display: none; }
.form-msg.show { display: block; }

/* ---------- 联系卡片 ---------- */
.contact-card {
  background: linear-gradient(150deg, #0b2347, #123a75); color: #fff; border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.contact-card h3, .contact-card b { color: #fff; }
.contact-card p, .contact-card li { color: #cfdcf0; }
.contact-card ul { list-style: none; padding: 0; }
.contact-card li { margin-bottom: 12px; font-size: .96rem; }
.contact-card .tel { font-size: 1.5rem; font-weight: 800; color: #ffb277; display: inline-block; margin: 6px 0 14px; }

/* ---------- CTA 条 ---------- */
.cta-bar {
  background: linear-gradient(120deg, var(--c-accent), #ff8a2b); color: #fff;
  border-radius: var(--radius); padding: 40px 32px; display: flex; flex-wrap: wrap;
  gap: 20px; align-items: center; justify-content: space-between;
}
.cta-bar h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.cta-bar p { margin: 0; color: #fff3e8; }
.cta-bar .btn { background: #fff; color: var(--c-accent-dark); }
.cta-bar .btn:hover { background: #fff8f2; }

/* ---------- 页脚 ---------- */
.footer { background: #081b36; color: #b9c9e0; padding: 56px 0 0; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.footer a { color: #cfdcf0; }
.footer a:hover { color: #ffb277; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #8fa6c4;
}

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: .86rem; color: var(--c-ink-2); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b8c5d6; }

/* ---------- 悬浮联系（移动端） ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: none; }
.fab a { display: flex; align-items: center; gap: 8px; background: var(--c-accent); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 22px rgba(255,106,0,.4); }
.fab a:hover { text-decoration: none; background: var(--c-accent-dark); }
@media (max-width: 900px) { .fab { display: block; } }

/* ---------- 页面头部（内页） ---------- */
.page-head { background: linear-gradient(135deg, #0b2347, #14509f); color: #fff; padding: 46px 0 54px; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.page-head p { color: #d5e2f5; max-width: 720px; margin: 0; font-size: 1.02rem; }

/* ---------- 图片占位说明 ---------- */
.notice { background: #fff8ec; border: 1px dashed #f0c48a; color: #8a5a12;
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; }
