/* ==========================================================================
   HK-QBS | Emulsion Explosive Production Line - Landing Page
   移动优先 · 零依赖 · 无外部字体（避免 FOUT 与第三方请求）
   断点：480 / 768 / 1024 / 1280
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 色板：深色简约科技风 + 单一工业橙强调色 */
  --bg:            #080b10;
  --bg-elev:       #0e141c;
  --panel:         #111924;
  --panel-2:       #16202c;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --text:          #e9eff6;
  --text-dim:      #a3b2c4;
  --text-faint:    #6f8096;
  --accent:        #ff6a2b;
  --accent-soft:   rgba(255, 106, 43, 0.12);
  --accent-line:   rgba(255, 106, 43, 0.34);
  --ok:            #3ddc97;

  /* 排版：系统字体栈，0 请求 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
          "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 流式字号 */
  --fs-hero:  clamp(2rem, 5.2vw, 3.75rem);
  --fs-h2:    clamp(1.375rem, 2.8vw, 2.125rem);
  --fs-h3:    clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-body:  clamp(0.9375rem, 1.05vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-tiny:  0.75rem;

  /* 节奏 */
  --radius:   14px;
  --radius-s: 9px;
  --gutter:   clamp(1.125rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --maxw:     1180px;

  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.85);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* hidden 必须是硬隐藏：联系区块的 flex 布局会覆盖 UA 默认的 display:none */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 锚点跳转避开固定头部 */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

/* 键盘焦点必须可见（a11y 硬要求） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-elev); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-dim); font-size: var(--fs-body); margin-bottom: 0; }

.lead { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--text-dim); }

/* 跳转链接 */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #140800;
  font-weight: 650;
  border-radius: var(--radius-s);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;              /* 触摸目标 ≥44px */
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #140800;
  box-shadow: 0 10px 28px -12px var(--accent-line);
}
.btn--primary:hover { background: #ff7f47; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--text-dim); background: rgba(255, 255, 255, 0.04); }

.btn--block { width: 100%; }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
  /* Safari 需要前缀 */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #c9410f);
  color: #140800;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* 移动端菜单 */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle:hover { background: rgba(255, 255, 255, 0.05); }

.nav__links {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav__links.is-open { display: flex; }

.nav__links a:not(.btn) {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links .btn { margin-top: 0.75rem; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__links a:not(.btn) {
    padding: 0;
    border-bottom: 0;
    font-size: 0.9rem;
  }
  .nav__links .btn { margin-top: 0; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
/* 光晕：用 radial-gradient 代替图片，零请求 */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 620px;
  background:
    radial-gradient(60% 55% at 18% 0%, rgba(255, 106, 43, 0.16), transparent 70%),
    radial-gradient(50% 45% at 88% 12%, rgba(61, 220, 151, 0.08), transparent 72%);
  pointer-events: none;
}
/* 细网格纹理 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; gap: 3.5rem; }
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero h1 .hl {
  color: var(--accent);
  /* 高亮不用渐变字，保证对比度 */
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* Hero 右侧参数卡 */
.spec-card {
  background: linear-gradient(170deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}
.spec-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.spec-card__title .dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.62rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: var(--fs-small);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { color: var(--text-dim); }
.spec-list .v {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ---------- 7. 数字条 ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  background: var(--bg-elev);
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1rem, 2vw, 1.4rem);
}
.metric__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.metric__num .unit {
  font-size: 0.5625em;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.15em;
}
.metric__label {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-tiny);
  line-height: 1.4;
  color: var(--text-faint);
}

/* ---------- 8. 卡片网格 ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}
.card p {
  font-size: var(--fs-small);
  color: var(--text-dim);
  margin-bottom: 0;
}

.card__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.card__list li {
  position: relative;
  margin: 0;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 9. 产能表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
caption {
  caption-side: top;
  padding: 1rem 1.1rem 0.5rem;
  text-align: left;
  font-size: var(--fs-tiny);
  color: var(--text-faint);
}
th, td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--panel-2);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
tbody tr:last-child td,
tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
td.num { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
/* 行首用 <th scope="row"> 承载产能，读屏软件可据此朗读所属行 */
tbody th[scope="row"] {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ---- 表格的移动端形态：< 700px 转为卡片列表 ----
   5 列表格在 390px 下必然挤压，"Best fit" 这种长文本列会被压成零宽。
   这里改用 data-label 驱动的堆叠卡片，彻底消除横向滚动。 */
@media (max-width: 767px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: none;
    border-radius: 0;
  }
  /* table 转为块级后，colgroup 仍会参与宽度计算，必须禁用；
     caption 也会退化成收缩宽度，必须显式撑满 */
  table { min-width: 0; width: 100%; display: block; }
  colgroup { display: none; }
  caption {
    display: block;
    width: 100%;
    padding: 0 0 0.9rem;
  }

  /* 视觉隐藏表头，但保留给读屏软件 */
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  tbody, tr, td, th { display: block; }

  tbody tr {
    margin-bottom: 0.75rem;
    padding: 0.35rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  tbody tr:last-child { margin-bottom: 0; }
  tbody tr:hover { background: var(--panel); }

  tbody td, tbody th {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    text-align: right;
  }
  tbody td:last-child { border-bottom: 0; }
  tbody td::before, tbody th::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: left;
  }
  /* 第一列（产能）作为卡片标题 */
  tbody th:first-child {
    padding-top: 0.7rem;
    padding-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
  }
  tbody th:first-child::before { content: none; }
}

/* ---------- 10. 流程步骤 ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 1.1rem;
  row-gap: 0.35rem;
  padding-bottom: 1.75rem;
}
.step:last-child { padding-bottom: 0; }
/* 竖向连接线（仅移动端/单列） */
.step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-line), transparent);
}
.step:last-child::before { display: none; }

/* 除序号外的内容一律锁在右列，否则 grid 自动排布会把
   第三个子元素（耗时标签）塞回左列窄栏 */
.step > *:not(.step__num) { grid-column: 2; }

.step__num {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.step p { font-size: var(--fs-small); color: var(--text-dim); margin-bottom: 0; }
.step__meta {
  /* 作为 grid 子项时默认会被拉伸成整行，必须显式收缩 */
  justify-self: start;
  align-self: start;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  white-space: nowrap;
}

@media (min-width: 900px) {
  /* minmax(0,1fr) 而非 1fr：1fr 的最小值默认是 auto，
     列会被长标题的最小内容宽度撑开，导致四列宽窄不一 */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  /* 单列布局下解除列锁定 */
  .step > *:not(.step__num) { grid-column: 1; }
  .step__num { grid-row: auto; margin-bottom: 1rem; }
  .step::before {
    left: 42px;
    right: -1.5rem;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, var(--accent-line), transparent);
  }
}

/* ---------- 11. 边界说明（我们不做的事） ---------- */
.boundary {
  display: grid;
  gap: 0;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 106, 43, 0.06), var(--panel) 45%);
}
@media (min-width: 820px) {
  .boundary { grid-template-columns: 1fr 1fr; }
}
.boundary__col { padding: clamp(1.25rem, 2.8vw, 2rem); }
.boundary__col + .boundary__col {
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .boundary__col + .boundary__col { border-top: 0; border-left: 1px solid var(--line); }
}
.boundary__col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
}
.boundary__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.boundary__col li {
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 1.5rem;
  line-height: 1.55;
}
.boundary__col li:last-child { margin-bottom: 0; }
.boundary__col--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}
.boundary__col--no li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-faint);
  font-weight: 700;
}

/* ---------- 12. 案例 ---------- */
.case {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
@media (min-width: 900px) {
  .case { grid-template-columns: 0.9fr 1.1fr; }
}
.case__aside {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(155deg, #16202c, #0d141c);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .case__aside { border-bottom: 0; border-right: 1px solid var(--line); }
}
.case__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.case__body h3 { font-size: var(--fs-h2); }
.case__body p { color: var(--text-dim); font-size: var(--fs-small); }

.kv { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.kv__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: var(--fs-small);
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv__row dt { color: var(--text-faint); }
.kv__row dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 13. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq .faq__body {
  padding: 0 0 1.25rem;
  font-size: var(--fs-small);
  color: var(--text-dim);
  max-width: 78ch;
}
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- 14. 表单 ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.form { display: grid; gap: 1rem; }
.form__row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }

.field input::placeholder,
.field textarea::placeholder { color: #5c6b7e; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* 校验失败样式 */
.field input:user-invalid,
.field textarea:user-invalid { border-color: #ff5c5c; }

.form__note {
  font-size: var(--fs-tiny);
  color: var(--text-faint);
  line-height: 1.5;
}
.form__status {
  font-size: var(--fs-small);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}
.form__status[hidden] { display: none; }

.contact-info { display: grid; gap: 1.25rem; align-content: start; }
.contact-info__item {
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.contact-info__item .k {
  display: block;
  font-size: var(--fs-tiny);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.contact-info__item .v {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: var(--fs-small);
  color: var(--text-faint);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__grid h4 {
  font-size: var(--fs-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 0.5rem; }
.footer__grid a { color: var(--text-faint); }
.footer__grid a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-tiny);
}

/* ---------- 16. 滚动入场动画 ---------- */
/* 入场动画只在 JS 可用时才隐藏元素。
   html 上没有 .js 类时（禁用 JS / main.js 加载失败 / 被拦截），
   内容必须默认可见 —— 否则整页会是空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* 尊重系统"减少动效"偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* 选择器要与隐藏规则同权重才盖得住 */
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. 打印 ---------- */
@media print {
  .site-header, .hero::before, .hero::after, .form, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
  .card, .panel, .table-wrap { border-color: #ccc; }
}

/* ---------- 18. 最新动态（数据来自后台 /api/news） ---------- */
.news-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
  /* minmax(0,…) 防止长标题把网格撑破，之前步骤条踩过这个坑 */
}

@media (min-width: 760px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.news-card:hover {
  border-color: var(--accent-line);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.news-card__cat {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
}

.news-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.35;
  font-weight: 650;
}

.news-card__title a {
  color: var(--text);
  text-decoration: none;
}

.news-card__title a:hover { color: var(--accent); }

.news-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-dim);
  /* 摘要最多 3 行，避免个别长文把卡片撑得高低不齐 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__more {
  margin-top: 0.3rem;
  align-self: flex-start;
  font-size: var(--fs-small);
  font-weight: 550;
  color: var(--accent);
  text-decoration: none;
}

.news-card__more:hover { text-decoration: underline; }

.news-foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

/* 触屏设备不做位移，避免 hover 残留 */
@media (hover: none) {
  .news-card:hover { transform: none; }
}

/* ---------- 19. 现场实景（竖版照片 + 说明） ---------- */
.onsite {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

/* 宽屏两列：图占约 4 成，说明占 6 成。
   minmax(0,…) 而非 1fr —— 图片的固有宽度会把 1fr 的下限顶成 auto，撑破网格 */
@media (min-width: 900px) {
  .onsite {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 2.5rem;
  }
}

/* 单列时（<900px）竖图会撑满整行、高近 1200px，滚动体验差。
   限宽并居中，视觉上成为一张"图卡"而不是一面墙。 */
.onsite__media {
  margin: 0;                 /* 与左对齐的文字列保持同一基准线，不居中 */
  width: 100%;
  max-width: 520px;
}

@media (min-width: 900px) {
  .onsite__media { margin: 0; max-width: none; }
}

.onsite__media picture { display: block; }

.onsite__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* 宽屏下把竖图裁成 3:4。
   原图 0.614 比例，等宽时高度会是文字列的两倍，右侧留出大片空白。
   裁掉的是画面上下两端（远处厂房顶部 / 地面过道），钢带、成品、操作工都在构图内。 */
@media (min-width: 900px) {
  .onsite__media img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 38%;
  }
}

.onsite__kv { margin-top: 1.45rem; }

.onsite__media figcaption {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  line-height: 1.55;
  color: var(--text-faint);
}

.onsite__body h3 { font-size: var(--fs-h2); }

.onsite__body > p {
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.onsite__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.onsite__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--text-dim);
}

.onsite__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.onsite__list strong { color: var(--text); }

.onsite__note {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent-line);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--panel);
  font-size: var(--fs-tiny);
  line-height: 1.65;
  color: var(--text-faint);
}
