/* ============================================================
   XEM Batching Plant — 样板设计样式 v2
   设计稿版本 v2 · 2026-09-19
   改动方向：更简单、更直接、留白更多、字号更大
   ============================================================ */

:root {
  --navy: #12344F;
  --navy-d: #0B2338;
  --steel: #1F5C82;
  --amber: #E8871E;
  --amber-d: #C56F12;
  --wa: #25D366;
  --wa-d: #1DA851;

  --ink: #16191D;
  --ink-2: #4A5560;
  --ink-3: #7C8894;
  --line: #E4E8EC;
  --line-2: #EFF2F5;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --tint: #F0F5F9;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 16px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16.5px;
  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: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--navy-d); color: #B9CBD9; font-size: 13.5px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.logo__name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.logo__sub { font-size: 11.5px; color: var(--ink-3); }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a { padding: 9px 15px; font-size: 15px; color: var(--ink-2); border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--navy); }
.nav a.is-active { color: var(--navy); font-weight: 600; }

.header-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 100px; padding: 3px; flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 13px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; line-height: 1.5;
  color: var(--ink-3); white-space: nowrap; text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.is-on { background: var(--navy); color: #fff; }

/* ---------- 手机汉堡菜单 ---------- */
.mtog-cb { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mtog { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-d); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-d); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }

.section__head { max-width: 700px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--steel); margin-bottom: 10px;
}
.section--navy .section__kicker { color: #7FB4D6; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: 46px; letter-spacing: -.8px; }
h2 { font-size: 32px; letter-spacing: -.4px; }
h3 { font-size: 19px; }
.section__lead { color: var(--ink-2); font-size: 17.5px; margin: 0; }
.section--navy .section__lead { color: #B9CBD9; }

/* ---------- 首屏（实拍照片 + 深色蒙版） ----------
   CSS 里的相对路径按样式表位置解析，所以中英文页面共用同一份即可 */
.hero {
  position: relative;
  background: var(--navy) url('hero-1920.jpg') center 42% / cover no-repeat;
  color: #fff;
  padding: 0;
  text-align: left;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(11,35,56,.94) 0%,
    rgba(11,35,56,.87) 32%,
    rgba(11,35,56,.58) 64%,
    rgba(11,35,56,.36) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { max-width: 660px; padding: 106px 0 110px; }
.hero h1 { font-size: 50px; color: #fff; margin-bottom: 20px; letter-spacing: -1px; }
.hero__lead { font-size: 19px; color: #D6E2EB; margin: 0 0 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__points { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; color: #C2D3E0; }
.hero__points span { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ---------- 数据条（真实数字） ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 32px; color: var(--navy); letter-spacing: -.5px; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--ink-3); }

/* ---------- 大类卡片（提斗式 / 皮带式） ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .15s;
}
.cat:hover { border-color: var(--steel); }
.cat__img {
  height: 215px;
  background: var(--tint);
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__body { padding: 26px 28px 30px; }
.cat__body h3 { font-size: 23px; margin-bottom: 8px; }
.cat__body p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 16px; }
.cat__meta { font-size: 14.5px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 型号简单列表 ---------- */
.model-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.model-row {
  display: grid;
  grid-template-columns: 130px 1fr 150px 130px 34px;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-2);
  transition: background .15s;
}
.model-row:last-child { border-bottom: 0; }
.model-row:hover { background: var(--tint); }
.model-row__name { font-size: 19px; font-weight: 700; color: var(--navy); }
.model-row__cap { font-size: 15.5px; color: var(--ink); }
.model-row__spec { font-size: 14.5px; color: var(--ink-3); }
.model-row__arrow { color: var(--ink-3); text-align: right; font-size: 18px; }
.model-list__head {
  display: grid;
  grid-template-columns: 130px 1fr 150px 130px 34px;
  gap: 16px;
  padding: 12px 24px;
  background: var(--tint);
  font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--steel);
  border-bottom: 1px solid var(--line);
}

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.plain-item { display: flex; gap: 14px; }
.plain-item__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 14px; font-weight: 700; margin-top: 2px;
}
.plain-item h3 { font-size: 17px; margin-bottom: 4px; }
.plain-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.spec thead th {
  background: var(--tint); color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td:first-child { color: var(--ink-2); }
table.spec td { font-weight: 500; }
table.spec .em { color: var(--navy); font-weight: 700; }

/* ---------- 徽章 ---------- */
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 100px; background: var(--tint); color: var(--steel); }
.badge--amber { background: #FDF2E4; color: var(--amber-d); }
.badge--green { background: #E8F7EF; color: #17794A; }

/* ---------- 证据 ---------- */
.evidence {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--r); background: var(--surface); padding: 26px 28px;
}
.evidence h3 { margin-bottom: 8px; }
.evidence p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.evidence code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14.5px; background: var(--bg); padding: 2px 8px; border-radius: 4px; color: var(--navy);
}
.evidence a { color: var(--steel); text-decoration: underline; word-break: break-all; }

/* ---------- 表单 ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; max-width: 680px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--amber-d); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15.5px; font-family: inherit; color: var(--ink); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(31,92,130,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-alt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-alt p { font-size: 14.5px; color: var(--ink-3); margin: 0 0 10px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-3); padding: 18px 0; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 8px; }

/* ---------- 页头（内页） ---------- */
.page-head { padding: 10px 0 40px; }
.page-head h1 { font-size: 42px; margin-bottom: 14px; }
.page-head__lead { color: var(--ink-2); font-size: 18px; margin: 0 0 20px; max-width: 740px; }

/* ---------- 关键数字 ---------- */
.quickstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 30px 0 0; }
.quickstat { padding: 22px 24px; border-right: 1px solid var(--line-2); background: var(--surface); }
.quickstat:last-child { border-right: 0; }
.quickstat span { display: block; font-size: 13.5px; color: var(--ink-3); margin-bottom: 5px; }
.quickstat strong { font-size: 24px; color: var(--navy); letter-spacing: -.3px; }

/* ---------- 图片画廊（详情页） ---------- */
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.gallery__main {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg); min-height: 320px;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery__side img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: var(--r);
}
.gallery__ph {
  border: 1px dashed var(--line); border-radius: var(--r);
  background: var(--bg); display: grid; place-items: center;
  color: var(--ink-3); font-size: 14px; text-align: center;
  padding: 18px; min-height: 150px;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq__item h3 { font-size: 17.5px; margin-bottom: 8px; }
.faq__item p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #B9CBD9; font-size: 17px; margin: 0 0 28px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-d); color: #93A9BB; padding: 56px 0 30px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 设计稿标注 ---------- */
.mock-note {
  background: #FFF8E8; border: 1px dashed var(--amber);
  border-radius: var(--r-sm); padding: 14px 18px;
  font-size: 14.5px; color: #7A4E0A; margin: 0 0 24px;
}
.mock-note strong { color: var(--amber-d); }

.sticky-cta { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .model-row, .model-list__head { grid-template-columns: 110px 1fr 120px 34px; }
  .model-row__spec--hide, .model-list__head span:nth-child(3) { display: none; }
}

@media (max-width: 860px) {
  .site-header .container { position: relative; }
  /* 手机上页头只留「语言切换 + 汉堡菜单」，报价按钮由底部悬浮条承担 */
  .header-cta .btn--primary { display: none; }
  .site-header .container { gap: 10px; }
  .lang-switch { margin-left: auto; }
  .lang-switch a { padding: 5px 10px; font-size: 13px; }

  /* 汉堡按钮 */
  .mtog {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
    background: var(--surface); -webkit-tap-highlight-color: transparent;
  }
  .mtog span {
    display: block; height: 2px; border-radius: 2px; background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }
  .mtog-cb:checked ~ .mtog span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mtog-cb:checked ~ .mtog span:nth-child(2) { opacity: 0; }
  .mtog-cb:checked ~ .mtog span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 展开的菜单：盖在页面内容上方 */
  .nav {
    display: none;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: 0 12px 28px rgba(11,35,56,.12);
  }
  .mtog-cb:checked ~ .nav { display: flex; }
  .nav a { padding: 14px 14px; font-size: 16.5px; border-radius: 8px; }
  .nav a.is-active { background: var(--tint); font-weight: 600; }
  .grid--3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  h1 { font-size: 34px; }
  .hero {
    background-image: url('hero-960.jpg');
    background-position: center 55%;
  }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(11,35,56,.78) 0%,
      rgba(11,35,56,.86) 55%,
      rgba(11,35,56,.93) 100%);
  }
  .hero h1 { font-size: 33px; letter-spacing: -.6px; }
  .hero__lead { font-size: 17px; }
  .hero__inner { padding: 66px 0 74px; max-width: none; }
  .hero__points { gap: 16px; font-size: 14px; }
  h2 { font-size: 26px; }
  .page-head h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .quickstats { grid-template-columns: repeat(2, 1fr); }
  .quickstat:nth-child(2) { border-right: 0; }
  .quickstat:nth-child(1), .quickstat:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .header-cta .btn--ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  /* 型号列表：手机上改成两行 —— 第一行型号名 + 箭头，第二行产能 + 主机 */
  .model-row {
    grid-template-columns: auto 1fr 26px;
    gap: 3px 10px;
    padding: 15px 18px;
  }
  .model-list__head { display: none; }
  .model-row__name { grid-column: 1 / span 2; grid-row: 1; font-size: 18px; }
  .model-row__cap { grid-column: 1; grid-row: 2; font-size: 14.5px; }
  .model-row__spec { grid-column: 2; grid-row: 2; font-size: 14.5px; }
  .model-row__spec--hide { display: none; }
  .model-row__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .hero__points { gap: 14px; font-size: 14px; }
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); z-index: 60;
  }
  body { padding-bottom: 76px; }
}
