/* CHENGZHONG TOOLS — industrial B2B site */
:root {
  --ink: #0e1420;          /* near-black */
  --ink-2: #1c2434;
  --paper: #f7f7f4;        /* warm off-white */
  --line: #e2e0d8;
  --accent: #ffb800;       /* tool yellow */
  --accent-dark: #e09e00;
  --muted: #5c6470;
  --white: #ffffff;
  --serif: "Georgia", "Times New Roman", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: 0.02em; }
.logo .mark { color: var(--accent); }
.logo .sub { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-links a { color: rgba(255,255,255,.82); transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-hot { color: var(--accent) !important; display: inline-flex; align-items: center; gap: 6px; }
.nav-hot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,184,0,.22); }
.btn {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-weight: 700; padding: 11px 22px; border-radius: 4px;
  transition: background .15s, transform .1s; border: none; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #ffcd4d; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(120deg, #0a0f18 0%, #141d2e 55%, #1b2740 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.02) 119px 120px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 100px; }

/* hero 两栏：左边品牌标，右边文案 */
.hero-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 96px; align-items: center; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: 100%; max-width: 280px; height: auto; display: block;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, .55));
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-logo { justify-content: flex-start; }
  .hero-logo img { max-width: 170px; }
}
/* hero 里的 10% 大字条 */
.hero-margin {
  display: flex; align-items: center; gap: 18px; margin: 26px 0 22px;
  padding: 14px 20px 14px 16px; border-radius: 10px;
  background: rgba(255,184,0,.10); border: 1px solid rgba(255,184,0,.32);
  max-width: 560px;
}
.hero-margin b {
  font-size: 44px; font-weight: 900; line-height: 1; color: var(--accent);
  letter-spacing: -.03em; white-space: nowrap;
}
.hero-margin b sup { font-size: 20px; top: -14px; }
.hero-margin span { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.86); }
.hero-margin em { color: var(--accent); font-style: normal; font-weight: 700; }
@media (max-width: 640px) {
  .hero-margin b { font-size: 34px; }
  .hero-margin span { font-size: 13.5px; }
}

.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,184,0,.35); border-radius: 99px; padding: 6px 14px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; max-width: 800px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.78); max-width: 640px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 36px; }
.proof-item { border-left: 2px solid rgba(255,184,0,.4); padding-left: 14px; }
.proof-item b { display: block; font-size: 21px; }
.proof-item span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- sections ---------- */
section.block { padding: 78px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.bg-paper { background: var(--paper); }
.bg-dark { background: var(--ink); color: #fff; }
.bg-dark .section-head p { color: rgba(255,255,255,.66); }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 24px; transition: box-shadow .18s, transform .18s; position: relative; overflow: hidden;
}
.cat-card:hover { box-shadow: 0 12px 34px rgba(14,20,32,.10); transform: translateY(-3px); }
.cat-card .num {
  font-family: var(--serif); font-size: 13px; color: var(--accent-dark);
  letter-spacing: .1em; text-transform: uppercase;
}
.cat-card h3 { font-size: 19px; font-weight: 800; margin: 8px 0 10px; }
.cat-card ul { list-style: none; font-size: 14px; color: var(--muted); }
.cat-card ul li { padding: 3px 0; padding-left: 16px; position: relative; }
.cat-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent-dark); opacity: .7; }
.cat-card .more { margin-top: 14px; display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); }
.thumb {
  height: 132px; border-radius: 6px; margin-bottom: 18px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px; color: rgba(255,255,255,.85); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.thumb[data-t="1"] { background: linear-gradient(135deg,#1d2b47,#33466e); }
.thumb[data-t="2"] { background: linear-gradient(135deg,#313a52,#4a5577); }
.thumb[data-t="3"] { background: linear-gradient(135deg,#27401f,#3f6b2f); }
.thumb[data-t="4"] { background: linear-gradient(135deg,#542b2b,#8a3f33); }
.thumb[data-t="5"] { background: linear-gradient(135deg,#33302a,#5c5343); }
.thumb[data-t="6"] { background: linear-gradient(135deg,#14313d,#1f5566); }
.thumb[data-t="7"] { background: linear-gradient(135deg,#2b2550,#4a3f8a); }
.thumb[data-t="8"] { background: linear-gradient(135deg,#3d2c14,#6b4f22); }
.thumb b { font-size: 20px; letter-spacing: 0; text-transform: none; font-weight: 800; }
.thumb span { display: block; margin-top: 2px; }

/* ---------- why cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.why-card .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.why-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 14px; counter-reset: st; }
.step { border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 22px 20px; position: relative; }
.step::before { counter-increment: st; content: "0" counter(st); font-family: var(--serif); font-size: 30px; color: var(--accent); opacity: .9; }
.step h4 { margin: 10px 0 6px; font-size: 15.5px; }
.step p { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* ---------- cta band ---------- */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; }
.cta-band p { font-weight: 500; margin-top: 4px; }
.cta-band .btn-dark { background: var(--ink); color: #fff; }
.cta-band .btn-dark:hover { background: #1c2434; }

/* ---------- product list page ---------- */
.cat-block { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.cat-block > .cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 20px 26px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-block .cat-head h2 { font-size: 20px; font-weight: 800; }
.cat-block .cat-head p { color: var(--muted); font-size: 13.5px; }
.prod-list { list-style: none; }
.prod-list li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 26px; border-bottom: 1px solid var(--line); font-size: 15px; }
.prod-list li:last-child { border-bottom: none; }
.prod-list .p-name { font-weight: 600; }
.prod-list .p-detail { color: var(--muted); font-size: 13.5px; text-align: right; }
.badge { display: inline-block; background: var(--ink); color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 15px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.contact-info .ci-card { background: var(--ink); color: #fff; border-radius: 10px; padding: 28px; }
.ci-card h3 { font-size: 18px; margin-bottom: 14px; }
.ci-card p { font-size: 14.5px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.ci-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.ci-line:first-of-type { border-top: none; }
.ci-line b { color: var(--accent); min-width: 96px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ci-line a { color: #fff; }
.ci-line a:hover { color: var(--accent); }

/* ---------- footer ---------- */
/* ---------- 10% margin band ---------- */
.ten { background: var(--ink); color: #fff; padding: 78px 0; position: relative; overflow: hidden; }
.ten::after {
  content: "10%"; position: absolute; right: -24px; bottom: -76px; font-size: 300px; font-weight: 900;
  line-height: .8; color: rgba(255,255,255,.035); pointer-events: none; letter-spacing: -.05em;
}
.ten-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 64px; align-items: center; position: relative; z-index: 1; }
.ten-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ten-num { font-size: 168px; font-weight: 900; line-height: .92; letter-spacing: -.05em; color: var(--accent); }
.ten-num span { font-size: 72px; letter-spacing: 0; }
.ten-sub { margin-top: 14px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.7); }
.ten-right h2 { font-size: 30px; line-height: 1.28; margin-bottom: 14px; letter-spacing: -.01em; }
.ten-right p { font-size: 15.5px; color: rgba(255,255,255,.72); max-width: 600px; }
.ten-list { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.ten-list li { position: relative; padding-left: 20px; font-size: 15px; color: rgba(255,255,255,.9); }
.ten-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.ten-list li span { color: rgba(255,255,255,.55); }
.ten-bars { display: grid; gap: 14px; max-width: 560px; }
.bar-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 74px; align-items: center; gap: 14px; font-size: 12.5px; }
.bar-lbl { color: rgba(255,255,255,.62); }
.bar-track { display: block; height: 12px; background: rgba(255,255,255,.10); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; }
.fill-us { width: 25%; background: var(--accent); }
.fill-them { width: 100%; background: #6f7c90; }
.bar-val { text-align: right; color: #fff; font-weight: 800; }
@media (max-width: 900px) {
  .ten-grid { grid-template-columns: 1fr; gap: 26px; }
  .ten-num { font-size: 116px; }
  .ten-right h2 { font-size: 24px; }
  .bar-row { grid-template-columns: 140px minmax(0,1fr) 62px; gap: 10px; font-size: 11.5px; }
}

/* 询价页的 10% 说明 */
.ten-note {
  margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--accent);
  background: var(--paper); border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--muted);
}
.ten-note b { color: var(--ink); font-weight: 800; }

/* 产品页顶部细条 */
.ten-mini { background: var(--accent); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.ten-mini .container { display: flex; align-items: center; gap: 14px; padding: 11px 24px; flex-wrap: wrap; }
.ten-mini b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ten-mini a { font-weight: 800; border-bottom: 2px solid rgba(14,20,32,.35); }

.site-footer { background: #080c13; color: rgba(255,255,255,.66); padding: 46px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid p { max-width: 320px; }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.42); }
.placeholder-note {
  background: rgba(255,184,0,.08); border: 1px dashed rgba(255,184,0,.5); color: #8a6a00;
  font-size: 13px; border-radius: 6px; padding: 10px 14px; margin-top: 10px;
}

/* ---------- inquiry form status + fallback（询盘绝不静默失败） ---------- */
.inq-status { margin-top: 12px; font-size: 14px; line-height: 1.5; border-radius: 6px; }
.inq-status:empty { display: none; }
.inq-status.sending { color: var(--muted); }
.inq-status.ok { background: #e8f6ec; border: 1px solid #7fc79a; color: #1d6b3a; padding: 10px 14px; }
.inq-status.fail { background: #fdecea; border: 1px solid #e0908a; color: #8a1f14; padding: 10px 14px; }
.inq-status.alt { background: #fff8e6; border: 1px solid #e2b455; color: #7a5600; padding: 10px 14px; }
.inq-fallback { margin-top: 14px; padding: 14px; border: 1px solid #e0908a; border-radius: 8px; background: #fffaf9; }
.inq-fallback[hidden] { display: none; }
.inq-fallback.alt { border-color: #e2b455; background: #fffdf5; }
.inq-fallback.alt .inq-fb-head { color: #7a5600; }
.inq-fb-head { font-size: 14px; font-weight: 600; color: #8a1f14; margin-bottom: 10px; }
.inq-fallback textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fff; color: var(--ink); }
.inq-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
