:root {
  --blue: #1559a8;
  --blue-dark: #0b3770;
  --orange: #f08a24;
  --green: #5f7d27;
  --ink: #16202e;
  --muted: #5d6877;
  --line: #dde4ec;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 43, 72, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 20px; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--blue-dark);
  color: #eaf3ff;
  font-size: 14px;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.topbar a { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 31, 55, 0.06);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  font-weight: 900;
  font-size: 25px;
}
.brand strong {
  display: block;
  color: var(--blue-dark);
  font-size: 22px;
  letter-spacing: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
  font-size: 15px;
  font-weight: 700;
  color: #223349;
}
.main-nav a { padding: 27px 0; }
.main-nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 11px 18px !important;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  min-height: calc(100vh - 114px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.86) 45%, rgba(255,255,255,0.72) 100%),
    url("asset/projects/workshop-installation.jpg") center/cover;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 74px 0 64px;
}
.hero-lead {
  font-size: 21px;
  max-width: 620px;
  margin: 24px 0 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 610px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-proof span {
  padding: 17px 18px 17px 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-proof strong {
  display: block;
  color: var(--blue-dark);
  font-size: 24px;
}
.hero-media {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
}
.line-render {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 89, 168, 0.12);
}
.machine-float {
  position: absolute;
  width: 36%;
  right: 4%;
  bottom: -8%;
  filter: drop-shadow(0 24px 30px rgba(7, 29, 53, 0.24));
}

.section { padding: 88px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}
.section-head p { font-size: 18px; margin-top: 14px; }
.two-col, .company-grid, .equipment-grid, .contact-grid, .faq-grid, .principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.intro { background: #fff; }
.spec-card, .contact-card {
  border-left: 5px solid var(--orange);
  background: var(--soft);
  padding: 32px;
}
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: #334255;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--orange);
}

.company-band {
  background: linear-gradient(90deg, var(--blue-dark), #174d88);
}
.company-band h2, .company-band p, .company-band span { color: #fff; }
.company-image img { box-shadow: var(--shadow); border: 8px solid rgba(255,255,255,0.16); }
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.metric-row div {
  border-top: 3px solid var(--orange);
  padding-top: 14px;
}
.metric-row strong {
  display: block;
  color: #fff;
  font-size: 32px;
}
.metric-row span {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

.certificates, .applications, .projects { background: var(--soft); }
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.certificate-grid article {
  min-height: 250px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.certificate-grid img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #f8fafc;
}
.certificate-grid h3 {
  margin-top: 14px;
  font-size: 16px;
}
.ce-card {
  align-items: flex-start;
  justify-content: center !important;
}
.ce-badge {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}
.ce-card a { color: var(--blue); font-weight: 800; }

.flow-visual img { box-shadow: var(--shadow); background: #fff; }
.steps {
  display: grid;
  gap: 16px;
}
.steps article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.steps span {
  grid-row: 1 / span 2;
  color: var(--orange);
  font-weight: 900;
  font-size: 26px;
}
.steps p { margin: 8px 0 0; }

.advantage-grid, .case-grid, .material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.advantage-grid article {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 42, 71, 0.05);
}
.advantage-grid article::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  background: var(--orange);
  margin-bottom: 18px;
}

.material-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.material-board img, .material-grid article, .case-grid article, .video-grid video {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 42, 71, 0.06);
}
.material-grid img, .case-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.material-grid article h3, .case-grid article h3 { padding: 18px 18px 0; }
.material-grid article p, .case-grid article p { padding: 8px 18px 20px; margin: 0; }
.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.industry-strip span {
  background: #fff;
  border-left: 4px solid var(--green);
  padding: 12px 16px;
  font-weight: 800;
  color: #2c3d51;
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.equipment-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq-grid { align-items: start; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--blue-dark);
}
.faq-list p { margin: 12px 0 0; }

.contact {
  background:
    linear-gradient(rgba(9,42,82,0.9), rgba(9,42,82,0.9)),
    url("asset/company/team-guilin-factory.jpg") center/cover;
}
.contact h2, .contact p { color: #fff; }
.contact-card {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--orange);
  margin-top: 24px;
}
.contact-card a { color: #fff; font-weight: 900; }
.inquiry-form {
  background: #fff;
  padding: 30px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}
.inquiry-form label {
  display: grid;
  gap: 6px;
  color: #26364a;
  font-weight: 800;
  font-size: 14px;
}
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%;
  border: 1px solid #cfd9e5;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.footer {
  background: #111a26;
  color: #d8e1ed;
  padding: 58px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}
.footer h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer p, .footer a { color: #b9c5d3; }
.footer a { display: block; margin: 8px 0; }
.footer-brand { margin-bottom: 16px; }
.footer-brand strong, .footer-brand small { color: #fff; }
.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #8794a6;
  font-size: 14px;
}

.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: #21a656;
  color: #fff;
  padding: 13px 17px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(18, 54, 36, 0.24);
}

@media (max-width: 1020px) {
  .main-nav { gap: 14px; font-size: 13px; }
  .hero-grid, .two-col, .company-grid, .equipment-grid, .contact-grid, .faq-grid, .principle-grid { grid-template-columns: 1fr; }
  .certificate-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-media { min-height: 350px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner { justify-content: center; flex-direction: column; gap: 2px; padding: 8px 0; }
  .nav-wrap { min-height: 66px; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 48px 0 44px; gap: 22px; }
  .hero-lead { font-size: 18px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof span { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero-media { min-height: 240px; }
  .machine-float { width: 40%; right: 0; bottom: -4%; }
  .section { padding: 62px 0; }
  .metric-row, .certificate-grid, .advantage-grid, .material-board, .material-grid, .video-grid, .case-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps article { grid-template-columns: 44px 1fr; padding: 16px; }
  .equipment-gallery { grid-template-columns: 1fr 1fr; }
  .float-whatsapp { right: 14px; bottom: 14px; }
}
