/* ==========================================================================
   准发机械 ZHUNFA MACHINE — 全站样式
   ========================================================================== */
:root {
  --ink: #0b2137;
  --ink-2: #123a5e;
  --ink-soft: #1d4b73;
  --brand: #d8232a;
  --brand-dark: #b0141b;
  --accent: #f26a1b;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-tint: #eef3f8;
  --line: #e2e8f0;
  --line-soft: #eef1f5;
  --text: #16212e;
  --muted: #5d6f82;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 33, 55, .06), 0 2px 10px rgba(11, 33, 55, .05);
  --shadow: 0 8px 30px rgba(11, 33, 55, .10);
  --shadow-lg: 0 22px 60px rgba(11, 33, 55, .16);
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.72;
  -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 .6em; line-height: 1.25; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--ink); color: #cfdcea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 52px 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section--dark .eyebrow { color: #ff8a72; }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 780px; }
.section--dark .lede { color: #a9c0d6; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 26px; border-radius: 100px; font-weight: 650; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; font-family: inherit;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(216, 35, 42, .24); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--wa { background: #25d366; color: #06331a; font-weight: 700; }
.btn--wa:hover { background: #1fbe5b; }
.btn--sm { padding: 9px 18px; font-size: .87rem; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(11, 33, 55, .08); }
.nav { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text strong { font-size: 1.1rem; color: var(--ink); letter-spacing: .01em; }
.brand-text span { font-size: .66rem; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-size: .94rem; font-weight: 550; color: #2b3d50;
  transition: background .16s, color .16s;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a.is-active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
  font-size: .82rem; font-weight: 700;
}
.lang a { padding: 6px 13px; color: var(--muted); }
.lang a.is-on { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 520px at 78% -12%, #1c5b8f 0%, rgba(28, 91, 143, 0) 62%),
    linear-gradient(160deg, #0a1f33 0%, #0d2c47 52%, #113d63 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
  padding: 74px 0 82px;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero p { color: #b9cee2; font-size: 1.1rem; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 100px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .85rem; font-weight: 600; color: #e4eefa; margin-bottom: 22px;
}
.hero-badge b { color: #ff9b7a; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 20px; font-size: .88rem; color: #93aec7; }
.hero-figure { position: relative; }
.hero-card {
  background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: 10px; }
.hero-tag {
  position: absolute; left: -14px; bottom: 26px; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); font-size: .84rem;
  font-weight: 650; border-left: 4px solid var(--brand); line-height: 1.4;
}
.hero-tag span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ---------- Stat bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.stats div { padding: 26px 22px 30px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.85rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.stats span { font-size: .88rem; color: #a7c0d8; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.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(--radius);
  padding: 30px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dced; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--ink); margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

.card--brand { border-top: 4px solid var(--brand); }
.card--brand.alt { border-top-color: var(--accent); }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-media { background: #f7f9fc; border-bottom: 1px solid var(--line-soft); padding: 14px; }
.p-media img { width: 100%; height: 200px; object-fit: contain; }
.p-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.p-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-soft); background: var(--bg-tint); border-radius: 5px; padding: 3px 9px;
  margin-bottom: 10px; text-transform: uppercase;
}
.p-brand-tag { background: #fdeced; color: var(--brand); }
.p-card h3 { font-size: 1.08rem; margin-bottom: .35em; }
.p-sku { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.p-desc { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.p-specs { list-style: none; padding: 0; margin: 0 0 18px; font-size: .87rem; }
.p-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.p-specs li:last-child { border-bottom: 0; }
.p-specs span { color: var(--muted); }
.p-specs b { color: var(--ink); font-weight: 600; text-align: right; }
.p-more { margin-top: auto; font-weight: 650; color: var(--brand); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.p-more::after { content: "→"; transition: transform .18s; }
.p-card:hover .p-more::after { transform: translateX(4px); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--bg-alt); color: var(--ink); font-weight: 650; font-size: .86rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-table th { width: 34%; background: #fafbfd; color: var(--muted); font-weight: 600; font-size: .9rem; }
.spec-table td { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner) ---------- */
.page-head {
  background: linear-gradient(150deg, #0a1f33 0%, #123a5e 100%); color: #fff; padding: 52px 0 56px;
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 85% 0%, rgba(242, 106, 27, .22), transparent 70%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: 2.3rem; margin-bottom: .3em; }
.page-head p { color: #aec5da; max-width: 720px; margin-bottom: 0; }
.crumbs { font-size: .84rem; color: #8ba7c1; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 7px; opacity: .6; }

/* ---------- Detail page ---------- */
.detail-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; padding: 60px 0 20px; }
.detail-media { background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.detail-media img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.detail-lead { font-size: 1.08rem; color: #33465a; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.pill { background: var(--bg-tint); border-radius: 100px; padding: 7px 15px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.kv div { background: #fff; padding: 15px 18px; }
.kv b { display: block; font-size: 1.06rem; color: var(--ink); }
.kv span { font-size: .82rem; color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose table { margin-bottom: 1.4em; }
.callout {
  border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 26px 0; font-size: .96rem;
}
.callout b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 26px;
  font-size: 1.06rem; font-weight: 650; color: var(--ink); display: flex; gap: 16px; align-items: flex-start;
  font-family: inherit; line-height: 1.5;
}
.faq-q::before { content: "Q"; flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700; margin-top: 2px; }
.faq-q::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--muted); font-weight: 400; line-height: 1; }
.faq-item.is-open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 26px 24px 68px; color: #3b4c5e; font-size: .97rem; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0a1f33, #16456e 70%); border-radius: 20px; padding: 52px;
  color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 106, 27, .3), transparent 65%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #b3c9dd; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 21px; height: 21px; color: var(--brand); flex: none; margin-top: 4px; }
.info-list b { display: block; color: var(--ink); font-size: .95rem; }
.info-list span, .info-list a { color: var(--muted); font-size: .93rem; }
.info-list a:hover { color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .87rem; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--text); background: #fcfdff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(216, 35, 42, .18); border-color: var(--brand); }
.field textarea { min-height: 108px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s); font-size: 1.6rem; font-weight: 700;
  color: var(--brand); opacity: .28; display: block; margin-bottom: 10px; letter-spacing: -.02em;
}

/* ---------- Blog/industry blocks ---------- */
.ind-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; padding: 30px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; }
.ind-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(242,106,27,.28), transparent 60%); }
.ind-card > * { position: relative; z-index: 2; }
.ind-card h3 { color: #fff; margin-bottom: .35em; }
.ind-card p { color: #b6cade; font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #08192a; color: #9db3c8; padding: 62px 0 26px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand img { height: 46px; background: #fff; border-radius: 9px; padding: 6px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: #7b93aa; }
.footer-contact b { color: #fff; font-size: 1.06rem; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #06331a; font-weight: 700; padding: 13px 20px; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35); font-size: .92rem;
}
.float-wa svg { width: 20px; height: 20px; }
.float-wa:hover { background: #1fbe5b; }

/* ---------- Misc ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.tag-row li { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px; font-size: .87rem; font-weight: 600; color: var(--ink-soft); }
.updated { font-size: .84rem; color: var(--muted); margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; }
.alert-box { background: #fff8f0; border: 1px solid #ffd9b8; border-radius: var(--radius-sm); padding: 16px 20px; font-size: .92rem; color: #6b4620; }

@media (max-width: 1024px) {
  h1 { font-size: 2.15rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 54px 0 60px; }
  .detail-top { grid-template-columns: 1fr; gap: 34px; }
  .p-grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  .burger { display: block; margin-left: auto; }
  .nav-cta .btn--wa-header { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .section { padding: 54px 0; }
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  .p-grid, .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; }
  .hero-tag { left: 10px; }
  .kv { grid-template-columns: 1fr; }
  .float-wa span { display: none; }
  .float-wa { padding: 15px; }
}
