/* ============================================================
   恒力锻造官网 — 工业风样式
   配色：炭灰底 + 熔炉橙点缀；字体走系统中文栈
   ============================================================ */

:root {
  --bg-dark: #14171b;
  --bg-dark-2: #1b1f25;
  --paper: #ffffff;
  --mist: #f4f5f8;
  --ink: #23272e;
  --muted: #646b76;
  --accent: #f97316;
  --accent-deep: #ea580c;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 23, 27, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

section { scroll-margin-top: 84px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar-right a { margin-left: 20px; transition: color 0.2s; }
.topbar-right a:hover { color: var(--accent); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 23, 27, 0.1); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-radius: 10px;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 19px; letter-spacing: 0.04em; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #3a4048;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 10px;
  border: none !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.nav-cta:hover { filter: brightness(1.06); }

.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-switch {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #3a4048;
  border: 1px solid #c9ccd3;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(800px 460px at 5% 115%, rgba(96, 125, 189, 0.16), transparent 60%),
    linear-gradient(180deg, #14161a 0%, #1a1d23 100%);
  color: #fff;
  padding: 110px 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0 22px,
    rgba(255, 255, 255, 0.025) 22px 24px
  );
  pointer-events: none;
}
.hero-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: breathe 7s ease-in-out infinite alternate;
}
.glow-1 { background: rgba(249, 115, 22, 0.28); top: -180px; right: -120px; }
.glow-2 { background: rgba(59, 91, 158, 0.25); bottom: -220px; left: -140px; animation-delay: 2.5s; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.18); } }

.hero-word {
  position: absolute;
  right: -10px; bottom: -30px;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  line-height: 1;
}

.hero-inner { position: relative; max-width: 860px; padding-bottom: 40px; }
.hero-badge {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.1);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.accent-text {
  background: linear-gradient(92deg, #fb923c, #f97316 55%, #e0531e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.6vw, 17.5px);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-lg { padding: 14px 34px; font-size: 16.5px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 6px; }

/* ---------- 数据条 ---------- */
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 24px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}
.stat-num-wrap { color: #fff; }
.stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-suffix { color: var(--accent); font-size: 20px; font-weight: 700; margin-left: 4px; }
.stat-label { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-top: 4px; }

/* ---------- 通用版块 ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--mist); }
.section-dark {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(249, 115, 22, 0.1), transparent 55%),
    linear-gradient(180deg, #171a1f, #1c2027);
  color: #fff;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-dark .section-head { color: #fff; }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.35; }
.section-desc { color: var(--muted); margin-top: 14px; font-size: 16px; }
.section-dark .section-desc { color: rgba(255, 255, 255, 0.65); }
.hl { color: var(--accent-deep); font-weight: 700; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: start;
}
.about-text p { margin-bottom: 18px; color: #3c424b; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249, 115, 22, 0.4); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ---------- 产品中心 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(249, 115, 22, 0.35); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  margin-bottom: 18px;
}
.product-icon svg { width: 28px; height: 28px; }
.product-card h3 { font-size: 19px; margin-bottom: 2px; }
.product-en { color: var(--accent); font-size: 11.5px; letter-spacing: 0.18em; font-weight: 700; margin-bottom: 12px; }
.product-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  color: #4b515b;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------- 材质与标准 ---------- */
.material-box {
  margin-top: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.material-title { font-size: 20px; margin-bottom: 22px; }
.material-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.mat-cat {
  flex-shrink: 0;
  width: 72px;
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 14.5px;
  padding-top: 4px;
}
.mat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mat-chip {
  font-size: 13.5px;
  padding: 4px 14px;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: #373d46;
}
.standards-line { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ---------- 生产实力 ---------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.equip-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.equip-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.equip-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.equip-num span { font-size: 18px; margin-left: 4px; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.equip-card h3 { font-size: 18px; margin-bottom: 8px; }
.equip-card p { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; }

/* ---------- 工艺流程 ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  counter-reset: step;
}
.p-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.p-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 15px;
  background: rgba(249, 115, 22, 0.08);
}
.p-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.p-step p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 质量保证 ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.q-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.q-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249, 115, 22, 0.35); }
.q-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  margin-bottom: 14px;
}
.q-icon svg { width: 24px; height: 24px; }
.q-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.q-card p { color: var(--muted); font-size: 14px; }

/* ---------- 应用行业 ---------- */
.industry-band { margin-top: 52px; text-align: center; }
.industry-title { font-size: 20px; margin-bottom: 22px; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.industry-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #3a4048;
  transition: border-color 0.25s, color 0.25s;
}
.industry-chip:hover { border-color: rgba(249, 115, 22, 0.45); color: var(--accent-deep); }
.industry-chip svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-label { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.contact-value { font-size: 16.5px; font-weight: 600; color: #2c313a; }
.contact-phone { font-size: 24px; color: var(--accent-deep); font-weight: 800; }
a.contact-value:hover { color: var(--accent); }

.qr-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.qr-placeholder {
  width: 110px; height: 110px;
  display: grid; place-items: center;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border: 2px dashed #c9ccd3;
  border-radius: 12px;
  background: var(--mist);
}
.qr-box img { width: 110px; height: 110px; border-radius: 12px; border: 1px solid var(--line); }
.qr-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.inquiry-form {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.inquiry-form h3 { font-size: 21px; margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #3a4048;
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #d4d8de;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.form-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand strong { display: block; color: #fff; font-size: 18px; margin-bottom: 12px; letter-spacing: 0.03em; }
.footer-brand p { max-width: 340px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 22px; height: 22px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .glow { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .topbar-item { display: none; }
  .topbar-inner { justify-content: center; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 23, 27, 0.12);
    display: none;
    padding: 10px 24px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--mist); }
  .site-nav a:last-child { margin-top: 12px; border-bottom: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-grid, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 72px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .product-grid, .equip-grid, .quality-grid, .feature-grid,
  .industry-grid, .form-row, .process-flow { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .hero-actions .btn { flex: 1; }
  .stat-num { font-size: 30px; }
  .topbar-right a:first-child { display: none; }
  .material-group { flex-direction: column; gap: 8px; }
  .inquiry-form { padding: 24px 20px; }
}
