/* QuarryNex — prototype stylesheet
   Palette: graphite ink + copper accent, warm paper background.
   Budget note: no framework, no CDN dependency. Edits welcome. */

:root {
  --ink: #16181c;
  --steel: #2b3038;
  --steel-2: #3a4049;
  --muted: #6b7280;
  --line: #ddd9d2;
  --paper: #f7f6f3;
  --white: #ffffff;
  /* 金色系（取自 BHLD 标识：石墨深灰 + 铜金）。--gold 用于线条与图形强调，
     --copper 保留旧名作为正文级金色，保证白底小字可读。 */
  --gold: #c2913f;
  --gold-line: #d8b678;
  --copper: #9a6a21;
  --copper-dk: #77500f;
  --copper-soft: #f7eeda;
  --ok: #2f6b4f;
  --radius: 4px;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.muted { color: var(--muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(22, 24, 28, 0.03), 0 6px 18px rgba(22, 24, 28, 0.05);
}

/* 顶部极细金色压条：不占版心，只作识别 */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-line) 34%, rgba(216, 182, 120, 0) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* 一套尺寸基准：换断点只改这一个值，字标与副标语按同一比例一起缩放，
     两行左右边界就一直对齐。22px 是实测过与副标语等宽的基准值。 */
  --bw: 22px;
  font-size: 19px;
  flex: none;
}

/* 标识：assets/img/logo/quarrynex-mark.svg（深色版）／quarrynex-mark-inverse.svg（浅色版）。
   图形是 SVG，随尺寸缩放不掉字，不要改成位图。原图 325×261，是横的，只给宽度。 */
.brand-mark {
  width: 44px;
  height: auto;
  display: block;
  flex: none;
}

/* 字标 + 副标语：两行同一中轴，宽度一致——副标语字号、两侧短线、间距都按 --bw 折算 */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: calc(var(--bw) * 0.32);
  line-height: 1;
  align-items: center;
}

.brand-word {
  font-size: var(--bw);
  line-height: 1;
  letter-spacing: 0.045em;
}
.brand-nex { color: var(--gold); }
.site-footer .brand-nex { color: var(--gold-line); }

.brand-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--bw) * 0.30);
  font-size: calc(var(--bw) * 0.28);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
.brand-tag b { font-weight: 600; flex: none; }
.brand-tag i {
  display: block;
  flex: none;
  width: calc(var(--bw) * 0.42);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.site-footer .brand-tag { color: rgba(255, 255, 255, 0.56); }

.nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--steel);
  flex: 1;
  min-width: 0;
}

/* 悬停/当前项：金色下划线由左向右拉开，标题转石墨黑 */
.nav a {
  padding: 10px 1px 9px;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* 语言切换：旗帜 + 语言码 + 下拉（参照电商站的语言选择器，体积约 58px） */
.lang-dd { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 4px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}
.lang-btn:hover { color: var(--copper); background: rgba(22, 24, 28, 0.04); }
.flag {
  width: 17px;
  height: 11px;
  border-radius: 1px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.flag-en {
  background:
    linear-gradient(34deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-34deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(90deg, transparent 42%, #cf142b 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 36%, #cf142b 36% 64%, transparent 64%),
    #012169;
}
.flag-fr {
  background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}
.flag-ru {
  background: linear-gradient(180deg, #ffffff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}
.flag-ptbr {
  background:
    radial-gradient(circle at 50% 52%, #002776 0 2.1px, rgba(0, 0, 0, 0) 2.2px),
    conic-gradient(from 45deg at 50% 50%, #ffdf00 0 25%, rgba(0, 0, 0, 0) 0 50%, #ffdf00 0 75%, rgba(0, 0, 0, 0)),
    #009c3b;
}
.lang-caret {
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang-dd.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  min-width: 190px;
  padding: 5px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(22, 24, 28, 0.13), 0 2px 6px rgba(22, 24, 28, 0.06);
  display: none;
}
.lang-dd.open .lang-menu { display: block; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  color: var(--steel);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-item:hover { background: var(--paper); color: var(--ink); }
.lang-item + .lang-item { border-top: 1px solid #f1eee8; }
.lang-item.on { color: var(--ink); font-weight: 600; }
.radio {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #b9b3a8;
  background: #fff;
  position: relative;
}
.lang-item.on .radio { border-color: var(--copper); }
.lang-item.on .radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--copper);
}

.rfq-btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rfq-btn:hover { background: var(--steel-2); }

.rfq-count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--copper);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

/* ---------- hero ---------- */

/* 首屏：纯浅蓝渐层，不放任何照片或示意图。
   流程示意图属于"信息图"，它表达的是工序关系，不是设备长相，
   放在首屏会顶替掉本该由实拍场地照承担的"我们在现场"的说服力。
   要换实拍图时，在下面这条 background-image 里加一层 url(...) 即可。 */
.hero {
  background-color: #12263f;
  background-image:
    radial-gradient(80% 96% at 84% 8%, rgba(72,140,222,0.32) 0%, rgba(18,38,63,0) 62%),
    radial-gradient(64% 74% at 10% 96%, rgba(72,140,222,0.16) 0%, rgba(18,38,63,0) 58%),
    repeating-linear-gradient(0deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    repeating-linear-gradient(90deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    linear-gradient(180deg, #1a3358 0%, #12263f 56%, #0d1e33 100%);
  background-size: auto, auto, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding: 78px 0 68px;
}

/* 深蓝底上的文字覆盖集中在文件后段 hero 生成器之后，避免被基础样式盖掉 */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.18;
  margin-top: 14px;
  max-width: 15em;
}

.hero h1 em { font-style: normal; color: var(--copper); }

.hero-sub {
  margin-top: 18px;
  color: #4b5563;
  font-size: 15.5px;
  max-width: 34em;
}

.search-box {
  margin-top: 30px;
  background: #fff;
  border: 1px solid rgba(22,24,28,0.12);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 520px;
  position: relative;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}

.search-box input::placeholder { color: #9aa1ab; }

.search-box button {
  border: 0;
  background: var(--copper);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 0 20px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.search-box button:hover { background: var(--copper-dk); }

.search-hint {
  font-size: 12px;
  color: #7a8391;
  margin-top: 10px;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  z-index: 30;
  text-align: left;
}
.search-results.open { display: block; }

.sr-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0ece5;
  font-size: 13.5px;
  color: var(--ink);
}
.sr-item:hover { background: var(--paper); }
.sr-item:last-child { border-bottom: 0; }
.sr-item b { font-weight: 600; }
.sr-item span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sr-empty { padding: 14px; font-size: 13px; color: var(--muted); }

/* 深蓝首屏下这列不要底衬，只留金色发丝线做分隔。 */
.hero-side {
  border-left: 1px solid rgba(154,106,33,0.28);
  padding: 4px 28px 4px 34px;
  margin-right: -28px;
  display: grid;
  gap: 18px;
}

/* ---------- 深蓝首屏文字覆盖（必须写在所有 hero 基础样式之后） ---------- */
.hero .eyebrow { color: var(--gold-line); }
.hero h1 { color: #ffffff; }
.hero h1 em { color: #d8b678; }
.hero-sub { color: rgba(255,255,255,0.78); }
.hero .search-hint { color: rgba(255,255,255,0.58); }
.hero .hero-side { border-left-color: rgba(216,182,120,0.36); }
.hero .stat .num { color: #ffffff; }
.hero .stat .lbl { color: rgba(255,255,255,0.70); }

.stat { display: flex; align-items: baseline; gap: 12px; }

/* 首屏第三列是语言代码（EN / FR / PT / RU），沿用 26px 会把行撑成两段，单独降一档 */
@media (min-width: 761px) {
  .hero .stat .num--codes { font-size: 16px; letter-spacing: 0.05em; white-space: nowrap; }
}
.stat .num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat .lbl { font-size: 12.5px; color: #5b6673; line-height: 1.4; }

/* ---------- dual entry ---------- */

/* 入口带与前后各节共用同一个 .container，左边缘必须与 hero 文案、各节标题对齐 */
.entry-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.entry-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.entry {
  background: #fff;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s ease;
}
.entry:hover { background: #fbfaf8; }

.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.entry h3 { font-size: 19px; }
.entry p { font-size: 13.5px; color: var(--muted); max-width: 30em; }
.entry .go { font-size: 13px; color: var(--copper); font-weight: 600; }

/* 工艺流程示意图：放在工艺板块内部、图下带说明，明确它是"典型流程"而非交付配置 */
.flowsheet {
  margin: 34px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.flowsheet img { display: block; width: 100%; height: auto; border-radius: 2px; }
.flowsheet figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62em;
}
.flowsheet figcaption b { color: var(--ink); font-weight: 600; }

/* 工艺轮播：容器锁死比例，换图不会顶动下方内容；只有一张时不显示箭头和圆点。
   图按 contain 居中，比例不一致的图会留底色，不会被裁切或拉伸。
   控件放在图下方，不压在流程图上——图上全是设备标签，浮层会挡字。 */
.flow {
  position: relative;
  aspect-ratio: 1784 / 882;
  overflow: hidden;
  border-radius: 2px;
  background: #eef3f9;
}
.flow-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.flow-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}
.flow-cap {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.flow-ctrl { display: flex; align-items: center; gap: 12px; flex: none; }
.flow-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--steel);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.flow-btn:hover { border-color: var(--gold); color: var(--copper); background: #fdfbf6; }
.flow-btn:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }
.flow-dots { display: flex; gap: 7px; }
.flow-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(22, 24, 28, .3);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.flow-dot.on { background: var(--gold); border-color: var(--copper); }
.flow-count {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}

/* ---------- sections ---------- */

.section { padding: 68px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 { font-size: 27px; margin-top: 8px; }
.section-head p { color: var(--muted); font-size: 13.5px; max-width: 32em; margin-top: 6px; }

.head-link { font-size: 13px; color: var(--copper); font-weight: 600; white-space: nowrap; }

/* stage cards */
.stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* 机型只有四条，用四列，避免右侧空出一列 */
.stages--4 { grid-template-columns: repeat(4, 1fr); }

.stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  height: 100%;
  position: relative;
}
.stage:hover { border-color: #c9c3b8; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }

.stage-no {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--copper);
  font-weight: 600;
}

.stage h4 { font-size: 15.5px; line-height: 1.35; }

/* 整机卡片图：贴上沿满宽，与备件卡同一套视觉 */
.stage .mthumb {
  display: block;
  margin: -22px -20px 2px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f2f0ec;
  aspect-ratio: 4 / 3;
}
.stage .mthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage:hover .mthumb img { transform: scale(1.03); transition: transform 0.5s ease; }
.stage p { font-size: 12.5px; color: var(--muted); flex: 1; }

.tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  font-weight: 600;
}
.tag.inquiry { background: var(--copper-soft); color: var(--copper-dk); }
.tag.order { background: #e7efe9; color: var(--ok); }

/* parts grid */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.pcard:hover { border-color: #c9c3b8; }

.pcard .pno {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.pcard h4 { font-size: 15px; }
.pcard .meta { font-size: 12px; color: var(--muted); }

/* 标签与价格行压到底部，保证一排卡片的价格线在同一条水平线上 */
.pcard .tag { margin-top: auto; }

.pcard .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f0ece5;
}
.pcard .price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.pcard .price small { font-size: 11px; color: var(--muted); font-weight: 400; }

/* 备件卡产品图：图片贴满卡片上沿，四边不留内边距，看起来像商品格子 */
.pcard .pthumb {
  display: block;
  margin: -20px -20px 14px;
  background: #f2f0ec;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pcard .pthumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pcard:hover .pthumb img { transform: scale(1.04); }

/* 内页头图 */
.detail-media {
  background: #f2f0ec;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.why-item h4 { font-size: 15px; margin-bottom: 8px; }
.why-item p { font-size: 13px; color: var(--muted); }
.why-num { font-size: 11px; color: var(--copper); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; padding-right: 0; }
.step-no { font-size: 22px; font-weight: 600; color: var(--copper); letter-spacing: -0.02em; }
.step h4 { font-size: 14px; margin: 10px 0 6px; }
.step p { font-size: 12.5px; color: var(--muted); }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.case {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
/* 注意：.flag 这个类名同时被语言下拉的国旗占用（宽 17px、高 11px、固定不缩）。
   案例卡的「地点 · 矿种」小字也用 .flag，必须把国旗那套尺寸重置掉，否则文字被压进
   11px 高的盒子里、折行后盖住下面的标题。 */
.case .flag {
  width: auto;
  height: auto;
  flex: initial;
  border-radius: 0;
  box-shadow: none;
  background: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case h4 { font-size: 15px; line-height: 1.45; }
.case dl { margin: auto 0 0; display: grid; gap: 6px; font-size: 12.5px; }
.case dl div { display: flex; justify-content: space-between; gap: 10px; }
.case dt { color: var(--muted); }
.case dd { margin: 0; font-weight: 500; white-space: nowrap; flex: none; }
.case dt { min-width: 0; }

/* faq */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--copper); font-weight: 600; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; font-size: 13.5px; color: #464b53; max-width: 60em; }

/* ---------- product detail ---------- */

.detail-head { padding: 44px 0 36px; border-bottom: 1px solid var(--line); background: #fff; }

.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--copper); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 52px; align-items: start; }

.partno-line {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--copper);
  margin-bottom: 10px;
}

.detail-head h1 { font-size: 34px; line-height: 1.2; }
.detail-lede { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 40em; }

.buy-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 86px;
}

.buy-panel .price-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.buy-panel .price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

.kv { display: grid; gap: 0; margin: 18px 0; border-top: 1px solid #f0ece5; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #f0ece5;
  font-size: 13px;
}
.kv .k { color: var(--muted); flex: 0 0 auto; }
/* 值可能是长串（如 "Sub-brand of BEYOND HOLDINGS LIMITED"），必须能换行，
   否则右对齐后直接顶出面板内边距 */
.kv .v { font-weight: 500; text-align: right; min-width: 0; max-width: 64%; overflow-wrap: anywhere; }

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--copper);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 3px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--copper-dk); }

.btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
}
.btn-ghost:hover { background: var(--paper); }

.panel-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.55; }

/* 副厂身份前置：客户在下单前就该知道这不是原厂件 */
.aftermarket-tag {
  display: block;
  margin: 12px 0 16px;
  padding: 5px 9px;
  width: fit-content;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--copper-dk);
  background: var(--copper-soft);
  border: 1px solid #e6d3ac;
  border-radius: 2px;
}

.detail-body { padding: 52px 0 72px; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 52px; align-items: start; }

.block { margin-bottom: 44px; }
.block h2 { font-size: 19px; margin-bottom: 14px; }
.block p { font-size: 13.5px; color: #464b53; margin-bottom: 10px; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
table.spec th, table.spec td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.spec thead th {
  background: #efede8;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
/* 左列是参数名，不是注释：用石墨黑 + 加粗，客户扫表时先看到"这一行在说什么" */
table.spec td:first-child {
  color: var(--ink);
  font-weight: 600;
  width: 38%;
}

/* 分组行：字号要压在加粗参数名之上，否则会被当成备注 */
table.spec tr.spec-group th {
  background: #f3f1ec;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
}

.disclaimer {
  border-left: 3px solid var(--copper);
  background: #fff;
  padding: 14px 16px;
  font-size: 12px;
  color: #555b64;
  line-height: 1.6;
  margin-top: 18px;
}

.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.inquiry-form h3 { font-size: 16px; margin-bottom: 6px; }
.inquiry-form p.sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13.5px;
  background: #fdfcfb;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 1px solid var(--copper); border-color: var(--copper); }
.field textarea { min-height: 78px; resize: vertical; }

/* ---------- rfq drawer ---------- */

.drawer-mask {
  position: fixed; inset: 0; background: rgba(16,18,22,0.42); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 60;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw;
  background: #fff; z-index: 61; transform: translateX(102%);
  transition: transform 0.24s ease; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,0.18);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h3 { font-size: 16px; }
.x-btn { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }

.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-empty { color: var(--muted); font-size: 13px; line-height: 1.7; }

.rfq-line {
  border-bottom: 1px solid #f0ece5; padding: 12px 0; display: flex; gap: 12px; justify-content: space-between;
}
.rfq-line .info { min-width: 0; }
.rfq-line .nm { font-size: 13.5px; font-weight: 500; }
.rfq-line .pn { font-family: Consolas, monospace; font-size: 11.5px; color: var(--muted); }
.rfq-line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; }
.rfq-line .rm:hover { color: var(--copper); }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.drawer-foot .note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ---------- footer ---------- */

/* 页脚与首屏同一种深海军蓝，首尾呼应；文字全部转浅色 */
.site-footer {
  background: #12263f;
  color: rgba(255,255,255,0.74);
  border-top: 1px solid rgba(216,182,120,0.28);
  padding: 56px 0 30px;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; color: #ffffff; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-grid a { display: block; font-size: 12.5px; padding: 4px 0; color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: var(--gold-line); }
.footer-grid p { font-size: 12.5px; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 11.5px; color: rgba(255,255,255,0.52);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  /* 导航字号放大后需要收一点间距，否则会和右侧 EN/FR 打架 */
  .header-inner { gap: 20px; height: 72px; }
  .nav { gap: 18px; font-size: 14.5px; }
  /* 带副标语后字标更宽，这一档整体缩一档 */
  /* 带副标语后字标更宽，这一档整体缩一档；只改 --bw，两行仍等比对齐 */
  .brand { gap: 10px; --bw: 17.5px; }
  .brand-mark { width: 36px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding-bottom: 20px; border-right: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  /* 单栏后文字会横跨整个首屏，底图必须整体压下去，否则光迹穿过正文 */
  .hero {
    background-image:
      radial-gradient(150% 130% at 60% 4%, rgba(72,140,222,0.34) 0%, rgba(18,38,63,0) 64%),
      linear-gradient(180deg, #1a3358 0%, #10233c 100%);
    background-size: auto, auto;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }
  .hero-side { border-left: 0; padding-left: 0; background: none; border-top: 1px solid rgba(216,182,120,0.3); padding-top: 26px; grid-template-columns: 1fr 1fr; }
  .detail-grid, .detail-cols { grid-template-columns: 1fr; gap: 32px; }
  .buy-panel { position: static; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .nav { display: none; }
  /* 手机宽度放不下"图形 + 字标 + 副标语 + 语言 + 询价篮"——但副标语要保留，
     否则手机上品牌块和电脑版长得不一样。这一档把副标语单独缩一档，字号给一个 5px 下限，
     否则按 --bw 折算只剩 3.8px 会糊成一条灰线。 */
  .header-inner { gap: 12px; height: 64px; }
  .brand { gap: 8px; --bw: 15px; }
  .brand-mark { width: 30px; }
  .brand-tag { font-size: max(5.5px, calc(var(--bw) * 0.40)); letter-spacing: 0.02em; gap: calc(var(--bw) * 0.20); }
  .brand-tag i { width: calc(var(--bw) * 0.30); }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 30px; }
  /* 窄屏两列会把 EN / FR 这种双词数字挤成两行，改成单列并把数字锁成一行 */
  .hero-side { grid-template-columns: 1fr; gap: 14px; }
  .stat .num { white-space: nowrap; font-size: 22px; }
  .entry-strip { grid-template-columns: 1fr; }
  .stages, .parts-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 46px 0; }
  .flowsheet { padding: 10px; margin-top: 26px; }
  .flow-bar { flex-wrap: wrap; gap: 10px; }
  .flow-cap { font-size: 12px; }
  .flow-ctrl { gap: 10px; }
  .flow-btn { width: 28px; height: 28px; font-size: 15px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .detail-head h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}


/* ---------- 内页（目录 / 案例 / About / Contact） ---------- */

/* 内页页头：比首页 hero 轻一档，白底压一条细线，标题不抢流程内容 */
.page-head { padding: 44px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 34px; line-height: 1.24; max-width: 22em; }
.page-head .lede { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 46em; }

/* 目录页：搜索框 + 分类切片 */
.cat-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.cat-search { flex: 1 1 320px; min-width: 240px; }
.cat-search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 13.5px; background: #fff; color: var(--ink);
}
.cat-search input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 145, 63, 0.12); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--steel);
  font: inherit; font-size: 12.5px; line-height: 1.2; padding: 7px 13px;
  border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--copper); }
.chip.on { background: var(--copper-soft); border-color: #e6d3ac; color: var(--copper-dk); font-weight: 600; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.toolbar .count { font-size: 12.5px; color: var(--muted); }

.grid-empty { grid-column: 1 / -1; padding: 34px 0; font-size: 13px; color: var(--muted); }

/* 案例页：卡片比首页多一段叙述。dl 恢复普通流，三张卡的 Ore 行才会齐 */
.case--full dl { margin: 0; }
.case--full .txt {
  /* 不要 auto 底对齐：三张卡叙述段的长短不一样，底对齐会让段首参差不齐。
     紧跟 dl、固定上边距，三张卡的段首才会在同一水平线上 */
  margin: 0;
  padding-top: 14px;
  font-size: 12.5px;
  line-height: 1.72;
  color: #555b64;
}

/* 联系页表单按钮与上方字段留出气口 */
.inquiry-form .btn-primary { margin-top: 16px; }

@media (max-width: 1080px) {
  .page-head h1 { font-size: 30px; }
}
@media (max-width: 760px) {
  .page-head { padding: 30px 0 24px; }
  .page-head h1 { font-size: 24px; line-height: 1.28; }
  .page-head .lede { font-size: 13px; }
  .cat-bar { gap: 12px; margin-top: 20px; }
  .cat-chips { gap: 6px; }
  .chip { padding: 6px 10px; font-size: 12px; }
}

/* 1000px 以下统一改用汉堡菜单：
   1) 七项导航 + 语言下拉 + 询价按钮在 941–1000 这一带放不下（941 实拍会把 Contact 和语言控件压在一起）；
   2) 语言切换原来在 ≤940 直接隐藏，手机/平板/折叠机上根本切不到葡语、法语。
   所以这一档把导航与语言一起收进抽屉，页头只留 字标 + 汉堡 + 询价篮。 */
@media (max-width: 1000px) {
  .header-inner { gap: 12px; }
  .nav { display: none; }
  .lang-dd { display: none; }
  /* 导航原本靠 flex:1 撑开、把右侧操作区顶到边，导航收起后要自己顶过去 */
  .header-actions { margin-left: auto; }
}

/* 联系页表单的轻提示：只在没填内容时出现，不做红字报错 */
.inquiry-form .form-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--copper-dk);
}

/* 页脚品牌块下的主体说明行：比简介小一号，只说明归属 */
.site-footer .brand-legal {
  margin: 0 0 10px;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

/* 联系页：地址单独成块，不走 .kv 右对齐（多行值在窄栏里会压到行线上） */
.buy-panel .panel-addr {
  margin: 14px 0 16px;
  padding-top: 12px;
  border-top: 1px solid #f0ece5;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 12.5px;
  line-height: 1.65;
}
.buy-panel .panel-addr .addr-k { flex: 0 0 auto; color: var(--muted); }
.buy-panel .panel-addr .addr-v { min-width: 0; color: var(--steel); }
.buy-panel .panel-addr .addr-zh { display: block; margin-top: 6px; color: var(--muted); }

/* 页脚地址行：和上面的链接同一节距，但不可点击，颜色略淡 */
.footer-grid .footer-addr {
  display: block;
  padding: 4px 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 联系方式图标 ---------- */

/* 统一 14px 线性图标：描边取当前文字色，透明度压低一档，不抢文字 */
.ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}

/* 页脚联系方式：图标占固定一列，文字左边缘对齐 */
.footer-grid .foot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12.5px;
  line-height: 1.5;
}
.footer-grid .foot-row .ic { opacity: 0.72; }

/* 联系页渠道卡：图标在键名下，值仍右对齐 */
.kv .k { display: inline-flex; align-items: center; gap: 7px; }
.kv .k .ic { opacity: 0.82; color: var(--steel-2); }
.buy-panel .addr-k { display: inline-flex; align-items: center; gap: 7px; }
.buy-panel .addr-k .ic { opacity: 0.82; color: var(--steel-2); }

/* ---------- 联系页询盘表单：两列网格 ---------- */

/* 字段两列排，标签在输入框上方；Message 独占整行 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 24px;
  margin-top: 20px;
}
.form-grid .field { margin-bottom: 0; }
.form-grid .field--full { grid-column: 1 / -1; }

.inquiry-form .field label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.01em;
}
.inquiry-form .field label em {
  font-style: normal;
  font-weight: 600;
  color: var(--copper);
}

.inquiry-form .field input,
.inquiry-form .field select {
  height: 44px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 3px;
  background: #fdfcfb;
}
.inquiry-form .field textarea {
  min-height: 120px;
  padding: 12px 13px;
  font-size: 13px;
  border-radius: 3px;
  background: #fdfcfb;
  line-height: 1.6;
}
.inquiry-form .field input::placeholder,
.inquiry-form .field textarea::placeholder { color: #a8a29a; }

/* select 去掉系统箭头，换一支细线箭头，和输入框同一套线 */
.inquiry-form .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 5.6 6-5.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
}
.inquiry-form .field select:invalid { color: var(--muted); }

.inquiry-form .field input:focus,
.inquiry-form .field textarea:focus,
.inquiry-form .field select:focus {
  outline: 1px solid var(--copper);
  border-color: var(--copper);
  background-color: #ffffff;
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- 内页页头：与首页首屏同一套深海军蓝 ---------- */

/* 首页首屏是深蓝网格光，内页原来是一条白条，页面之间看着像两套风格。
   这里把 .hero 的同一组图层搬过来，只调高度与文字层级。 */
.page-head {
  background-color: #12263f;
  background-image:
    radial-gradient(80% 96% at 84% 8%, rgba(72,140,222,0.32) 0%, rgba(18,38,63,0) 62%),
    radial-gradient(64% 74% at 10% 96%, rgba(72,140,222,0.16) 0%, rgba(18,38,63,0) 58%),
    repeating-linear-gradient(0deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    repeating-linear-gradient(90deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    linear-gradient(180deg, #1a3358 0%, #12263f 56%, #0d1e33 100%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-position: center, center, center, center, center;
  border-bottom: 1px solid rgba(216,182,120,0.28);
  padding: 56px 0 50px;
  color: #ffffff;
}

.page-head h1 { color: #ffffff; }
.page-head .lede { color: rgba(255,255,255,0.74); }
.page-head .eyebrow { color: var(--gold-line); }
.page-head .crumbs { color: rgba(255,255,255,0.5); }
.page-head .crumbs a { color: rgba(255,255,255,0.8); }
.page-head .crumbs a:hover { color: var(--gold-line); }

@media (max-width: 760px) {
  .page-head { padding: 34px 0 30px; }
}

/* 备件 / 整机详情页的页头也用同一层深蓝，六个内页顶部全部对齐首页首屏 */
.detail-head {
  background-color: #12263f;
  background-image:
    radial-gradient(80% 96% at 84% 8%, rgba(72,140,222,0.32) 0%, rgba(18,38,63,0) 62%),
    radial-gradient(64% 74% at 10% 96%, rgba(72,140,222,0.16) 0%, rgba(18,38,63,0) 58%),
    repeating-linear-gradient(0deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    repeating-linear-gradient(90deg, rgba(150,200,245,0.10) 0 1px, rgba(0,0,0,0) 1px 72px),
    linear-gradient(180deg, #1a3358 0%, #12263f 56%, #0d1e33 100%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-position: center, center, center, center, center;
  border-bottom: 1px solid rgba(216,182,120,0.28);
  padding: 44px 0 40px;
  color: #ffffff;
}

.detail-head h1 { color: #ffffff; }
.detail-head .detail-lede { color: rgba(255,255,255,0.72); }
.detail-head .partno-line { color: var(--gold-line); }
.detail-head .crumbs { color: rgba(255,255,255,0.5); }
.detail-head .crumbs a { color: rgba(255,255,255,0.8); }
.detail-head .crumbs a:hover { color: var(--gold-line); }
/* 产品图落在深底上会显得像一块亮卡，给一圈极淡的浅色描边收边 */
.detail-head .detail-media img { border: 1px solid rgba(255,255,255,0.12); }

/* 详情页页头转深蓝后，机型参数条要跟着反白，否则黑字压在深底上读不出来 */
.detail-head .stat .num { color: #ffffff; }
.detail-head .stat .lbl { color: rgba(255,255,255,0.70); }

/* 页头去掉了面包屑与金色小标题，留白同步收紧 */
.page-head { padding: 44px 0 42px; }
.detail-head { padding: 38px 0 36px; }
@media (max-width: 760px) {
  .page-head { padding: 28px 0 26px; }
}

/* ---------- 导航当前项：浅金胶囊 ---------- */

/* 浏览到哪个页面，对应导航项就变成一个浅金底胶囊，字转深金、加粗，
   与悬停的金色下划线区分开：下划线是"要去的"，胶囊是"已经在这"。 */
.nav a.is-current {
  color: var(--copper-dk);
  font-weight: 600;
  background: rgba(194,145,63,0.13);
  border-radius: 999px;
  padding: 10px 13px 9px;
  margin: 0 -6px;
}
.nav a.is-current::after { transform: scaleX(0); }
.nav a.is-current:hover {
  color: var(--copper-dk);
  background: rgba(194,145,63,0.2);
}

@media (max-width: 1080px) {
  .nav a.is-current { padding: 9px 11px 8px; margin: 0 -5px; }
}
/* 1001–1160 是"导航刚回来"的那一段，葡语 / 法语长标签会把 Contacto 顶到语言控件上，
   只在这一段收间距与字号，不下探到汉堡菜单的档位 */
@media (min-width: 1001px) and (max-width: 1240px) {
  .nav { gap: 14px; font-size: 13.5px; }
  .brand { --bw: 16.5px; }
  .brand-mark { width: 34px; }
}
/* 940px 那一档原本只收导航当前项的胶囊内边距；导航在 1000px 以下已整体收起，这条规则一并去掉，
   避免以后有人按 940 这个失效断点去推行为。 */

/* 整机目录页：卡片补一行阶段与重量，四列在窄屏塌两列 */
.stage .smeta { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 1080px) {
  .stages--4 { grid-template-columns: repeat(2, 1fr); }
}

/* 四列机型卡里有两行标题的机型（液压圆锥破），会把它下面的参数行顶低一格。
   给标题留两行高度，四张卡的参数行就落在同一条水平线上。 */
.stages--4 .stage h4 { min-height: 2.7em; }

/* 折叠机外屏这类 420px 以下：字标 + 汉堡 + 询价篮三件套会顶出去，整体再收一档 */
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .brand { --bw: 13.5px; gap: 6px; }
  .brand-mark { width: 26px; }
  /* 这一档两侧短线会吃掉近 10px，去掉后副标语才能和字标等宽 */
  .brand-tag i { display: none; }
  .brand-tag { gap: 0; letter-spacing: 0.05em; }
  .nav-toggle { width: 30px; height: 30px; }
  .nav-toggle svg { width: 14px; height: 14px; }
  .rfq-btn { padding: 7px 10px; font-size: 11.5px; }
}

/* 首页机型区块的"全部机型"入口：与 section-head 左边缘对齐 */
.more-link { margin: 22px 0 0; }
.more-link a { font-size: 13px; color: var(--copper); font-weight: 600; }

/* ---------- 窄屏导航抽屉（≤1000px 由 app.js 生成） ---------- */

/* 汉堡按钮：三条线，默认藏起来，只在 1000px 以下出现 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.nav-toggle:hover { border-color: var(--gold); }
/* 询价篮图标：只在 560px 以下替掉文字，避免"Lista de cotação"这类长标签把页头顶出去 */
.rfq-ic { display: none; align-items: center; }
.rfq-ic svg { width: 14px; height: 14px; display: block; }
@media (max-width: 560px) {
  .rfq-btn { font-size: 0; gap: 6px; padding: 7px 9px; }
  .rfq-ic { display: inline-flex; }
  .rfq-btn .rfq-count { font-size: 11px; }
}
/* 显示规则必须写在 .nav-toggle{display:none} 之后，否则同特异性下会被盖掉 */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
}
.nav-toggle svg { width: 16px; height: 16px; display: block; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(12, 18, 28, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nav-scrim.on { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: 302px;
  max-width: 86vw;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(12, 18, 28, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.on { transform: translateX(0); }

.nav-drawer .dw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer .dw-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-drawer .dw-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--steel);
  font-size: 20px;
  line-height: 1;
}
.nav-drawer .dw-links { display: flex; flex-direction: column; padding: 4px 0 2px; }
.nav-drawer .dw-links a {
  padding: 13px 16px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid #f2efea;
}
.nav-drawer .dw-links a.on {
  color: var(--copper-dk);
  background: rgba(194, 145, 63, 0.13);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-drawer .dw-langs {
  margin-top: auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}
.nav-drawer .dw-langs .dw-title { padding: 0 16px 8px; display: block; }
.nav-drawer .lang-item { padding: 11px 16px; }

/* ---------- 询盘提交（配了 tools/inbox.py 或 server/inquiry.php 才出现） ---------- */
.drawer-contact { display: grid; gap: 8px; margin-bottom: 12px; }
.drawer-contact input {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.drawer-contact input:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 145, 63, 0.12);
}
.send-note { font-size: 12px; line-height: 1.6; margin-top: 10px; }
.send-note.ok { color: var(--ok); }
.send-note.bad { color: #9c2f2f; }
.send-fallback {
  display: inline-block; font-size: 12px; margin-top: 6px; color: var(--copper-dk);
  border-bottom: 1px solid var(--gold-line); padding-bottom: 1px;
}
