/* ============================================================
   APZLG Metal / Zhongliao Metal
   GEO-focused independent site redesign
   ============================================================ */

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

:root {
  --ink: #202124;
  --ink-soft: #3c4043;
  --muted: #6a6f78;
  --line: #dedbd2;
  --paper: #ffffff;
  --warm: #f7f4eb;
  --warm-2: #ebe6da;
  --brand: #f4b400;
  --brand-dark: #bd8500;
  --steel: #52565c;
  --signal: #0f766e;
  --blue: #1f4d7a;
  --max-w: 1160px;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(32, 33, 36, .12);
  --transition: .22s ease;
  --brand-blue: var(--ink);
  --brand-orange: var(--brand);
  --brand-light: var(--warm);
  --text-dark: var(--ink);
  --text-mid: var(--ink-soft);
  --text-light: var(--muted);
  --border: var(--line);
  --white: var(--paper);
}

html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { width: min(100% - 40px, var(--max-w)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-alt { background: var(--warm); }
.section-tight { padding: 52px 0; }
.section-kicker {
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
}
h1, h2, h3, h4 { letter-spacing: 0; }
h1 { color: var(--paper); font-size: clamp(2rem, 4.2vw, 4.35rem); line-height: 1.04; font-weight: 850; }
h2 { color: var(--ink); font-size: clamp(1.6rem, 2.4vw, 2.45rem); line-height: 1.16; margin-bottom: 14px; }
h3 { color: var(--ink); font-size: 1.08rem; line-height: 1.28; margin-bottom: 8px; }
p { color: var(--muted); margin-bottom: 12px; }
strong { color: inherit; }

/* Top Bar */
.topbar {
  color: rgba(255,255,255,.82);
  background: #171719;
  font-size: .82rem;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.88); }
.topbar a:hover { color: var(--brand); }
.topbar-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-links a + a { border-left: 1px solid rgba(255,255,255,.18); padding-left: 12px; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header .container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 236px; }
.logo-mark { width: 82px; height: auto; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.1;
}
.logo-sub {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
  margin-top: 3px;
}
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--ink); background: var(--warm); }
.nav-cta {
  color: #171719 !important;
  background: var(--brand) !important;
  border: 1px solid rgba(32,33,36,.12);
}
.nav-cta:hover { color: #171719 !important; background: #ffd34f !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  color: #171719;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(244, 180, 0, .22);
}
.btn-primary:hover { color: #171719; background: #ffd34f; transform: translateY(-1px); }
.btn-outline {
  color: var(--paper);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.42);
}
.btn-outline:hover { color: var(--paper); background: rgba(255,255,255,.14); }
.btn-ghost {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); background: #fff8df; }
.btn-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-dark:hover { color: var(--paper); background: #3a3a3e; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 18%, rgba(244,180,0,.18), transparent 34%),
    linear-gradient(90deg, rgba(16,16,17,.98) 0%, rgba(16,16,17,.94) 50%, rgba(16,16,17,.86) 100%),
    #171719;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(390px, .82fr);
  gap: 46px;
  align-items: center;
}
.hero-copy { max-width: 720px; padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 850;
  font-size: .82rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 4px;
  background: var(--brand);
}
.hero-desc {
  max-width: 690px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 22px 0 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.hero-tags span {
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8rem;
}
.hero-media {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.store-preview {
  width: 100%;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(0,0,0,.34);
  background: #101011;
}
.store-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
  background: #101011;
}
.store-preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.proof-bar {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--brand);
  color: #171719;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(23,23,25,.16);
}
.proof-item {
  min-height: 94px;
  padding: 18px;
  background: var(--brand);
}
.proof-num {
  font-size: 1.58rem;
  font-weight: 900;
  line-height: 1;
}
.proof-label {
  margin-top: 6px;
  font-size: .83rem;
  font-weight: 700;
}

/* Content Grids */
.intro-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.lead { font-size: 1.04rem; color: var(--ink-soft); }
.compact-list { display: grid; gap: 10px; margin-top: 22px; }
.compact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .93rem;
}
.compact-list strong { color: var(--ink); }
.product-grid,
.buyer-grid,
.app-grid,
.trust-strip,
.contact-grid {
  display: grid;
  gap: 18px;
}
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.buyer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }

.product-card,
.buyer-card,
.app-card,
.trust-item,
.contact-card,
.keyword-panel,
.info-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.prod-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #171719;
  background: var(--brand);
  font-weight: 900;
  margin-bottom: 16px;
}
.product-card p { font-size: .9rem; margin-bottom: 14px; }
.prod-specs { list-style: none; display: grid; gap: 5px; margin: 0 0 18px; }
.prod-specs li { color: var(--muted); font-size: .82rem; }
.prod-specs li::before { content: "• "; color: var(--brand-dark); font-weight: 900; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.prod-link { color: var(--ink); font-weight: 850; font-size: .86rem; }
.prod-link:hover { color: var(--brand-dark); }

.buyer-card,
.app-card,
.contact-card,
.keyword-panel,
.info-panel {
  padding: 22px;
}
.buyer-card p,
.app-card p,
.trust-item p,
.contact-card p { font-size: .88rem; margin-bottom: 0; }
.buyer-icon,
.trust-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #171719;
  background: #fff0b8;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.app-label {
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.trust-item { padding: 20px; }
.trust-item h3 { font-size: .98rem; }

.keyword-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.keyword-panel h3 { margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink-soft);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 700;
}
.badge-orange { background: #fff3c4; color: var(--ink); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.process-step {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.step-num {
  color: var(--brand-dark);
  font-weight: 900;
  font-size: .82rem;
  margin-bottom: 8px;
}

/* Insights / Articles */
.insight-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.insight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.insight-card p { max-width: 860px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: start;
}
.article-main {
  max-width: 860px;
}
.article-main h2 {
  margin-top: 34px;
}
.article-list {
  color: var(--muted);
  padding-left: 22px;
  line-height: 1.85;
}
.article-list li { margin-bottom: 6px; }
.article-tags { margin-top: 16px; }
.article-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}
.side-links {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.side-links a {
  color: var(--ink);
  font-weight: 800;
}
.side-links a:hover { color: var(--brand-dark); }

/* Tables / FAQ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.spec-table th {
  color: var(--paper);
  background: var(--ink);
  padding: 11px 14px;
  text-align: left;
}
.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.spec-table tr:hover td { background: var(--warm); }

.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}
.faq-question::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #171719;
  background: var(--brand);
  border-radius: 50%;
  flex: 0 0 auto;
}
.faq-item.open .faq-question::after { content: "-"; }
.faq-answer {
  display: none;
  color: var(--muted);
  font-size: .93rem;
  max-width: 880px;
  padding: 0 0 18px;
}
.faq-item.open .faq-answer { display: block; }

/* Contact / CTA */
.contact-band {
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(23,23,25,.96) 0%, rgba(23,23,25,.9) 54%, rgba(189,133,0,.76) 100%),
    url("../images/factory-campus.png") center 58% / cover no-repeat;
}
.contact-band h2,
.contact-band h3 { color: var(--paper); }
.contact-band p { color: rgba(255,255,255,.76); }
.contact-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.contact-card a { color: var(--paper); font-weight: 850; }
.contact-card a:hover { color: var(--brand); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.rfq-section { display: none; }

/* Inner Pages */
.page-hero {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(23,23,25,.94), rgba(23,23,25,.74)),
    url("../images/factory-campus.png") center 55% / cover no-repeat;
  padding: 58px 0 52px;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); max-width: 980px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 880px; margin-top: 12px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.64);
  font-size: .84rem;
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.86); }
.breadcrumb a:hover { color: var(--brand); }

/* Footer */
.site-footer {
  color: rgba(255,255,255,.72);
  background: #171719;
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}
.footer-brand .logo-name { color: var(--paper); font-size: 1.2rem; }
.footer-brand p,
.footer-col ul li a {
  color: rgba(255,255,255,.64);
  font-size: .84rem;
}
.footer-col h4 {
  color: var(--paper);
  font-size: .9rem;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.68); }
.footer-bottom a:hover { color: var(--brand); }

/* Utility */
.text-center { text-align: center; }
.text-orange { color: var(--brand-dark); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.surface-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: rgba(255,255,255,.16);
}
.surface-dark h3 { color: var(--paper); }
.surface-dark p { color: rgba(255,255,255,.74); }

@media (max-width: 1020px) {
  .hero-inner,
  .intro-grid,
  .keyword-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; }
  .hero-copy { padding: 70px 0 16px; }
  .hero-media { padding-bottom: 54px; }
  .product-grid,
  .buyer-grid,
  .app-grid,
  .trust-strip,
  .contact-grid,
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header .container { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  nav { width: 100%; justify-content: flex-start; }
  .logo { min-width: 0; }
  .logo-mark { width: 74px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max-w)); }
  .section { padding: 54px 0; }
  .topbar .container { padding: 8px 0; align-items: flex-start; flex-direction: column; }
  .topbar-links { gap: 8px; }
  .topbar-links a + a { border-left: 0; padding-left: 0; }
  h1 { font-size: 2.28rem; }
  .hero-copy { padding-top: 56px; }
  .hero-actions .btn,
  .contact-actions .btn { width: 100%; }
  .store-preview img { height: auto; }
  .product-grid,
  .buyer-grid,
  .app-grid,
  .trust-strip,
  .contact-grid,
  .process-steps,
  .proof-grid { grid-template-columns: 1fr; }
  .compact-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
}
