/* ZHIFU PLASTIC · AUER-Inspired Precision Modular B2B UI Architecture (zf-* namespace) */
:root {
  --zf-crimson: #D50029;
  --zf-crimson-dark: #AD0021;
  --zf-crimson-soft: #FFF1F3;
  --zf-charcoal: #22252A;
  --zf-ink: #16181D;
  --zf-body: #454C56;
  --zf-muted: #68707C;
  --zf-stage: #F4F5F8;
  --zf-stage-deep: #EAECEF;
  --zf-white: #FFFFFF;
  --zf-border: #E3E6EC;
  --zf-border-strong: #CBD1DC;
  --zf-green: #0F766E;
  --zf-green-bg: #ECFDF5;
  --zf-radius: 2px;
  --zf-shadow: 0 8px 24px rgba(22, 24, 29, 0.06);
  --zf-shadow-hover: 0 14px 32px rgba(22, 24, 29, 0.11);
  --zf-max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: "Open Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--zf-body);
  background: var(--zf-white);
  line-height: 1.62;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--zf-charcoal); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--zf-crimson); }

.zf-container { width: 100%; max-width: var(--zf-max); margin: 0 auto; padding: 0 24px; }

/* Top Utility Bar (AUER Precision Bar) */
.zf-topbar {
  background: #F2F3F6;
  border-bottom: 1px solid var(--zf-border);
  font-size: 0.80rem;
  color: #4A515C;
  position: relative;
  z-index: 1002;
}
.zf-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 12px; flex-wrap: wrap; padding: 4px 0;
}
.zf-topbar-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-weight: 600; }
.zf-topbar-dot { width: 7px; height: 7px; background: var(--zf-crimson); display: inline-block; margin-right: 6px; }
.zf-topbar-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zf-select {
  background: #0F172A; color: #F8FAFC; border: 1px solid #334155;
  padding: 3px 8px; font-size: 0.76rem; border-radius: 2px; cursor: pointer;
}

/* Sticky Precision Navbar */
.zf-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--zf-border);
}
.zf-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.zf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zf-brand img { width: 40px; height: 40px; flex-shrink: 0; }
.zf-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.zf-brand-title { font-size: 1.18rem; font-weight: 800; letter-spacing: 0.04em; color: var(--zf-ink); }
.zf-brand-sub { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: var(--zf-crimson); text-transform: uppercase; }

.zf-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.zf-nav a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #30353E; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.zf-nav a:hover, .zf-nav a.active { color: var(--zf-crimson); border-bottom-color: var(--zf-crimson); }

.zf-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons (AUER Sharp 2px Industrial Geometry) */
.zf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-size: 0.83rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--zf-radius); border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease; text-align: center;
}
.zf-btn-crimson { background: var(--zf-crimson); color: #FFFFFF !important; border-color: var(--zf-crimson); }
.zf-btn-crimson:hover { background: var(--zf-crimson-dark); border-color: var(--zf-crimson-dark); transform: translateY(-1px); }
.zf-btn-dark { background: var(--zf-charcoal); color: #FFFFFF !important; border-color: var(--zf-charcoal); }
.zf-btn-dark:hover { background: #000000; }
.zf-btn-outline { background: var(--zf-white); color: var(--zf-charcoal) !important; border-color: var(--zf-border-strong); }
.zf-btn-outline:hover { border-color: var(--zf-crimson); color: var(--zf-crimson) !important; }
.zf-btn-wa { background: #128C7E; color: #FFFFFF !important; border-color: #128C7E; }
.zf-btn-wa:hover { background: #075E54; }
.zf-btn-sm { padding: 8px 14px; font-size: 0.76rem; }

/* Breadcrumbs (WAI-ARIA) */
.zf-breadcrumb-bar { background: #F8F9FB; border-bottom: 1px solid var(--zf-border); padding: 10px 0; font-size: 0.81rem; }
.zf-breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--zf-muted); }
.zf-breadcrumb-list li+li::before { content: "»"; margin-right: 6px; color: #9AA2AF; }
.zf-breadcrumb-list a { color: #4A515C; font-weight: 600; }
.zf-breadcrumb-list [aria-current="page"] { color: var(--zf-crimson); font-weight: 700; }

/* Section Headings with AUER Signature Short Underline Bar */
.zf-section { padding: 68px 0; }
.zf-section-alt { background: var(--zf-stage); border-top: 1px solid var(--zf-border); border-bottom: 1px solid var(--zf-border); }
.zf-sec-head { margin-bottom: 38px; }
.zf-sec-head.center { text-align: center; }
.zf-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--zf-crimson);
  margin-bottom: 8px;
}
.zf-sec-title {
  margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 800;
  letter-spacing: 0.02em; color: var(--zf-ink); text-transform: uppercase;
}
.zf-sec-title::after {
  content: ""; display: block; width: 42px; height: 3px;
  background: var(--zf-charcoal); margin-top: 12px;
}
.zf-sec-head.center .zf-sec-title::after { margin-left: auto; margin-right: auto; }
.zf-sec-sub { max-width: 780px; margin: 14px 0 0; color: var(--zf-body); font-size: 0.98rem; }
.zf-sec-head.center .zf-sec-sub { margin-left: auto; margin-right: auto; }

/* Homepage Hero Stage (Learned from AUER "SENSE OF ORDER.") */
.zf-hero-stage {
  background: linear-gradient(180deg, #F8F9FB 0%, #EAECEF 100%);
  border-bottom: 1px solid var(--zf-border);
  padding: 54px 0 42px;
  position: relative;
}
.zf-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
}
.zf-hero-visual {
  background: var(--zf-white); border: 1px solid var(--zf-border);
  padding: 22px; box-shadow: var(--zf-shadow); position: relative;
}
.zf-hero-main-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF;
}
.zf-hero-switcher {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px;
}
.zf-hero-tab {
  border: 1px solid var(--zf-border); background: #F9FAFB; padding: 8px;
  cursor: pointer; text-align: left; font-size: 0.74rem; font-weight: 700; color: var(--zf-charcoal);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.zf-hero-tab.active, .zf-hero-tab:hover { border-color: var(--zf-crimson); background: var(--zf-crimson-soft); }
.zf-hero-headline {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.12;
  color: var(--zf-ink); margin: 8px 0 16px; letter-spacing: -0.01em; text-transform: uppercase;
}
.zf-hero-headline .dot { color: var(--zf-crimson); }
.zf-hero-lead { font-size: 1.02rem; color: #3B424C; margin: 0 0 20px; }

.zf-kpi-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0;
}
.zf-kpi-box {
  background: var(--zf-white); border: 1px solid var(--zf-border);
  border-top: 3px solid var(--zf-crimson); padding: 12px 10px;
}
.zf-kpi-num { font-size: 1.35rem; font-weight: 800; color: var(--zf-ink); display: block; line-height: 1.2; }
.zf-kpi-lbl { font-size: 0.73rem; color: var(--zf-muted); font-weight: 600; text-transform: uppercase; }

.zf-moq-dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px;
  background: var(--zf-white); border: 1px solid var(--zf-border); padding: 12px 16px; font-size: 0.84rem;
}
.zf-origin-stamp {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zf-charcoal);
}
.zf-origin-bars { display: inline-flex; gap: 2px; }
.zf-origin-bars span { width: 6px; height: 14px; display: inline-block; }

/* 4-Column AUER Modular Bordered Product & Category Grid */
.zf-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.zf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.zf-card {
  background: var(--zf-white); border: 1px solid var(--zf-border);
  display: flex; flex-direction: column; min-width: 0; word-break: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.zf-card:hover { transform: translateY(-3px); box-shadow: var(--zf-shadow-hover); border-color: #C4CAD6; }
.zf-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: transparent; transition: background 0.2s ease;
}
.zf-card:hover::after { background: var(--zf-crimson); }

.zf-card-media {
  position: relative; aspect-ratio: 1 / 1; background: #FFFFFF;
  border-bottom: 1px solid #F0F2F5; overflow: hidden; padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.zf-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.28s ease; }
.zf-card:hover .zf-card-media img { transform: scale(1.04); }
.zf-badge-top {
  position: absolute; top: 10px; left: 10px; background: var(--zf-charcoal);
  color: #FFFFFF; font-size: 0.69rem; font-weight: 700; padding: 3px 8px; letter-spacing: 0.04em;
}
.zf-badge-video {
  position: absolute; top: 10px; right: 10px; background: var(--zf-crimson);
  color: #FFFFFF; font-size: 0.68rem; font-weight: 700; padding: 3px 7px;
}

.zf-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.zf-card-title { margin: 0 0 8px; font-size: 1.0rem; font-weight: 800; line-height: 1.35; color: var(--zf-ink); }
.zf-card-specs {
  margin: 8px 0 14px; padding: 10px 0; border-top: 1px solid #EEF0F4; border-bottom: 1px solid #EEF0F4;
  font-size: 0.79rem; display: grid; gap: 4px;
}
.zf-card-specs div { display: flex; justify-content: space-between; gap: 8px; }
.zf-card-specs span:first-child { color: var(--zf-muted); font-weight: 600; }
.zf-card-specs span:last-child { color: var(--zf-ink); font-weight: 700; text-align: right; }
.zf-card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* Product Detail Page (PDP) — Main Gallery + 3 Detail Photos Section */
.zf-pdp-top { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: start; }
.zf-pdp-gallery { background: var(--zf-white); border: 1px solid var(--zf-border); padding: 20px; }
.zf-pdp-main-frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-bottom: 1px solid #F0F2F5; margin-bottom: 14px; }
.zf-pdp-main-frame img { max-height: 460px; object-fit: contain; }
.sku-thumb-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sku-thumb-btn {
  border: 2px solid var(--zf-border); background: #FFFFFF; padding: 6px;
  cursor: pointer; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.sku-thumb-btn.active, .sku-thumb-btn:hover { border-color: var(--zf-crimson); }
.sku-thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

.zf-pdp-video-box { margin-top: 18px; border: 1px solid var(--zf-border); background: #0F172A; padding: 12px; color: #F8FAFC; }
.zf-pdp-video-box video { width: 100%; max-height: 340px; background: #000; }

.zf-pdp-config { background: var(--zf-stage); border: 1px solid var(--zf-border); padding: 26px; }
.zf-dpp-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--zf-green-bg);
  color: var(--zf-green); border: 1px solid #A7F3D0; padding: 4px 10px; font-size: 0.76rem; font-weight: 700;
}

.sku-detail-gallery { margin-top: 24px; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.detail-photo-card { background: var(--zf-white); border: 1px solid var(--zf-border); overflow: hidden; display: flex; flex-direction: column; }
.detail-photo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; padding: 14px; border-bottom: 1px solid var(--zf-border); }
.detail-photo-caption { padding: 18px; }
.detail-photo-caption h3 { margin: 0 0 8px; font-size: 0.98rem; color: var(--zf-ink); }
.detail-photo-caption p { margin: 0; font-size: 0.87rem; color: var(--zf-body); }

/* Engineering Tables */
.zf-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--zf-border); background: var(--zf-white); margin: 20px 0; }
.zf-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.zf-table th, .zf-table td { padding: 12px 15px; border-bottom: 1px solid var(--zf-border); text-align: left; }
.zf-table th { background: var(--zf-charcoal); color: #FFFFFF; font-size: 0.79rem; text-transform: uppercase; letter-spacing: 0.05em; }
.zf-table tr:nth-child(even) td { background: #FAFBFD; }

/* Answer Summary Box */
.zf-summary-box {
  background: var(--zf-white); border: 1px solid var(--zf-border);
  border-left: 4px solid var(--zf-crimson); padding: 22px 26px; margin: 22px 0;
}
.zf-summary-box h2, .zf-summary-box h3 { margin-top: 0; font-size: 1.08rem; color: var(--zf-ink); }

/* CBM Calculator Workbench */
.zf-cbm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--zf-white); border: 1px solid var(--zf-border); padding: 28px; }
.zf-progress-track { width: 100%; height: 14px; background: #E5E7EB; overflow: hidden; margin-top: 6px; }
.zf-progress-bar { height: 100%; background: var(--zf-crimson); transition: width 0.25s ease; }

/* FAQ Details */
.zf-faq-item { border: 1px solid var(--zf-border); background: var(--zf-white); margin-bottom: 10px; }
.zf-faq-item summary { padding: 15px 20px; font-weight: 700; color: var(--zf-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.zf-faq-item summary::after { content: "+"; color: var(--zf-crimson); font-size: 1.2rem; font-weight: 800; }
.zf-faq-item[open] summary::after { content: "−"; }
.zf-faq-body { padding: 0 20px 18px; font-size: 0.92rem; color: var(--zf-body); border-top: 1px solid #F1F3F6; padding-top: 14px; }

/* Google Maps Dual-Mode Container */
.zf-map-frame { width: 100%; height: 380px; border: 1px solid var(--zf-border); display: block; }

/* Footer */
.zf-footer { background: #181B20; color: #CBD2DC; padding: 60px 0 28px; font-size: 0.87rem; }
.zf-footer a { color: #E2E8F0; }
.zf-footer a:hover { color: #FF4D6D; }
.zf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; margin-bottom: 38px; }
.zf-footer h3 { color: #FFFFFF; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; border-bottom: 2px solid var(--zf-crimson); display: inline-block; padding-bottom: 6px; }
.zf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.zf-footer-bottom { border-top: 1px solid #2B303A; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.79rem; color: #94A3B8; }

/* Floating Dual Stack (Direct Email + WhatsApp) */
.zf-float-stack {
  position: fixed; right: 20px; bottom: 22px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.zf-float-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px;
  font-size: 0.80rem; font-weight: 800; color: #FFFFFF !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22); border-radius: 2px;
}
.zf-float-wa { background: #128C7E; }
.zf-float-mail { background: var(--zf-crimson); }

/* Quick B2B RFQ Modal */
.zf-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.72);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px;
}
.zf-modal-backdrop.open { display: flex; }
.zf-modal {
  background: var(--zf-white); max-width: 560px; width: 100%;
  border-top: 4px solid var(--zf-crimson); padding: 28px; position: relative;
  max-height: 92vh; overflow-y: auto;
}
.zf-input, .zf-textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--zf-border-strong);
  font-size: 0.92rem; font-family: inherit; border-radius: 2px; margin-top: 5px;
}
.zf-form-group { margin-bottom: 14px; }
.zf-form-group label { font-size: 0.81rem; font-weight: 700; color: var(--zf-ink); display: block; }
.zf-alert-error { display: none; background: #FEF2F2; border: 1px solid #EF4444; color: #991B1B; padding: 12px; font-size: 0.85rem; margin-top: 12px; font-weight: 600; }
.zf-alert-ok { display: none; background: #ECFDF5; border: 1px solid #10B981; color: #065F46; padding: 12px; font-size: 0.85rem; margin-top: 12px; font-weight: 600; }

/* Responsive Hardening */
@media (max-width: 1024px) {
  .zf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zf-hero-grid, .zf-pdp-top, .zf-cbm-grid, .zf-footer-grid { grid-template-columns: 1fr; }
  .detail-photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .zf-header-inner { min-height: 56px; flex-wrap: wrap; padding: 8px 0; }
  .zf-nav { gap: 12px; font-size: 0.75rem; }
  .zf-grid-4, .zf-grid-3, .zf-grid-2, .zf-kpi-strip, .zf-moq-dual { grid-template-columns: 1fr; }
  .zf-map-frame { height: 300px; }
  .zf-btn { min-height: 44px; }
}
