/* ==========================================================================
   OUXIAODUN — Welding Consumables Supplier
   Clean industrial B2B design system
   Palette: Navy #142B40 / Industrial Grey #F0F2F4 / Orange #E87528
   ========================================================================== */

:root {
  --navy:        #142B40;
  --navy-700:    #1d3a55;
  --navy-600:    #2b4d6d;
  --grey-50:     #F0F2F4;
  --grey-100:    #E6E9EC;
  --grey-200:    #D5DADE;
  --orange:      #E87528;
  --orange-dark: #c95f19;
  --ink:         #1c2733;
  --ink-soft:    #4a5967;
  --muted:       #6b7885;
  --white:       #ffffff;
  --maxw:        1180px;
  --radius:      4px;
  --shadow-sm:   0 1px 3px rgba(20, 43, 64, .08);
  --shadow-md:   0 4px 18px rgba(20, 43, 64, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.section { padding: 72px 0; }
.section--grey { background: var(--grey-50); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 760px; }

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd7e0;
  font-size: .8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #cdd7e0;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-switch button:hover { border-color: #fff; color: #fff; }
.lang-switch button.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--orange);
  border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  letter-spacing: -.05em;
}
.brand-text strong { display: block; color: var(--navy); font-size: 1.15rem; letter-spacing: .02em; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: .64rem; letter-spacing: .08em; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block;
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 3px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--orange); background: var(--grey-50); }
.main-nav a.nav-cta { background: var(--orange); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--orange-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 88px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero .kicker { color: var(--orange); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { color: var(--orange); font-style: normal; display: block; font-size: .62em; margin-top: 10px; font-weight: 600; }
.hero .lead { color: #c9d5df; max-width: 600px; margin-bottom: 28px; }
.hero-visual {
  background: linear-gradient(145deg, var(--navy-700), var(--navy-600));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 32px;
  color: #fff;
}
.hero-visual h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .1em; }
.hero-visual ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
  display: flex; align-items: center; gap: 12px;
}
.hero-visual ul li:last-child { border-bottom: 0; }
.hero-visual ul li::before { content: "✓"; color: var(--orange); font-weight: 800; }

/* proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
}
.proof-strip .proof {
  background: #fff;
  padding: 24px 18px;
  text-align: center;
}
.proof-strip .proof strong { display: block; color: var(--navy); font-size: 1.6rem; line-height: 1.1; }
.proof-strip .proof span { font-size: .8rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--grey-200); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px;
  background: var(--grey-50);
  color: var(--navy);
  border-radius: 4px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}

/* product card */
.product-card { overflow: hidden; padding: 0; }
.product-card .thumb {
  background: var(--grey-50);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--grey-100);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--grey-200);
  font-size: 3rem;
  background: repeating-linear-gradient(45deg, #f7f8f9, #f7f8f9 12px, #eef0f2 12px, #eef0f2 24px);
}
.product-card .body { padding: 20px; }
.product-card .tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 14px; min-height: 42px; }
.product-card .btn { width: 100%; }

/* feature list with icons */
.feature-row { display: flex; gap: 18px; margin-bottom: 26px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row .num {
  flex: 0 0 42px; height: 42px;
  background: var(--navy); color: #fff;
  border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.feature-row h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-row p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Section: split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 40px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.split .visual-panel h3 { color: #fff; }

/* Process flow */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.process .step {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 16px;
  position: relative;
}
.process .step .step-num {
  font-size: .72rem; font-weight: 800; color: var(--orange); letter-spacing: .1em;
  display: block; margin-bottom: 8px;
}
.process .step h4 { font-size: .92rem; margin-bottom: 6px; }
.process .step p { font-size: .8rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.92); margin-bottom: 22px; }
.cta-band .btn--primary { background: var(--navy); }
.cta-band .btn--primary:hover { background: var(--navy-700); }

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-banner p { color: #c9d5df; max-width: 700px; margin: 0; }
.breadcrumb { font-size: .8rem; color: #9fb3c4; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Content layouts ---------- */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.sidebar { background: var(--grey-50); border-radius: var(--radius); padding: 24px; }
.sidebar h3 { font-size: 1rem; margin-bottom: 14px; }
.sidebar ul li { padding: 9px 0; border-bottom: 1px solid var(--grey-200); font-size: .9rem; }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a:hover { color: var(--orange); }
.sidebar .btn { width: 100%; margin-top: 16px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--grey-100); }
.spec-table th { background: var(--grey-50); color: var(--navy); font-weight: 700; width: 32%; }
.spec-table td { color: var(--ink-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--grey-200); }

.article h2 { margin-top: 34px; }
.article h3 { margin-top: 24px; }
.article ul { margin: 0 0 1rem 20px; list-style: disc; color: var(--ink-soft); }
.article ul li { margin-bottom: 8px; }
.note-box {
  background: #fdf3ea;
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: #7c3a13;
  margin: 20px 0;
}

/* ---------- Application tiles ---------- */
.app-tile {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease;
}
.app-tile:hover { border-color: var(--orange); transform: translateY(-2px); }
.app-tile .icon {
  width: 56px; height: 56px;
  background: var(--grey-50);
  color: var(--navy);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.app-tile h3 { font-size: 1rem; margin-bottom: 4px; }
.app-tile p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Inquiry form ---------- */
.inquiry-form { background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--orange); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field .hint { font-size: .74rem; color: var(--muted); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; display: none; }
.form-status.ok { display: block; background: #e7f4ea; color: #1a6b32; }
.form-status.err { display: block; background: #fdeaea; color: #a32323; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { background: var(--grey-50); border-radius: var(--radius); padding: 22px; }
.contact-card .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.contact-card .value { font-size: 1.05rem; color: var(--navy); font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c7d3; padding: 56px 0 24px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--orange); }
.site-footer .brand-mark { background: #fff; color: var(--navy); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #8fa3b4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: #8fa3b4; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll (subtle, optional) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.back-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 4px;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.back-top.is-visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav a { padding: 8px 9px; font-size: .78rem; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar-right { gap: 10px; font-size: .74rem; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--grey-100); }
  .main-nav a.nav-cta { margin: 10px 0 0; }
  .section { padding: 52px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .content-layout { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 60px 0 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
