/* =============================================================
   HJF Metal — 独立站样式
   品牌色锁定自 HJF C 款 VI 手册 V1.0（2026-10-01 定稿）
   深墨黑 #111827（主） · 工业黄 #FACC15（强调，10–20%）
   中性灰 #6B7280 · 浅雾灰 #F3F4F6
   禁用旧色值 #F2A513 / #231815，不得引入第三种彩色
   ============================================================= */

:root {
  --ink:      #111827;
  --ink-2:    #1f2937;
  --yellow:   #FACC15;
  --yellow-d: #E0B30C;
  --gray:     #6B7280;
  --gray-l:   #9ca3af;
  --mist:     #F3F4F6;
  --line:     #e5e7eb;
  --white:    #ffffff;

  --wrap:     1200px;
  --header-h: 72px;
  --r:        4px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); margin: 0 0 14px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--yellow); }

.lede { font-size: 18px; color: var(--gray); max-width: 68ch; }
.on-dark .lede { color: #d1d5db; }

.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--ink  { background: var(--ink); color: #fff; }
.section--tight { padding: 56px 0; }

.h2 { font-size: clamp(26px, 3.4vw, 38px); }
.h3 { font-size: 20px; }

.rule { height: 3px; width: 48px; background: var(--yellow); margin: 0 0 28px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-d); }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- 页眉 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.hdr__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.hdr__logo { flex: 0 0 auto; display: flex; align-items: center; }
.hdr__logo img { height: 30px; width: auto; }
.hdr__nav { display: flex; gap: 26px; margin-left: auto; }
.hdr__nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 6px 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.hdr__nav a:hover { color: var(--ink); }
.hdr__nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--yellow); }
.hdr__cta { flex: 0 0 auto; }
.hdr__cta .btn { padding: 10px 20px; font-size: 14px; }
.hdr__burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.hdr__burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 96px 0 88px;
}
.hero__symbol { width: 64px; margin-bottom: 30px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 20px; max-width: 20ch; }
.hero__sub { font-size: 17.5px; color: #d1d5db; max-width: 58ch; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover;
}
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.16); border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stats div { background: var(--ink); padding: 26px 24px; }
.hero__stats b { display: block; font-size: 27px; color: var(--yellow); line-height: 1.1; }
.hero__stats span { font-size: 13px; color: #9ca3af; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 28px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card__img { aspect-ratio: 4/3; background: var(--mist); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 8px;
}
.card__body h3 { font-size: 19px; margin-bottom: 8px; }
.card__body p { font-size: 14.5px; color: var(--gray); margin-bottom: 16px; }
.card__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--ink); }
.card__more::after { content: " →"; color: var(--yellow-d); }

/* ---------- 卖点列表 ---------- */
.point { border-top: 1px solid var(--line); padding: 22px 0; }
.point:last-child { border-bottom: 1px solid var(--line); }
.point h4 { font-size: 16.5px; margin-bottom: 4px; }
.point p { margin: 0; font-size: 14.5px; color: var(--gray); }
.section--ink .point { border-color: rgba(255,255,255,.16); }
.section--ink .point p { color: #9ca3af; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th {
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
table.spec tbody tr:hover { background: var(--mist); }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td.num { font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .04em; background: var(--yellow); color: var(--ink);
}
.badge--muted { background: var(--mist); color: var(--gray); }

/* ---------- 详情页 ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd__main { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--mist); }
.pd__main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumbs img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer; background: #fff;
}
.pd__thumbs img:hover { border-color: var(--ink); }
.pd h1 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.pd__meta { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.pd__highlights { list-style: none; padding: 0; margin: 0 0 24px; }
.pd__highlights li {
  position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 15px;
}
.pd__highlights li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; background: var(--yellow);
}
.pd__cta { margin-top: 28px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--gray); padding: 18px 0; }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 8px; color: var(--gray-l); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 40px 20px 0; font-family: var(--font); font-size: 17px; font-weight: 600;
  color: var(--ink); position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--gray);
}
.faq__item[data-open="true"] .faq__q::after { content: "–"; }
.faq__a { display: none; padding: 0 40px 22px 0; color: var(--gray); font-size: 15.5px; }
.faq__item[data-open="true"] .faq__a { display: block; }

/* ---------- 表单 ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--yellow); outline-offset: -1px; border-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--gray); margin-top: 5px; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--gray); }
.form__msg {
  grid-column: 1 / -1; display: none; padding: 12px 14px; border-radius: var(--r);
  font-size: 14.5px; background: var(--mist); border-left: 3px solid var(--yellow);
}
.form__msg[data-state="error"] { border-left-color: #b91c1c; }

/* ---------- 联系条 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { border-top: 3px solid var(--yellow); padding-top: 18px; }
.contact-card h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 16px; margin: 0; }
.contact-card a:hover { color: var(--yellow-d); }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #9ca3af; }

/* ---------- 视频 ---------- */
.vid { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; }
.vid video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.vid__cap { padding: 14px 16px; background: #fff; font-size: 14px; color: var(--gray); }

/* ---------- 时间轴 ---------- */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl li:last-child { border-bottom: 1px solid var(--line); }
.tl b { font-size: 15px; color: var(--yellow-d); }
.tl h4 { font-size: 17px; margin-bottom: 4px; }
.tl p { margin: 0; font-size: 14.5px; color: var(--gray); }

/* ---------- 页脚 ---------- */
.ftr { background: var(--ink); color: #d1d5db; padding: 64px 0 32px; font-size: 14.5px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr__logo img { height: 34px; margin-bottom: 20px; }
.ftr h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 8px; }
.ftr a:hover { color: var(--yellow); }
.ftr address { font-style: normal; line-height: 1.7; }
.ftr__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #9ca3af;
}

/* ---------- 下载 ---------- */
.dl { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.dl:last-child { border-bottom: 1px solid var(--line); }
.dl__ico {
  flex: 0 0 auto; width: 44px; height: 44px; background: var(--mist); border-radius: var(--r);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--gray);
}
.dl__body { flex: 1; }
.dl__body b { display: block; font-size: 16px; }
.dl__body span { font-size: 13.5px; color: var(--gray); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; padding: 64px 0 56px; gap: 36px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__nav[data-open="true"] {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; gap: 0; z-index: 99;
  }
  .hdr__nav[data-open="true"] a { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .hdr { position: relative; }
}
@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .tl li { grid-template-columns: 1fr; gap: 6px; }
  .hero__stats { grid-template-columns: 1fr; }
  .pd__thumbs { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .hdr, .ftr, .cta-band, .btn-row { display: none !important; }
}
