/* ============================================
   任丘铁森金属制品有限公司 - 官网样式
   Industrial Steel Theme
   ============================================ */

:root {
  --navy-900: #0a1420;
  --navy-800: #0e1a2b;
  --navy-700: #152439;
  --navy-600: #1d3049;
  --steel-100: #f4f6f9;
  --steel-200: #e3e8ef;
  --steel-300: #c4cddb;
  --steel-500: #7c8ba1;
  --steel-700: #47566e;
  --orange: #f26522;
  --orange-dark: #d14e12;
  --orange-light: #ff8a50;
  --white: #ffffff;
  --font-main: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-lg: 0 20px 50px rgba(10, 20, 32, 0.25);
  --shadow-md: 0 8px 24px rgba(10, 20, 32, 0.12);
  --radius: 10px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 20, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .3s;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand svg { flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name .zh { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.brand-name .en { font-size: 10.5px; color: var(--steel-300); letter-spacing: .5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--steel-200); font-size: 15px; padding: 8px 14px;
  border-radius: 6px; transition: color .2s, background .2s; position: relative;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--orange-light); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  overflow: hidden; font-size: 12.5px; font-weight: 600;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--steel-300);
  padding: 5px 12px; cursor: pointer; font-family: var(--font-main); transition: all .2s;
}
.lang-toggle button.active { background: var(--orange); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  margin: 5px auto; transition: all .3s; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,20,32,.93) 0%, rgba(10,20,32,.72) 45%, rgba(10,20,32,.35) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange-light); margin-bottom: 20px; font-weight: 600;
}
.hero-tag::before { content: ""; width: 42px; height: 2px; background: var(--orange); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.18;
  font-weight: 800; letter-spacing: 1px; max-width: 760px; margin-bottom: 22px;
}
.hero h1 .hl { color: var(--orange-light); }
.hero p { font-size: clamp(15px, 1.6vw, 19px); color: var(--steel-200); max-width: 620px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 6px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 0; transition: all .25s; font-family: var(--font-main);
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 24px rgba(242,101,34,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy-800); color: var(--white); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 8px 12px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; color: var(--orange-light); line-height: 1.15; }
.stat-num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--steel-300); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-gray { background: var(--steel-100); }
.section-dark { background: var(--navy-800); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px;
}
.section-kicker::before { content: ""; width: 30px; height: 2px; background: var(--orange); }
.section-head.center .section-kicker::after { content: ""; width: 30px; height: 2px; background: var(--orange); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.section-desc { color: var(--steel-700); font-size: 16px; }
.section-dark .section-desc { color: var(--steel-300); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.product-body p { font-size: 14.5px; color: var(--steel-700); flex: 1; }
.product-link {
  margin-top: 18px; color: var(--orange); font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-link:hover { color: var(--orange-dark); gap: 10px; transition: gap .2s; }

/* ---------- Feature / strengths ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item {
  background: var(--navy-700); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 32px 26px; transition: all .3s;
}
.feature-item:hover { background: var(--navy-600); transform: translateY(-6px); border-color: rgba(242,101,34,.4); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(242,101,34,.14); color: var(--orange-light); margin-bottom: 20px;
}
.feature-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-item p { font-size: 14px; color: var(--steel-300); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .split-img img { width: 100%; height: 100%; object-fit: cover; }
.check-list li {
  display: flex; gap: 12px; margin-bottom: 14px; font-size: 15.5px; color: var(--steel-700);
}
.check-list li svg { flex-shrink: 0; margin-top: 4px; color: var(--orange); }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-item {
  background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius);
  padding: 24px 26px; display: flex; align-items: center; gap: 16px;
  font-weight: 600; font-size: 16px; transition: all .25s;
}
.app-item:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-item .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white); padding: 72px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,101,34,.25), transparent 65%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: var(--steel-300); font-size: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 84px) 0 84px;
  color: var(--white); overflow: hidden;
}
.page-hero .hero-bg::after {
  background: linear-gradient(100deg, rgba(10,20,32,.94) 0%, rgba(10,20,32,.75) 60%, rgba(10,20,32,.5) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--steel-200); max-width: 640px; font-size: 16.5px; }
.breadcrumb { font-size: 13.5px; color: var(--steel-300); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Products page ---------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--steel-200);
}
.product-detail:last-child { border-bottom: 0; }
.product-detail.flip .pd-img { order: 2; }
.pd-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.pd-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-body h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin-bottom: 6px; }
.pd-body .pd-sub { color: var(--orange); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.pd-body > p { color: var(--steel-700); margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--steel-200); }
.spec-table th { color: var(--steel-500); font-weight: 600; width: 38%; }
.spec-table td { color: var(--navy-800); font-weight: 600; }
.spec-table tr:hover td { background: var(--steel-100); }

/* ---------- Factory page ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.equip-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--steel-200); transition: all .25s;
}
.equip-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.equip-card .eq-num { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: 1px; margin-bottom: 10px; }
.equip-card h3 { font-size: 18px; margin-bottom: 8px; }
.equip-card p { font-size: 14px; color: var(--steel-700); }

.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.process-step {
  background: var(--navy-700); border-radius: var(--radius); padding: 26px 16px;
  text-align: center; position: relative; border: 1px solid rgba(255,255,255,.06);
}
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 26px; font-weight: 800; color: var(--orange);
  margin-bottom: 10px; font-family: "Segoe UI", Arial, sans-serif;
}
.process-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.process-step p { font-size: 12.5px; color: var(--steel-300); line-height: 1.5; }

/* ---------- About page ---------- */
.timeline { position: relative; padding-left: 34px; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--orange), var(--steel-300));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--orange);
}
.timeline-item .year { font-size: 20px; font-weight: 800; color: var(--orange); margin-bottom: 4px; }
.timeline-item h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; color: var(--steel-700); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--navy-700); padding: 34px 28px; border-radius: var(--radius); border-top: 3px solid var(--orange); }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--steel-300); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.contact-info-card {
  background: var(--navy-800); color: var(--white); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { font-size: 22px; margin-bottom: 26px; }
.ci-row { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.ci-row svg { flex-shrink: 0; color: var(--orange-light); margin-top: 3px; }
.ci-row .ci-label { font-size: 12.5px; color: var(--steel-300); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.ci-row .ci-value { font-size: 15.5px; line-height: 1.6; }

.inquiry-form { background: var(--white); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-md); border: 1px solid var(--steel-200); }
.inquiry-form h3 { font-size: 22px; margin-bottom: 8px; }
.inquiry-form .form-desc { color: var(--steel-700); font-size: 14.5px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--navy-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--steel-200); border-radius: 7px;
  font-size: 14.5px; font-family: var(--font-main); transition: border .2s; background: var(--steel-100);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--orange); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--steel-500); margin-top: 12px; }
.form-success {
  display: none; background: #ecfdf3; border: 1px solid #a7f3c9; color: #0f7b3f;
  border-radius: 8px; padding: 14px 18px; margin-top: 16px; font-size: 14.5px;
}
.form-error {
  display: none; background: #fef3f2; border: 1px solid #fecdca; color: #b42318;
  border-radius: 8px; padding: 14px 18px; margin-top: 16px; font-size: 14.5px;
}
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--steel-300); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--steel-500);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 0; }
  .product-grid, .equip-grid, .value-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .split, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-detail.flip .pd-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 14px 5%; gap: 2px; display: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; font-size: 16px; }
  .nav-toggle { display: block; }
  .product-grid, .feature-grid, .equip-grid, .value-grid, .app-grid,
  .stats-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
