/*
Theme Name: HuaChi B2B 2026
Theme URI: https://huachioptical.com
Author: HuaChi Optical
Description: A lightweight English B2B showcase theme for HuaChi Optical eyewear OEM/ODM manufacturing.
Version: 1.0.0
Text Domain: huachi-b2b
*/

:root {
  --ink: #121417;
  --graphite: #2d3338;
  --muted: #687178;
  --line: #dde3df;
  --paper: #ffffff;
  --mist: #f5f7f4;
  --teal: #087766;
  --teal-dark: #075749;
  --coral: #c95f4b;
  --olive: #78815c;
  --lavender: #c9c0d8;
  --gold: #a98245;
  --shadow: 0 18px 55px rgba(18, 20, 23, .10);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: calc(100% - 40px); max-width: var(--max); margin: 0 auto; }
.container > * { min-width: 0; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 10000; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(221,227,223,.8);
  backdrop-filter: blur(12px);
}
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 22px; }
.brand-mark { width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-custom-logo { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; height: 70px; max-width: 290px; min-width: 236px; }
.custom-logo { width: auto; height: 64px; max-width: 100%; max-height: 64px; object-fit: contain; }
.brand-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.primary-nav { position: relative; display: flex; align-items: center; gap: 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; color: var(--graphite); font-size: 14px; font-weight: 700; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--mist); color: var(--ink); }
.products-mega { position: absolute; left: 50%; top: calc(100% + 14px); z-index: 90; width: min(340px, calc(100vw - 40px)); display: grid; gap: 2px; padding: 10px; border: 1px solid rgba(221,227,223,.9); border-radius: var(--radius); background: rgba(255,255,255,.98); box-shadow: 0 18px 45px rgba(18, 20, 23, .10); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.products-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.primary-nav:has(a[href*="/products/"]:hover) .products-mega, .primary-nav:has(a[href*="/products/"]:focus-visible) .products-mega, .primary-nav .products-mega:hover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.products-mega-item { min-height: 50px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 7px; color: var(--ink); }
.products-mega-item:hover { background: var(--mist); color: var(--ink); }
.products-mega-item span:first-child { display: grid; gap: 1px; min-width: 0; }
.products-mega-item strong { font-size: 14px; line-height: 1.2; }
.products-mega-item small { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.products-mega-arrow { color: var(--teal); font-size: 20px; line-height: 1; transform: translateX(-2px); transition: transform .18s ease; }
.products-mega-item:hover .products-mega-arrow { transform: translateX(1px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: currentColor; display: block; margin: 4px auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--teal); }
.btn-primary:hover { color: #fff; background: var(--teal-dark); }
.btn-secondary { color: var(--ink); background: #fff; border-color: rgba(18,20,23,.18); }
.btn-secondary:hover { color: var(--ink); border-color: var(--teal); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { color: #fff; background: #000; }
.btn-text { min-height: auto; padding: 0; border: 0; border-radius: 0; color: var(--teal); background: transparent; }
.btn-text:hover { transform: none; color: var(--teal-dark); }

.hero {
  position: relative;
  min-height: 78vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: #14201f;
  background-image: linear-gradient(90deg, rgba(18,20,23,.88), rgba(18,20,23,.68) 42%, rgba(18,20,23,.16)), var(--hero-bg, url('https://huachioptical.com/wp-content/uploads/2026/05/huachi-hero-option-03-oem-materials.jpg'));
  background-position: center;
  background-size: cover;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--paper)); }
.hero-content { position: relative; z-index: 2; width: min(690px, 100%); padding: 74px 0 118px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--coral); }
.hero h1 { margin: 0; max-width: 720px; font-size: 64px; line-height: .98; font-weight: 850; letter-spacing: 0; }
.hero p { margin: 24px 0 0; max-width: 620px; color: rgba(255,255,255,.84); font-size: 19px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.proof-item { border-left: 2px solid rgba(255,255,255,.24); padding-left: 14px; }
.proof-item strong { display: block; font-size: 26px; line-height: 1.1; }
.proof-item span { display: block; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }

.section { padding: 86px 0; }
.section-soft { background: var(--mist); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 36px; align-items: flex-end; margin-bottom: 34px; }
.section-kicker { margin: 0 0 8px; color: var(--teal); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.section-dark .section-kicker { color: #84d4c7; }
h2 { margin: 0; font-size: 40px; line-height: 1.12; letter-spacing: 0; }
.section-head p { margin: 0; max-width: 470px; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.lede { max-width: 720px; color: var(--muted); font-size: 18px; }

.series-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.series-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(18,20,23,.05); }
.series-media { height: 126px; background: var(--mist); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.series-media img { width: 100%; height: 100%; object-fit: cover; }
.series-card-content { padding: 18px; }
.series-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; }
.series-card p { margin: 0; color: var(--muted); font-size: 14px; }
.series-card .btn-text { margin-top: 18px; }

.capability-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.capability-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.capability-panel h3 { margin: 0 0 14px; font-size: 26px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; color: var(--graphite); }
.check-list li::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--teal); }
.process { display: grid; gap: 12px; }
.process-step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--mist); border-radius: var(--radius); border: 1px solid var(--line); }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 850; }
.process-step h4 { margin: 0 0 4px; font-size: 17px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.factory-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.factory-visual { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.factory-visual img { display: block; width: 100%; height: auto; }
.factory-quality-band .factory-visual { min-height: 320px; }
.factory-quality-band .factory-visual img { min-height: 320px; height: 100%; object-fit: cover; }
.factory-copy h2 { color: #fff; }
.factory-copy p { color: rgba(255,255,255,.72); }
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cert-pill { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; }

.oem-hero { padding: 76px 0 60px; background: linear-gradient(180deg, #f7faf8 0%, #fff 100%); }
.oem-hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 46px; align-items: center; }
.oem-hero-copy, .oem-hero-photo, .oem-scope-card { min-width: 0; max-width: 100%; }
.oem-hero-copy h1 { margin: 0; max-width: 650px; font-size: 54px; line-height: 1.02; letter-spacing: 0; }
.oem-hero-copy p:not(.section-kicker) { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.oem-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.oem-hero-photo { min-height: 430px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.oem-hero-photo img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.oem-quick-facts { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.oem-fact { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.oem-fact strong { display: block; font-size: 24px; line-height: 1.1; }
.oem-fact span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.oem-buyer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.oem-buyer-card { padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); background: #fff; }
.oem-buyer-card h3 { margin: 0 0 10px; font-size: 22px; }
.oem-buyer-card p { margin: 0; color: var(--muted); }
.oem-assurance { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.oem-assurance .section-kicker { color: #84d4c7; }
.oem-assurance h3 { margin: 0; font-size: 26px; }
.oem-assurance p { margin: 10px 0 0; color: rgba(255,255,255,.72); }
.oem-badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.oem-cert-pill { background: rgba(255,255,255,.06); }
.oem-scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oem-scope-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.oem-scope-card h3 { margin: 0 0 10px; font-size: 21px; }
.oem-scope-card p { margin: 0; color: var(--muted); }
.oem-rfq-panel { border-top: 4px solid var(--teal); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 34px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.metric strong { display: block; font-size: 32px; line-height: 1; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 36px; align-items: start; }
.section-head > *, .two-col > *, .factory-band > *, .about-hero-inner > *, .oem-hero-inner > *, .oem-scope-grid > * { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 12px; font-size: 24px; }
.panel p { color: var(--muted); }
.timeline { display: grid; gap: 16px; }
.timeline-item { padding-left: 22px; border-left: 2px solid var(--line); }
.timeline-item strong { display: block; color: var(--teal); }
.timeline-item p { margin: 4px 0 0; color: var(--muted); }

.product-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-thumb { aspect-ratio: 4 / 3; background: var(--mist); display: grid; place-items: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 18px; }
.product-card h3 { margin: 0 0 6px; font-size: 20px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.product-meta span { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; background: var(--mist); border-radius: 999px; color: var(--graphite); font-size: 12px; font-weight: 800; }
.archive-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 42px; align-items: start; }
.detail-media { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-media .placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 34px; text-align: center; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; background: var(--mist); color: var(--graphite); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 850; color: var(--graphite); }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; min-height: 46px; padding: 10px 12px; background: #fff; color: var(--ink); }
.form-field textarea { min-height: 138px; resize: vertical; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.notice { padding: 12px 14px; border-radius: 8px; background: #edf8f4; border: 1px solid #b9e1d5; color: var(--teal-dark); font-weight: 800; margin-bottom: 18px; }
.contact-methods { display: grid; gap: 12px; }
.contact-method { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-method strong { display: block; }
.contact-method span { color: var(--muted); }

.about-hero { padding: 76px 0 56px; background: linear-gradient(180deg, #f7faf8 0%, #fff 100%); }
.about-hero-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 46px; align-items: center; }
.about-hero-copy h1 { margin: 0; max-width: 620px; font-size: 54px; line-height: 1.02; letter-spacing: 0; }
.about-hero-copy p:not(.section-kicker) { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.about-hero-photo { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.about-hero-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

.cta { padding: 54px 0; background: var(--teal); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: 34px; }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,.76); }
.site-footer { background: #101214; color: #fff; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, .7fr)); gap: 34px; }
.footer-grid h3, .footer-grid h4 { margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.7); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.56); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1080px) {
  .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .brand-custom-logo { grid-column: 1; grid-row: 1; max-width: 100%; }
  .custom-logo-link { height: 56px; min-width: 190px; max-width: min(210px, calc(100vw - 96px)); }
  .custom-logo { height: 50px; max-height: 50px; }
  .menu-toggle { display: inline-block; }
  .primary-nav { grid-column: 1 / -1; position: fixed; inset: 72px 0 auto; width: 100vw; max-width: 100vw; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 20px 20px; display: none; }
  body.menu-open .primary-nav { display: block; }
  .primary-nav ul { display: grid; gap: 2px; }
  .primary-nav a { width: 100%; }
  .products-mega { position: static; width: 100%; display: grid; gap: 4px; padding: 10px 0 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .products-mega::before { display: none; }
  .products-mega-item { min-height: 48px; border: 1px solid var(--line); }
  .header-actions .btn { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .hero { min-height: 680px; background-position: 58% center; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 17px; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .section-head, .cta-inner { display: grid; align-items: start; }
  h2 { font-size: 32px; }
  .capability-grid, .factory-band, .two-col, .detail-layout, .about-hero-inner, .oem-hero-inner { grid-template-columns: 1fr; }
  .about-hero { padding-top: 54px; }
  .about-hero-copy h1 { font-size: 42px; }
  .oem-hero { padding-top: 54px; }
  .oem-hero-copy h1 { font-size: 42px; }
  .oem-quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oem-buyer-grid { grid-template-columns: 1fr; }
  .oem-assurance { grid-template-columns: 1fr; }
  .oem-badge-row { justify-content: flex-start; }
  .oem-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .brand-logo-wrap { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-logo { width: 34px; height: 34px; }
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header, main, section, .cta, .site-footer { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .container { width: calc(100% - 28px); max-width: calc(100vw - 28px); }
  .header-inner { width: calc(100vw - 28px); max-width: calc(100vw - 28px); grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-custom-logo { min-width: 0; overflow: hidden; }
  .custom-logo-link { height: 52px; min-width: 0; max-width: calc(100vw - 92px); }
  .custom-logo { height: 46px; max-height: 46px; }
  .header-actions { min-width: 42px; width: 42px; margin-left: 0; }
  .menu-toggle { display: inline-block; width: 42px; min-width: 42px; flex: 0 0 42px; border-color: rgba(18,20,23,.32); background: #fff; }
  .menu-toggle span { background: var(--ink); }

  .hero { min-height: 660px; background-position: 62% center; }
  .hero-content { padding: 56px 0 102px; }
  .hero h1 { font-size: 36px; }
  .about-hero-copy h1 { font-size: 34px; }
  .about-hero-photo, .about-hero-photo img { min-height: 280px; }
  .oem-hero-copy h1 { font-size: 34px; }
  .oem-hero-inner, .oem-hero-copy, .oem-hero-photo, .oem-hero-copy h1, .oem-hero-copy p, .section-head, .section-head h2, .section-head p, .oem-scope-card, .oem-scope-card h3, .oem-scope-card p { max-width: 100%; overflow-wrap: break-word; word-break: normal; }
  .oem-hero-copy h1, .oem-hero-copy p { width: auto; }
  .oem-hero-photo, .oem-hero-photo img { min-height: 280px; }
  .oem-hero-actions { display: grid; }
  .oem-hero-actions .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .hero-actions { display: grid; }
  .hero-proof, .series-grid, .metrics, .product-archive-grid, .form-grid, .footer-grid, .oem-scope-grid, .oem-quick-facts { grid-template-columns: 1fr; }
  .proof-item strong { font-size: 23px; }
  .section { padding: 52px 0; }
  h2 { font-size: 28px; }
  .capability-panel, .panel { padding: 22px; }
  .footer-bottom { display: grid; }
}

.series-card-link { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; color: inherit; }
.series-card-link:hover { color: inherit; }
.series-card-link:hover .btn-text { color: var(--teal-dark); }
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination a, .pagination span { min-height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--graphite); font-weight: 800; }
.pagination .current, .pagination a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.product-detail-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.product-gallery-vertical { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.product-gallery-item { margin: 0; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--mist); box-shadow: 0 6px 20px rgba(18,20,23,.05); }
.product-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-copy { min-width: 0; }
.product-description { margin: 18px 0 24px; color: var(--muted); }
@media (max-width: 620px) {
  .product-gallery-vertical { grid-template-columns: 1fr; }
}

.factory-page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background-color: #14201f;
  background-image: linear-gradient(90deg, rgba(18,20,23,.84), rgba(18,20,23,.58) 48%, rgba(18,20,23,.18)), var(--factory-hero-bg, url('https://huachioptical.com/wp-content/uploads/2026/05/huachi-hero-option-03-oem-materials.jpg'));
  background-position: center;
  background-size: cover;
}
.factory-page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--paper)); }
.factory-page-hero-content { position: relative; z-index: 2; padding: 92px 0 118px; }
.factory-page-hero .section-kicker { color: #84d4c7; }
.factory-page-hero h1 { margin: 0; max-width: 760px; font-size: 54px; line-height: 1.02; letter-spacing: 0; }
.factory-page-hero p { max-width: 700px; margin: 22px 0 0; color: rgba(255,255,255,.82); font-size: 18px; }
.factory-hero-metrics { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 800px; }
.factory-hero-metric { min-height: 96px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(18,20,23,.36); backdrop-filter: blur(8px); }
.factory-hero-metric strong { display: block; font-size: 28px; line-height: 1.05; }
.factory-hero-metric span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; }
.factory-gallery-section { padding-top: 70px; }
.factory-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.factory-photo-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(18,20,23,.05); }
.factory-photo-card img, .factory-photo-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.factory-photo-placeholder { display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #eef3f0, #f7f4ef); color: var(--graphite); text-align: center; }
.factory-photo-placeholder span { max-width: 180px; font-weight: 850; }
.factory-photo-card figcaption { padding: 14px 16px; color: var(--graphite); font-size: 14px; font-weight: 850; }
.factory-quality-band { padding-top: 74px; padding-bottom: 74px; }
@media (max-width: 900px) {
  .factory-page-hero { min-height: 500px; }
  .factory-page-hero h1 { font-size: 42px; }
  .factory-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .factory-page-hero { min-height: 560px; background-position: 58% center; }
  .factory-page-hero-content { padding: 68px 0 100px; }
  .factory-page-hero h1 { font-size: 34px; }
  .factory-page-hero p { font-size: 16px; }
  .factory-hero-metrics, .factory-photo-grid { grid-template-columns: 1fr; }
  .factory-hero-metric { min-height: auto; }
}
