:root {
  --green: #008b4f;
  --green-dark: #00653c;
  --ink: #17212b;
  --muted: #5e6b75;
  --line: #dce4e9;
  --soft: #f4f7f5;
  --paper: #ffffff;
  --steel: #e8edf0;
  --amber: #b8872d;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 520;
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 620;
}

.nav-links a,
.nav-trigger {
  color: #24313c;
}

.nav-links a:hover,
.nav-trigger:hover {
  color: var(--green-dark);
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 292px;
  display: none;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(17, 24, 32, 0.14);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-dropdown a:hover {
  background: var(--soft);
}

.nav-dropdown strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.nav-dropdown span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.language-switcher .nav-dropdown {
  left: auto;
  right: 0;
  min-width: 168px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-weight: 720;
  white-space: nowrap;
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 128px));
  display: flex;
  align-items: center;
  color: white;
  background: url("./images/mianyang-factory-exterior.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 28, 0.58);
  z-index: -1;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 126px;
}

.eyebrow {
  color: var(--green);
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: #a8f0c9;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  font-weight: 820;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 18px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof-item {
  background: var(--paper);
  padding: 18px 20px;
}

.proof-item strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--green-dark);
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head p {
  max-width: 430px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.feature,
.download,
.spec-row,
.contact-panel,
.image-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
}

.product-body,
.feature,
.download,
.contact-panel {
  padding: 22px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
}

.image-card.tall img {
  aspect-ratio: 3 / 4;
}

.image-card.certificate img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 12px;
  background: #f8faf9;
}

.image-card.process img {
  aspect-ratio: 4 / 3;
}

.image-card-body {
  padding: 16px;
}

.image-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.image-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.product-body h3,
.feature h3,
.download h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.product-body p,
.feature p,
.download p {
  font-size: 0.94rem;
}

.text-link {
  color: var(--green-dark);
  font-weight: 760;
}

.split {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  border-left: 3px solid var(--green);
  padding-left: 14px;
  color: #303b45;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.address-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.address-card .eyebrow {
  margin-bottom: 8px;
}

.address-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.address-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.document-note {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 18px 20px;
  color: #34424c;
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--paper);
  color: #34424c;
  font-weight: 660;
  font-size: 0.88rem;
}

.page-hero {
  padding: 88px 0 56px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  max-width: 940px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.08rem;
  margin-top: 18px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.media-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.media-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.spec-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row strong,
.spec-row span {
  padding: 16px 18px;
}

.spec-row strong {
  background: var(--soft);
}

.cta {
  color: white;
  background: #10251c;
  padding: 70px 0;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #27323c;
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6dc;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: white;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

.notice {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  background: #111820;
  color: white;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  margin-bottom: 34px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a,
  .nav-item,
  .nav-trigger {
    width: 100%;
  }

  .nav-links > a,
  .nav-trigger {
    padding: 10px 0;
  }

  .nav-trigger {
    justify-content: space-between;
  }

  .nav-dropdown,
  .language-switcher .nav-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    margin: 2px 0 8px;
  }

  .proof-grid,
  .image-grid,
  .address-grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three,
  .split,
  .media-band,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    display: grid;
  }
}

@media (max-width: 680px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 0;
    display: block;
    padding-top: 1px;
  }

  .hero-inner {
    padding: 86px 0 34px;
  }

  .hero-proof {
    position: static;
  }

  .proof-grid,
  .image-grid,
  .address-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .button {
    display: none;
  }

  .section-head {
    display: block;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }
}
