/* ===========================================================
   Shaanxi Feinuotai Metal Material Co., Ltd.
   Global Stylesheet
   Industrial, clean, professional design
   =========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a3a5c;       /* deep industrial blue */
  --color-primary-dark: #0f2440;
  --color-primary-light: #2a5885;
  --color-accent: #c8973a;         /* warm gold accent */
  --color-accent-dark: #a57a29;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #222831;
  --color-text-muted: #5a6470;
  --color-border: #dfe4ea;
  --font-heading: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1200px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--color-text-muted); }

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-primary);
  color: #fff;
}
.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img {
  height: 48px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.logo-text-small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Main Nav (desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav > li {
  position: relative;
}
.main-nav > li > a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--color-accent);
}

/* Dropdown */
.has-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.75rem;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  padding: 0.5rem 0;
}
.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
}
.dropdown li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.dropdown .dropdown-heading {
  padding: 0.7rem 1.1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mobile menu button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}
/* Hero background image with dark overlay */
.home-hero-bg {
  background-image: linear-gradient(135deg, rgba(15,36,64,0.88) 0%, rgba(26,58,92,0.82) 55%, rgba(42,88,133,0.75) 100%), url('../images/hero-industrial.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,151,58,0.18) 0, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.08) 0, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}
.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(200,151,58,0.2);
  border: 1px solid rgba(200,151,58,0.5);
  color: #f3c56a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ---------- Section common ---------- */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}
.section-header p {
  max-width: 680px;
  margin: 1rem auto 0;
}

/* ---------- Product Categories Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* Four-up variant, used only by the Plates & Sheets category page.
   Placed after the base rule so it wins above 1024px; the existing
   1024px/768px breakpoints below override it to 2 and 1 column. */
.product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.product-card-media {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  overflow: hidden;
  position: relative;
}
.product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.product-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.product-card .card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.product-card .card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.product-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ---------- Manufacturing Capabilities ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.capability-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all var(--transition);
}
.capability-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.capability-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.capability-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.capability-content p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- CTA / Inquiry Band ---------- */
.inquiry-band {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.inquiry-band h2 {
  color: #fff;
  margin-bottom: 0.7rem;
}
.inquiry-band p {
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

/* ---------- Page Hero (for inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 3.25rem 0;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 0.4rem;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumbs a {
  color: rgba(255,255,255,0.9);
}
.breadcrumbs a:hover {
  color: var(--color-accent);
}

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col li {
  margin-bottom: 0.45rem;
}
.footer-col a {
  color: rgba(255,255,255,0.75);
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-placeholder {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(200,151,58,0.2);
  color: #f3c56a;
  border: 1px dashed rgba(200,151,58,0.6);
  border-radius: 2px;
  font-size: 0.82rem;
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Placeholder badge for unfinished content ---------- */
.placeholder-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #fff3cd;
  border: 1px solid #f0c36d;
  color: #856404;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open {
    max-height: 1200px;
  }
  .main-nav > li > a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    display: none;
  }
  .has-dropdown.open > .dropdown {
    display: block;
  }
  .dropdown li a {
    padding: 0.6rem 1.5rem 0.6rem 2.2rem;
    font-size: 0.85rem;
  }
  .logo-img {
    height: 36px;
  }
  .logo-text-small {
    display: none;
  }

  .hero {
    padding: 3.5rem 0;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Product detail: FAQ & documentation ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.9rem;
}
.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: var(--color-primary);
}
.faq-item p {
  margin: 0;
  font-size: 0.94rem;
  color: #5b6470;
}
.doc-note {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  font-size: 0.94rem;
  color: #5b6470;
}

/* ---------- Product hero image on detail pages ---------- */
.product-detail-hero {
  max-width: 820px;
  margin: 0 auto 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.product-detail-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .product-detail-hero img { height: 200px; }
}

/* ---------- Country combobox (contact form) ---------- */
.form-group input[list] {
  width: 100%;
}

/* ===========================================================
   About page (redesign) — About-specific classes only.
   Appended at the end of the stylesheet; shared rules untouched.
   =========================================================== */

/* Anchor offset for the sticky header (72px) */
#overview, #inventory, #processing, #how-we-work,
#quality, #team, #contact {
  scroll-margin-top: 92px;
}

/* --- Unified image placeholder (CSS only, no image files) --- */
.about-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(135deg, #22384c 0%, #16283a 60%, #101d2b 100%);
}
.about-ph::before {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-right: 0.6rem;
  border: 2px solid rgba(255,255,255,0.24);
  border-radius: 3px;
  background:
    radial-gradient(circle at 74% 26%, rgba(255,255,255,0.3) 0 3px, transparent 4px),
    linear-gradient(135deg, transparent 52%, rgba(255,255,255,0.22) 53%, rgba(255,255,255,0.22) 60%, transparent 61%);
}
.about-ph span {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

/* --- 1. Hero --- */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 460px;
  padding: 4.5rem 0;
  color: #fff;
  background: linear-gradient(135deg, #0b1b2c 0%, #12283d 55%, #17334f 100%);
}
.about-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3bb70;
}
.about-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}
.about-hero h1 {
  color: #fff;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
}
.about-hero-sub {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.about-hero-lead {
  max-width: 520px;
  margin-bottom: 1.8rem;
  color: rgba(255,255,255,0.72);
}
.about-hero-copy {
  max-width: 540px;
}
/* The media panel sits behind the copy, bleeding past the container to the
   right edge and fading out on its left and top/bottom edges so that it reads
   as part of the background rather than as a framed image. */
.about-hero-media {
  position: absolute;
  top: -8%;
  right: 0;
  z-index: 1;
  width: 54%;
  height: 116%;
  border-radius: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, #24405a 0%, #1a3348 55%, #122636 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 22%, #000 55%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 22%, #000 55%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.about-hero-media::before {
  display: none;
}
.about-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

/* --- 2. Quick navigation --- */
.about-quicknav {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.about-quicknav-inner {
  display: flex;
  gap: 2.5rem;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about-quicknav-inner::-webkit-scrollbar {
  display: none;
}
.about-quicknav a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.about-quicknav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* --- 3. Company overview prose --- */
.about-prose {
  max-width: 1120px;
  margin: 0 auto;
}
.about-prose p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
  color: var(--color-text-muted);
}
.about-prose p:last-child {
  margin-bottom: 0;
}
.about-prose--tight p {
  margin-bottom: 0.9rem;
}

/* --- 4. Inventory split --- */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}
.about-block-head h2 {
  margin-bottom: 1.15rem;
}
.about-split-copy p {
  font-size: 0.98rem;
  line-height: 1.8;
}
.about-btn-row {
  margin-top: 1.5rem;
}
.about-split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-inv-item {
  aspect-ratio: 5 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.about-inv-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-inv-item--top img {
  object-position: center 25%;
}

/* --- 5. Processing capabilities (text-only, two panels) --- */
.about-proc-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.2rem;
}
.about-proc-panel {
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}
.about-proc-panel--in {
  border-top: 4px solid var(--color-primary);
}
.about-proc-panel--out {
  background: var(--color-bg-alt);
  border-top: 4px solid var(--color-accent);
}
.about-proc-panel h3 {
  font-size: 1.12rem;
  margin-bottom: 0.9rem;
}
.about-proc-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.about-proc-items li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.about-proc-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.about-proc-note {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 1.1rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* --- 8. Coordination responsibilities (inside external processing) --- */
.about-proc-panel--out .about-proc-note {
  margin-top: 0.85rem;
}
.about-resp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.8rem;
  counter-reset: resp;
}
.about-resp span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
}
.about-resp span::before {
  counter-increment: resp;
  content: counter(resp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26,58,92,0.1);
  font-size: 0.68rem;
  line-height: 1;
}

/* --- 6. How we work (five equal-height cards) --- */
.about-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.about-step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.35rem 1.6rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 4px;
}
.about-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1.05rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
}
.about-step-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.55rem;
}
.about-step-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.about-steps-note {
  margin: 1.6rem 0 0;
  max-width: 760px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- 7. Quality, equipment & documentation (image gallery) --- */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  /* Keep placeholders at their own 4:3 size; document cards grow taller. */
  align-items: start;
}
.about-gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.about-gallery-item--doc {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
}
.about-gallery-item--doc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- 11. Key contacts --- */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.about-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about-team-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.about-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  border-radius: 6px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(135deg, #22384c 0%, #16283a 60%, #101d2b 100%);
}
.about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-team-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.about-team-role {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 2.3rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-accent);
}
.about-team-info {
  width: 100%;
  margin-bottom: 1rem;
}
.about-team-line {
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  word-break: break-word;
}
.about-team-line a {
  color: var(--color-primary);
}
.about-team-line a:hover {
  color: var(--color-accent);
}
.about-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-wa:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* --- 11. Contact CTA --- */
.about-cta {
  padding: 4rem 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-dark), #123252);
}
.about-cta h2 {
  max-width: 900px;
  margin: 0 auto 0.9rem;
  color: #fff;
}
.about-cta p {
  max-width: 820px;
  margin: 0 auto 0.7rem;
  color: rgba(255,255,255,0.78);
}
.about-cta h3 {
  margin: 1.7rem 0 0.35rem;
  font-size: 1.02rem;
  color: #fff;
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.about-btn-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.about-btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

/* --- 12. Back to top --- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: rgba(15,36,64,0.88);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  transition: background var(--transition), transform var(--transition);
}
.back-to-top:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* --- About responsive --- */
@media (max-width: 1024px) {
  .about-hero-copy {
    max-width: 470px;
  }
  .about-hero-media {
    width: 52%;
  }
  .about-quicknav-inner {
    gap: 1.4rem;
  }
  .about-quicknav a {
    font-size: 0.75rem;
  }
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .about-hero {
    display: block;
    min-height: 0;
    padding: 3rem 0 0;
  }
  /* Stacked layout: the media panel flows below the copy and fades
     vertically at its top and bottom edges. */
  .about-hero-media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 240px;
    margin-top: 1.8rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 14%, #000 34%, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 14%, #000 34%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .about-hero-actions {
    margin-bottom: 0;
  }
  .about-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }
  .about-proc-panels {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-proc-panel {
    padding: 1.5rem 1.25rem;
  }
  .about-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .about-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .about-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-team-grid {
    grid-template-columns: 1fr;
  }
  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Phase 2: unified hero media placeholder + homepage product rows
   ============================================================ */

/* Hero media placeholder for non-home pages without a dedicated image */
.about-hero-media-ph {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, #24405a 0%, #1a3348 55%, #122636 100%);
}

/* ---------- Homepage hero: widen text area ---------- */
.hero .hero-inner {
  max-width: 1000px;
}
.hero .hero-tag {
  margin-bottom: 1rem;
}
.hero h1 {
  margin-bottom: 0.85rem;
  line-height: 1.18;
}
.hero .hero-lead {
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

/* ---------- Homepage product rows ---------- */
.hp-products .section-header {
  margin-bottom: 2rem;
}
.hp-product-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.1rem;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  overflow: hidden;
}
.hp-row-main {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #f5f8fc;
  border-right: 1px solid #e3e8ee;
}
.hp-row-main img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.hp-row-main h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.hp-row-main p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #5b6470;
  margin-bottom: auto;
}
.hp-row-main .hp-row-link {
  margin-top: 0.8rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-primary);
}
.hp-row-scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hp-row-sub {
  flex: 1;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.hp-row-sub::-webkit-scrollbar { height: 6px; }
.hp-row-sub::-webkit-scrollbar-thumb { background: #c5cedb; border-radius: 3px; }
.hp-sub-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 230px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef1f5;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.hp-sub-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
}
.hp-sub-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hp-sub-body h4 {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}
.hp-sub-intro {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5b6470;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  margin-bottom: 0.5rem;
}
.hp-sub-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}
.hp-sub-card.is-empty {
  background: #f5f7fa;
  border: 1px dashed #d0d7de;
}
.hp-sub-card.is-empty .hp-sub-body {
  align-items: center;
  justify-content: center;
  color: #aab2bd;
  font-size: 0.8rem;
  flex: 1;
}
.hp-row-ctrl {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0 1rem 0.8rem;
}
.hp-row-ctrl button {
  width: 30px;
  height: 30px;
  border: 1px solid #d0d7de;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 0.9rem;
}
.hp-row-ctrl button:hover { background: #eef2f7; }
.hp-products-foot {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.resource-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 1.5rem;
}
.resource-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.resource-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5b6470;
  margin-bottom: 1rem;
}
.resource-status {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  background: #eef2f7;
  color: #6c7684;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.resource-status--live {
  background: var(--color-primary);
  color: #fff;
}
.resource-status--live a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.resource-status--live a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hp-product-row { flex-direction: column; }
  .hp-row-main {
    border-right: none;
    border-bottom: 1px solid #e3e8ee;
    flex: 1 1 auto;
  }
  .hp-row-main img { height: 170px; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Additions — Phase 3 homepage + products refinements
   =========================================================== */

/* --- Products page: View More / View Less for category intro --- */
.hp-row-intro-wrap {
  overflow: hidden;
  transition: max-height 0.25s ease;
  max-height: 3.9rem;        /* ~3 lines at 0.84rem × 1.55 */
}
.hp-row-intro-wrap.is-open {
  max-height: 40rem;         /* effectively unlimited */
}
.hp-row-main .hp-row-intro {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #5b6470;
  margin: 0;
}
.hp-row-vm {
  margin-top: 0.35rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.hp-row-vm:hover { text-decoration: underline; }

/* --- Homepage Resources Coming Soon (4-column cards) --- */
.home-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.home-resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.4rem 1.55rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.home-resource-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.home-resource-cat {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  background: rgba(26,58,92,0.08);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  align-self: flex-start;
}
.home-resource-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.home-resource-soon {
  display: inline-block;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.home-resources-foot {
  margin-top: 2.5rem;
  text-align: center;
}

/* --- Homepage About module (left text + right capability cards) --- */
.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.75rem;
  margin-top: 2.2rem;
  align-items: start;
}
.home-about-text {
  position: sticky;
  top: 80px;
}
.home-about-text .home-about-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.home-about-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}
.home-about-text .btn {
  margin-top: 0.5rem;
}
.home-about-cards {
  margin-top: 0;
}

/* --- About icon number styling override (01, 02...) --- */
.capability-icon {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* --- Responsive breakpoints --- */
@media (max-width: 1100px) {
  .home-resources-grid { grid-template-columns: repeat(2, 1fr); }
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-about-text {
    position: static;
  }
}
@media (max-width: 768px) {
  .home-resources-grid { grid-template-columns: 1fr; }
}

/* --- Homepage About: compact capability card override --- */
.home-about-cards.capabilities-grid {
  gap: 1.15rem;
}
.home-about-cards .capability-item {
  padding: 1.1rem 1.25rem;
  gap: 0.9rem;
}
.home-about-cards .capability-icon {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  border-radius: 3px;
}
.home-about-cards .capability-content h3 {
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}
.home-about-cards .capability-content p {
  font-size: 0.85rem;
  line-height: 1.55;
}
.home-about-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

/* ============ Titanium Plates & Sheets page: tech data section ============ */
.tech-h {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.tech-note {
  font-size: 0.82rem;
  color: #6b7684;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.tech-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
.tech-table--wide { min-width: 680px; }
.tech-table th,
.tech-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.tech-table thead th {
  background: #f4f6f8;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.tech-table tbody tr:last-child td { border-bottom: none; }
.tech-table tbody tr:hover { background: #f9fafb; }
.tech-table td:first-child { font-weight: 500; color: var(--color-primary-dark); }

/* Stock availability cards */
.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.stock-card {
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.stock-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.stock-card--yes {
  background: #eef6ef;
  border-color: #c3dcc6;
}
.stock-card--yes h4 { color: #2d6a35; }
.stock-card--no {
  background: #fef6ee;
  border-color: #e6cfb0;
}
.stock-card--no h4 { color: #8a4b12; }
.stock-note {
  font-size: 0.82rem;
  color: #5b6470;
  font-style: italic;
  margin-top: 0.75rem;
}

/* Specification cards grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.spec-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}
.spec-card h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0 0 0.3rem;
}
.spec-role {
  font-size: 0.8rem;
  color: var(--color-accent, #c97c3a);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Note boxes */
.note-box {
  max-width: 820px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #f4f6f8;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #3d4653;
}
.note-box p:first-child { margin-top: 0; }
.note-box p:last-child { margin-bottom: 0; }
.note-box--caution {
  background: #fef6ee;
  border-left-color: #c97c3a;
}

/* Inquiry hint */
.inquiry-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* 3-column product card variant */
.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Tech tables inside capability panels (no) — not used */

/* Responsive: tech data section */
@media (max-width: 768px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid--3 { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr; }
  .product-grid--3 { grid-template-columns: 1fr; }
  .tech-h { font-size: 1.05rem; }
}

/* ============ Sub-Products horizontal scroll (plate sheet page) ============ */
.sub-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0.5rem 0 1rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.sub-scroll::-webkit-scrollbar { height: 6px; }
.sub-scroll::-webkit-scrollbar-thumb {
  background: #c5cedb;
  border-radius: 3px;
}
.sub-scroll::-webkit-scrollbar-track { background: transparent; }
/* Desktop: 4 cards visible (3 gaps of 1rem) */
.sub-scroll-card {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sub-scroll-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.sub-scroll-card-media {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  position: relative;
  overflow: hidden;
}
.sub-scroll-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sub-scroll-card-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sub-scroll-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary-dark);
}
.sub-scroll-card-body p {
  font-size: 0.88rem;
  color: #5b6470;
  line-height: 1.55;
  margin-bottom: 0.75rem;
  flex: 1;
}
.sub-scroll-card .card-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* sub-scroll manual prev/next controls (inserted by sub-scroll-carousel.js) */
.sub-scroll-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem auto 0;
}
.sub-scroll-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.sub-scroll-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.sub-scroll-btn:active {
  transform: scale(0.95);
}

/* spec-grid: 3-column variant (for 6 spec cards on desktop) */
.spec-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .spec-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: 2 cards visible (1 gap of 1rem) */
@media (max-width: 1024px) {
  .sub-scroll-card {
    flex: 0 0 calc((100% - 1rem) / 2);
    min-width: 0;
  }
}
/* Mobile: 1 card visible */
@media (max-width: 768px) {
  .sub-scroll-card {
    flex: 0 0 calc(100% - 2rem);
    min-width: calc(100% - 2rem);
  }
  .sub-scroll-card-media { height: 160px; }
}

/* ============ Products main catalog — 3-column grid ============ */
/* Used by products.html + pagination pages (NOT category pages, which keep .sub-scroll) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0.5rem 0;
}
.products-grid .sub-scroll-card {
  /* Reset flex sizing so CSS Grid takes over */
  flex: initial;
  width: auto;
  min-width: 0;
}
.products-grid .sub-scroll-card-media {
  height: 160px;
}
.products-grid .sub-scroll-card-body h3 {
  font-size: 1rem;
}
.products-grid .sub-scroll-card-body p {
  font-size: 0.84rem;
  line-height: 1.5;
  /* Truncate long descriptions to 2 lines so cards don't vary wildly in height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .sub-scroll-card-media { height: 150px; }
}


/* ===========================================================
   === WORKSTREAM 1&2 增量合并 — 来自 CURRENT style.css ===
   =========================================================== */

/* ===========================================================
   Product Slider — 全站统一产品卡片轮播组件
   与静态 .product-grid 完全隔离，通过 .product-slider 类启用
   =========================================================== */

/* 1. 轮播容器：覆盖 product-grid 默认 grid 布局，改用 flex + scroll-snap */
.product-slider {
  display: flex !important;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 0;
}
.product-slider::-webkit-scrollbar { display: none; width: 0; height: 0; }
.product-slider:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* 2. 轮播中卡片：flex 不压缩，scroll-snap 对齐 */
.product-slider > .product-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* 3. 响应式卡片宽度 —— 与 product-grid 断点对齐
   单一真源：CSS 控制卡片宽度，JS 读取实际 offsetWidth 做计算 */
@media (min-width: 1200px) {
  .product-slider > .product-card { width: calc((100% - 3rem) / 3); }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .product-slider > .product-card { width: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 768px) {
  .product-slider > .product-card { width: 100%; }
}

/* 4. 轮播控件容器 */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.slider-btn:hover:not(:disabled) { background: var(--color-accent); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.slider-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--color-accent); transform: scale(1.3); }
.slider-dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* 5. 拖拽时禁止文本选中，防止误点卡片内链接 */
.product-slider.is-dragging { user-select: none; cursor: grabbing !important; }
.product-slider.is-dragging .product-card { pointer-events: none; }

/* 6. reduced-motion 降级：平滑滚动改为即时 */
@media (prefers-reduced-motion: reduce) {
  .product-slider { scroll-behavior: auto; }
}

/* ===========================================================
   新模块样式（ASTM B348 技术数据、规格卡片、出口合规等）
   =========================================================== */

/* --- 技术数据表格 --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}
.data-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.data-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: #f8fafb; }
.data-table tr:hover td { background: #eef3f8; }
.data-table td:first-child { font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.data-table .note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  display: block;
  margin-top: 0.3rem;
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

/* --- 规格/合金卡片网格（三列） --- */
.spec-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 1024px) {
  .spec-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .spec-card-grid { grid-template-columns: 1fr; }
}
.spec-card-grid .spec-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: all var(--transition);
}
.spec-card-grid .spec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.spec-card-grid .spec-card h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.spec-card-grid .spec-card .spec-code {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.spec-card-grid .spec-card p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- 出口合规高亮区（深色工业蓝背景） --- */
.export-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 3.5rem 0;
}
.export-band h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.export-band p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  max-width: 820px;
}
.export-band ul {
  color: rgba(255,255,255,0.9);
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  max-width: 820px;
}
.export-band li {
  margin-bottom: 0.4rem;
  list-style: disc;
}
.export-band .export-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  transition: all var(--transition);
  text-transform: none;
}
.export-band .export-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* --- 增值服务区块 --- */
.value-added-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .value-added-grid { grid-template-columns: 1fr; }
}
.value-item {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
}
.value-item h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.value-item p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
}
.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #795548;
}

/* --- 尺寸供应范围卡片 --- */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.dim-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem;
}
.dim-card h4 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}
.dim-card .dim-range {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.dim-card .dim-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* --- 返回大类页链接 --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.back-link:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ============ Resources Article Pages ============ */
.article-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 3.5rem 0 3rem;
  color: #fff;
  text-align: left;
}
.article-hero .container { max-width: 860px; }
.article-hero-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.article-hero h1 {
  font-size: 2.15rem;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}
.article-hero .article-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.article-body .back-to-resources {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.article-body .back-to-resources:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2b3440;
  margin: 0 0 1.1rem;
}
.article-body p:first-of-type { font-size: 1.03rem; }

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--color-primary);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 2rem 0 0.75rem;
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.article-body a:hover { color: var(--color-accent); }

.article-body ul, .article-body ol {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.35rem;
}
.article-body li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #2b3440;
  margin-bottom: 0.45rem;
}
.article-body ol li { list-style: decimal; }
.article-body ul li { list-style: disc; }

.article-body strong { font-weight: 700; color: var(--color-primary-dark); }
.article-body em { font-style: italic; color: #4b5563; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0 1.5rem;
}

/* Article tables — responsive wrapper */
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 520px;
}
.article-table--narrow { min-width: 420px; }
.article-table th,
.article-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.55;
}
.article-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 600; color: var(--color-primary-dark); }
.article-table p:first-child { margin-top: 0; }

/* Article note / callout boxes */
.article-note {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--color-primary);
  background: #f4f7fb;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3a4350;
  margin: 1.5rem 0;
}
.article-note--caution {
  border-left-color: #c97c3a;
  background: #fef6ee;
}
.article-note p:first-child { margin-top: 0; }
.article-note p:last-child { margin-bottom: 0; }
.article-note strong { color: var(--color-primary); }

/* Article sections: Related, CTA, Footer nav */
.article-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.article-section h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  font-size: 1.25rem;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.article-related-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.article-related-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-related-card h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.article-related-card .cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 0.45rem;
}
.article-related-card.draft {
  opacity: 0.5;
  pointer-events: none;
  background: #f9fafb;
}
.article-related-card.draft .cat-tag { color: #9ca3af; }
.article-related-card.draft::after {
  content: "Coming Soon";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: italic;
}

/* Related product mini grid */
.article-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.article-products a {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
}
.article-products a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Article-specific breakpoints */
@media (max-width: 768px) {
  .article-hero { padding: 2.5rem 0 2rem; }
  .article-hero h1 { font-size: 1.65rem; }
  .article-body { padding: 2rem 1rem; }
  .article-body h2 { font-size: 1.3rem; margin-top: 2rem; }
  .article-body h3 { font-size: 1.08rem; margin-top: 1.5rem; }
  .article-table { min-width: 480px; font-size: 0.84rem; }
  .article-table th,
  .article-table td { padding: 0.55rem 0.6rem; }
}
@media (max-width: 480px) {
  .article-hero h1 { font-size: 1.4rem; line-height: 1.25; }
  .article-body p { font-size: 0.96rem; line-height: 1.7; }
  .article-table { min-width: 440px; }
}

/* ============ Modern Pagination ============ */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
}
.pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pagination .page-num:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.pagination .page-num--current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  cursor: default;
  font-weight: 700;
}
.pagination .page-num--current:hover {
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: none;
}
.pagination .page-num--prev,
.pagination .page-num--next {
  font-weight: 600;
}
.pagination .page-num--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 600px) {
  .pagination { justify-content: center; gap: 0.35rem; }
  .pagination .page-num { min-width: 36px; height: 36px; font-size: 0.82rem; padding: 0 0.65rem; }
}

/* ============ Resources Category Cards (image + structured) ============ */
.resource-category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.resource-category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.resource-category-card .rc-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.resource-category-card .rc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.resource-category-card:hover .rc-thumb img {
  transform: scale(1.04);
}
.resource-category-card .rc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 0.9rem;
}
.resource-category-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}
.resource-category-card .rc-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-category-card .rc-latest {
  font-size: 0.78rem;
  color: var(--color-primary-light);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-category-card .rc-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resource-category-card .rc-footer:hover { color: var(--color-primary-dark); }

/* ============ Resources Article Cards (image + structured) ============ */
.resource-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.resource-article-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.resource-article-card .ra-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.resource-article-card .ra-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.resource-article-card:hover .ra-thumb img {
  transform: scale(1.04);
}
.resource-article-card .ra-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.05rem 0.85rem;
}
.resource-article-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-article-card .ra-excerpt {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-article-card .ra-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resource-article-card .ra-footer:hover { color: var(--color-primary-dark); }

/* ==========================================================================
   Product Gallery — product detail page
   Desktop: images (left) + info (right) | Mobile: stacked
   ========================================================================== */

.product-gallery {
  padding: 2.5rem 0 2rem;
  background: var(--color-bg);
}
.product-gallery .pg-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* --- Image column --- */
.pg-images {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pg-main {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt, #f4f6f8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--color-border, #e1e6ec);
}
.pg-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}
.pg-main:hover img {
  transform: scale(1.02);
}
.pg-main::after {
  content: "🔍 Click to zoom";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.pg-main:hover::after {
  opacity: 1;
}
.pg-main.pg-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: var(--color-text-muted, #8b98a7);
  font-size: 0.9rem;
}
.pg-main.pg-empty::after {
  display: none;
}

/* --- Thumbnail strip --- */
.pg-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.pg-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-bg-alt, #f4f6f8);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.pg-thumb:hover { opacity: 0.8; }
.pg-thumb.pg-active {
  border-color: var(--color-primary, #1a3a5c);
}
.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-thumbs::-webkit-scrollbar { height: 4px; }
.pg-thumbs::-webkit-scrollbar-track { background: transparent; }
.pg-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border, #e1e6ec);
  border-radius: 2px;
}

/* --- Info column --- */
.pg-info {
  padding-top: 0.5rem;
}
.pg-info .pg-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary-light, #3a6a9c);
  margin-bottom: 0.55rem;
}
.pg-info h1 {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text, #1a2430);
  margin-bottom: 0.85rem;
}
.pg-info .pg-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted, #5b6470);
  margin-bottom: 1.4rem;
}
.pg-info .pg-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Lightbox --- */
.pg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pg-lightbox.pg-lb-open {
  opacity: 1;
  pointer-events: auto;
}
.pg-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pg-lb-close,
.pg-lb-prev,
.pg-lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  backdrop-filter: blur(4px);
}
.pg-lb-close:hover,
.pg-lb-prev:hover,
.pg-lb-next:hover {
  background: rgba(255,255,255,0.28);
}
.pg-lb-close {
  top: 20px;
  right: 20px;
  font-size: 1.1rem;
}
.pg-lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.pg-lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.pg-lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-gallery .pg-container {
    gap: 2rem;
  }
  .pg-info h1 { font-size: 1.65rem; }
}
@media (max-width: 768px) {
  .product-gallery { padding: 1.75rem 0 1.25rem; }
  .product-gallery .pg-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pg-main { aspect-ratio: 16 / 9; }
  .pg-info { padding-top: 0; }
  .pg-info h1 { font-size: 1.45rem; }
  .pg-thumb { width: 60px; height: 40px; }
  .pg-lb-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .pg-lb-prev { left: 10px; }
  .pg-lb-next { right: 10px; }
}
@media (max-width: 480px) {
  .pg-info h1 { font-size: 1.3rem; }
  .pg-main { aspect-ratio: 4 / 3; }
}

/* ===========================================================
   WhatsApp Floating Button
   =========================================================== */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 20px;
  z-index: 950;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}
.wa-float svg { display: block; }
@media (max-width: 768px) {
  .wa-float {
    bottom: 76px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

/* ===========================================================
   Why Choose Us (homepage)
   =========================================================== */
.wcu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.wcu-grid.wcu-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.wcu-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.6rem 1.4rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.wcu-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.wcu-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}
.wcu-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: var(--color-primary-dark);
}
.wcu-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 1200px) {
  .wcu-grid.wcu-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .wcu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wcu-grid, .wcu-grid.wcu-grid-5 { grid-template-columns: 1fr; }
}

/* ===========================================================
   Who We Serve (homepage)
   =========================================================== */
.wws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.wws-grid.wws-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.wws-item {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.wws-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.wws-item h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}
.wws-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1200px) {
  .wws-grid.wws-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .wws-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wws-grid, .wws-grid.wws-grid-5 { grid-template-columns: 1fr; }
}

/* ===========================================================
   Fast RFQ Response (about + contact)
   =========================================================== */
.rfq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #e7f7ec, #d4f1dd);
  border: 1px solid #a3d9b3;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e7a3a;
  margin-bottom: 1rem;
}
.rfq-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: rfq-pulse 2s infinite;
}
@keyframes rfq-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* page-table 样式已移除，统一复用 .tech-table-wrap / .tech-table 体系 */
