/* ==========================================================================
   MINIS · MGC 通用控制器系列 — 站点样式
   设计基调：稳定 · 高效 · 兼容 · 智能
   蓝色科技工业风，保留原站的深蓝主色，加入更克制的排版与结构分层
   ========================================================================== */

:root {
  --ink:        #0b1b2b;   /* 正文近黑蓝 */
  --ink-soft:   #46586b;   /* 次要文字 */
  --brand:      #0a4da2;   /* 主蓝（品牌） */
  --brand-deep: #062f63;   /* 深蓝，用于大色块 */
  --brand-lite: #1f7fe0;   /* 亮蓝，用于强调/描边 */
  --accent:     #12c0d6;   /* 青，点缀色（呼应电路/信号） */
  --line:       #dbe4ee;   /* 分隔线 */
  --paper:      #ffffff;
  --paper-2:    #f4f8fc;   /* 浅底 */
  --paper-3:    #eaf1f9;   /* 更浅底卡片 */
  --ok:         #17a673;

  --wrap: 1160px;

  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
          "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-lite); }

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

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  letter-spacing: .5px; box-shadow: 0 4px 14px rgba(10,77,162,.28);
  font-size: 15px;
}
.brand .name { font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--ink); }
.brand .name small { display:block; font-weight:600; font-size:10.5px; letter-spacing:2px; color: var(--brand-lite); }

.menu { display: flex; align-items: center; gap: 2px; }
.menu a {
  padding: 8px 14px; border-radius: 8px; color: var(--ink-soft);
  font-weight: 600; font-size: 15px; transition: .16s;
}
.menu a:hover { background: var(--paper-3); color: var(--brand); }
.menu a.active { color: var(--brand); background: var(--paper-3); }
.menu a.cta {
  margin-left: 8px; background: var(--brand); color: #fff;
  box-shadow: 0 4px 12px rgba(10,77,162,.3);
}
.menu a.cta:hover { background: var(--brand-lite); color:#fff; }

.navtoggle { display:none; background:none; border:1px solid var(--line);
  border-radius:8px; padding:8px 10px; cursor:pointer; color:var(--ink); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 52px 0; }
.section.alt { background: var(--paper-2); }
.section.deep {
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(31,127,224,.22), transparent 60%),
    linear-gradient(160deg, var(--brand-deep) 0%, #041f42 100%);
  color: #eaf2fb;
}
.section.deep .eyebrow { color: var(--accent); }
.section.deep h2, .section.deep h3 { color:#fff; }
.section.deep p { color:#c6d7ea; }

.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--brand-lite);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}

h1,h2,h3,h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
h2.title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: .5px; }
h3.sub   { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 720px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(10,77,162,.28); transition: .18s; cursor: pointer;
}
.btn:hover { background: var(--brand-lite); color:#fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); box-shadow:none; }
.btn.ghost:hover { border-color: var(--brand-lite); background: var(--paper-3); }
.btn.light { background:#fff; color: var(--brand-deep); }
.btn.light:hover { background:#eaf2fb; color: var(--brand-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eaf2fb;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(18,192,214,.20), transparent 55%),
    radial-gradient(1000px 600px at 10% 120%, rgba(31,127,224,.28), transparent 55%),
    linear-gradient(155deg, #072a57 0%, #041d3d 60%, #04162f 100%);
}
.hero::after {
  /* 电路点阵纹理 */
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: radial-gradient(rgba(120,180,255,.18) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 {
  color:#fff; font-size: clamp(28px, 3.9vw, 46px); font-weight: 800;
  letter-spacing: 1px; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: #c6d7ea; font-size: 18px; max-width: 560px; }
.hero .taglets { display:flex; flex-wrap:wrap; gap:10px; margin: 24px 0 30px; }
.taglet {
  font-size: 13px; font-weight: 700; letter-spacing:.5px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #dcecff;
}
.hero-actions { display:flex; flex-wrap:wrap; gap: 12px; }

.hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-panel h4 { color:#fff; font-size:14px; letter-spacing:2px; margin-bottom:16px; font-weight:800; }
.spec-quick { display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.spec-quick .cell {
  background: rgba(4,20,45,.35); border:1px solid rgba(255,255,255,.1);
  border-radius: 11px; padding: 14px;
}
.spec-quick .n { font-size: 26px; font-weight: 800; color: var(--accent); line-height:1; }
.spec-quick .l { font-size: 12.5px; color: #b9cde4; margin-top: 6px; }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display:block; font-weight:700; font-size:14.5px; color:var(--ink); margin-bottom:8px; }
.field label .req { color:#d64545; margin-left:2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-size:15px; font-family:inherit; color:var(--ink); background:#fff; transition:.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color:var(--brand-lite); box-shadow:0 0 0 3px rgba(31,127,224,.12);
}
.field textarea { min-height:120px; resize:vertical; }
.checks { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.check {
  display:flex; align-items:center; gap:10px; padding:11px 14px;
  border:1px solid var(--line); border-radius:10px; cursor:pointer; font-size:14.5px; transition:.15s;
}
.check:hover { border-color:var(--brand-lite); background:var(--paper-2); }
.check input { width:17px; height:17px; accent-color:var(--brand); cursor:pointer; }
.check.has-other { grid-column:1 / -1; }
.form-actions { margin-top:26px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.form-note { font-size:13px; color:var(--ink-soft); margin-top:16px; }
.form-msg {
  display:none; padding:16px 20px; border-radius:12px; margin-bottom:24px; font-size:15px; font-weight:600;
}
.form-msg.ok { display:block; background:#e6f7ef; border:1px solid #a6e0c6; color:#0d7a4f; }
.form-msg.err { display:block; background:#fdeaea; border:1px solid #f0b8b8; color:#b03535; }
@media (max-width:680px){ .checks { grid-template-columns:1fr; } }

/* ---------- 常见问题 FAQ ---------- */
.faq { max-width: 880px; margin-top: 28px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background:#fff;
  margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color:#c3d6ea; box-shadow: 0 6px 18px rgba(6,47,99,.06); }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px;
  color: var(--brand-deep); list-style: none; display:flex; align-items:center; gap:12px;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before {
  content: "+"; flex:none; width:22px; height:22px; border-radius:6px;
  background: var(--paper-3); color: var(--brand); font-weight:800;
  display:grid; place-items:center; font-size:16px; line-height:1;
}
.faq details[open] summary::before { content: "−"; background: var(--brand); color:#fff; }
.faq .faq-body { padding: 0 22px 20px 56px; color: var(--ink-soft); font-size: 15px; }
.faq .faq-body ul { margin: 0; padding-left: 18px; }
.faq .faq-body li { padding: 4px 0; }
.faq .faq-body p { margin: 0 0 10px; }

/* ---------- 产品图片 ---------- */
.pimg {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #fff; display: block;
}
.pimg img { width: 100%; height: auto; display: block; }
.pimg.pad img { padding: 10px; }
figure.pfig { margin: 0; }
figure.pfig figcaption {
  text-align: center; font-size: 13px; color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- 图片占位 ---------- */
.imgbox { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-3); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px dashed #9db8d6; background:
    repeating-linear-gradient(135deg, #eef4fb 0 14px, #e6eef8 14px 28px);
  display: grid; place-items: center; min-height: 200px; color: #5b74a0; text-align:center;
}
.ph .ph-in { padding: 18px; }
.ph .ph-in b { display:block; font-size: 14px; color: var(--brand-deep); font-weight:800; margin-bottom: 4px; }
.ph .ph-in span { font-size: 12px; color:#6f88ad; }
.ph .ph-tag {
  position:absolute; top:10px; left:10px; font-size: 10.5px; font-weight:700;
  letter-spacing:1px; background: var(--brand); color:#fff; padding: 3px 9px; border-radius:6px;
  text-transform: uppercase;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; transition: .18s;
}
.card:hover { box-shadow: 0 12px 30px rgba(6,47,99,.10); transform: translateY(-2px); border-color:#c3d6ea; }
.card .kicker { font-size:12px; font-weight:800; letter-spacing:2px; color: var(--brand-lite); text-transform:uppercase; }
.card h3 { font-size: 20px; margin-top: 6px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card .price-note { margin-top:14px; font-size:13px; color: var(--ink-soft); }

/* 产品对比卡（三控制器） */
.prodcard { display:flex; flex-direction:column; }
.prodcard .badge {
  align-self:flex-start; font-size:12px; font-weight:800; letter-spacing:1px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.badge.b1 { background: var(--brand); color:#fff; }
.badge.b2 { background: var(--accent); color:#05303a; }
.badge.b3 { background:#e3edf8; color: var(--brand-deep); }
.prodcard h3 { font-size: 24px; margin-bottom: 4px; }
.prodcard .tag { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.prodcard ul.spec { list-style:none; padding:0; margin: 0 0 18px; }
.prodcard ul.spec li {
  display:flex; justify-content:space-between; gap:12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.prodcard ul.spec li:last-child { border-bottom:none; }
.prodcard ul.spec li .k { color: var(--ink-soft); }
.prodcard ul.spec li .v { font-weight: 700; color: var(--ink); }
.prodcard .foot { margin-top:auto; font-size: 13.5px; color: var(--ink-soft); border-top:1px solid var(--line); padding-top:14px; }

/* 特性列表 */
.feat { display:flex; gap: 16px; align-items:flex-start; }
.feat .ico {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display:grid; place-items:center; color:#fff;
  box-shadow: 0 4px 12px rgba(10,77,162,.25);
}
.feat h4 { font-size: 17px; margin: 2px 0 6px; }
.feat p { font-size: 14.5px; color: var(--ink-soft); margin:0; }

/* ---------- 表格 ---------- */
.tablewrap { overflow-x: auto; border:1px solid var(--line); border-radius: 14px; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; background:#fff; }
table.spec-table thead th {
  background: var(--brand-deep); color:#fff; font-weight:700; text-align:left;
  padding: 13px 16px; font-size: 13.5px; letter-spacing:.5px; position: sticky; top:0;
}
table.spec-table thead th:first-child { border-top-left-radius: 0; }
table.spec-table td, table.spec-table th { padding: 12px 16px; vertical-align: top; }
table.spec-table tbody tr { border-top: 1px solid var(--line); }
table.spec-table tbody tr:nth-child(even) { background: var(--paper-2); }
table.spec-table td.cat { font-weight:700; color: var(--brand-deep); white-space:nowrap; }
table.spec-table td.center, table.spec-table th.center { text-align:center; }
table.spec-table .yes { color: var(--ok); font-weight:700; }
table.spec-table .no  { color:#b9c4d1; }

/* ---------- 步骤/时间线（软件流程） ---------- */
.flow { display:grid; gap: 18px; }
.flow .step { display:flex; gap:18px; }
.flow .num {
  flex:none; width:40px; height:40px; border-radius:10px; font-weight:800;
  background: var(--paper-3); color: var(--brand-deep); display:grid; place-items:center;
  border:1px solid var(--line);
}
.flow .step h4 { margin:6px 0 4px; font-size:17px; }
.flow .step p { margin:0; color: var(--ink-soft); font-size:14.5px; }

/* ---------- 下载列表 ---------- */
.dl { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.dl li {
  display:flex; align-items:center; gap:16px; padding: 16px 20px;
  border:1px solid var(--line); border-radius: 12px; background:#fff; transition:.16s;
}
.dl li:hover { border-color: var(--brand-lite); box-shadow: 0 6px 18px rgba(6,47,99,.08); }
.dl .doc-ico { flex:none; width:40px; height:40px; border-radius:9px; background: var(--paper-3);
  display:grid; place-items:center; color: var(--brand); font-weight:800; font-size:13px; }
.dl .doc-name { font-weight:700; color: var(--ink); }
.dl .doc-meta { font-size:12.5px; color: var(--ink-soft); }
.dl .doc-go { margin-left:auto; }
.dl li.locked { background: var(--paper-2); }
.dl .doc-ico.lock { background:#e3ebf5; color:var(--ink-soft); }
.dl .lock-tag { font-size:11.5px; font-weight:700; color:#a06a00; background:#fff4dc;
  border:1px solid #f0d9a0; border-radius:6px; padding:2px 8px; margin-left:8px; white-space:nowrap; }
.dl .btn.locked-btn { background:#eef2f7; color:var(--ink-soft); box-shadow:none; border:1px solid var(--line); }
.dl .btn.locked-btn:hover { background:var(--brand); color:#fff; border-color:transparent; }

/* ---------- 联系 / 页脚 ---------- */
.contact-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.office {
  border:1px solid var(--line); border-radius:14px; padding: 26px; background:#fff;
}
.office h4 { font-size:18px; display:flex; align-items:center; gap:10px; }
.office h4::before { content:"◆"; color: var(--brand-lite); font-size:13px; }
.office .row { display:flex; gap:10px; padding: 7px 0; font-size:14.5px; color: var(--ink-soft); }
.office .row b { color: var(--ink); font-weight:700; min-width: 58px; }

footer.site {
  background: linear-gradient(160deg, var(--brand-deep) 0%, #04162f 100%);
  color: #c6d7ea; padding: 54px 0 26px;
}
footer.site .cols { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
footer.site .brand .name { color:#fff; }
footer.site .brand .name small { color: var(--accent); }
footer.site p { color:#a9c1dc; font-size:14px; }
footer.site h5 { color:#fff; font-size:13px; letter-spacing:2px; margin:0 0 14px; text-transform:uppercase; }
footer.site a { color:#c6d7ea; display:block; padding:4px 0; font-size:14.5px; }
footer.site a:hover { color:#fff; }
footer.site .bottom {
  margin-top: 40px; padding-top: 20px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between;
  font-size:13px; color:#94aecb;
}

/* ---------- 杂项 ---------- */
.center { text-align:center; }
.mt0{margin-top:0}.mb0{margin-bottom:0}
.divider { height:1px; background: var(--line); border:0; margin: 0; }
.callout {
  border-left: 4px solid var(--brand-lite); background: var(--paper-2);
  padding: 18px 22px; border-radius: 0 12px 12px 0; color: var(--ink-soft); font-size:15px;
}
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { font-size:12.5px; font-weight:700; padding:5px 12px; border-radius:999px;
  background: var(--paper-3); color: var(--brand-deep); border:1px solid var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .menu { display:none; position:absolute; top:63px; left:0; right:0; flex-direction:column;
    background:#fff; border-bottom:1px solid var(--line); padding: 10px 16px; gap:2px; }
  .menu.open { display:flex; }
  .menu a { width:100%; }
  .navtoggle { display:inline-flex; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .spec-quick { grid-template-columns: repeat(2,1fr); }
  footer.site .cols { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}

/* ---------- 滚动渐入（渐进增强，默认可见） ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 3px solid var(--brand-lite); outline-offset: 2px; border-radius: 4px; }

/* ── 产品目录页 Hero：嵌入 MGC-1624 产品图 ── */
.hero-family-wrap { position: relative; }
.hero-family .title { font-size: clamp(24px, 2.9vw, 34px); }
.hero-family .hero-copy { max-width: 60%; }
.hero-family-img {
  position: absolute;
  right: 2%;
  bottom: -12px;
  width: 27%;
  max-width: 420px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
@media (max-width: 920px) {
  .hero-family .hero-copy { max-width: 100%; }
  .hero-family-img {
    position: static;
    width: 86%;
    max-width: 520px;
    margin: 26px auto 0;
    right: auto; bottom: auto;
  }
}
