/* ==========================================================================
   NEXA - GLOBAL SPACE SOLUTIONS (nexadeco.com)
   Modern High-Performance Foreign Trade Architecture Design System
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #0E2B4C;        /* Signature Deep Navy */
  --color-primary-light: #183C66;
  --color-primary-dark: #07172A;
  --color-accent: #C19A5B;         /* Champagne Gold */
  --color-accent-hover: #A78244;
  --color-accent-light: #F9F5EC;
  --color-accent-subtle: rgba(193, 154, 91, 0.12);
  
  /* Neutral Tone Scale */
  --color-text-main: #1E293B;      /* Slate 800 */
  --color-text-body: #334155;      /* Slate 700 */
  --color-text-muted: #64748B;     /* Slate 500 */
  --color-bg-page: #FFFFFF;
  --color-bg-subtle: #F8FAFC;     /* Slate 50 */
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Elevations */
  --container-max: 1280px;
  --container-narrow: 1080px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(14, 43, 76, 0.08);
  --shadow-lg: 0 10px 30px rgba(14, 43, 76, 0.12);
  --shadow-hover: 0 18px 40px rgba(14, 43, 76, 0.16);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Core Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Utility Bar */
.top-bar {
  background-color: var(--color-primary-dark);
  color: #CBD5E1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.top-bar-highlights {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
}

.top-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  transition: color var(--transition-fast);
}

.top-contact-link:hover {
  color: var(--color-accent);
}

/* Main Navbar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition-smooth);
}

.site-header.scrolled .navbar {
  height: 68px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: height var(--transition-smooth);
}

.site-header.scrolled .brand-logo img {
  height: 38px;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
  /* translucent preview so hover never reads as the solid "you are here" indicator */
  background-color: rgba(193, 154, 91, 0.45);
}

.nav-item.active .nav-link::after {
  width: 100%;
  background-color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  list-style: none;
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.dropdown-link strong {
  font-weight: 600;
  color: var(--color-primary);
}

.dropdown-link span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.dropdown-link:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.dropdown-link:hover strong {
  color: var(--color-accent);
}

/* Safe hover buffer */
.nav-item.has-dropdown::after,
.nav-item.has-megamenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  pointer-events: auto;
}

/* Dropdown Arrow / Chevron */
.nav-item.has-dropdown > .nav-link,
.nav-item.has-megamenu > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

/* ------------------------------------------------------------------
   Wave 4 / INTEL4 §3.4 - external link marker (.nav-external-icon)
   Emitted identically by main.js, the static skeleton and the SSR nav.
   flex: 0 0 auto + fixed box => the arrow can never squeeze the label,
   vertical-align keeps it optically on the text baseline, and the hover
   nudge is transform-only so it never reflows the menu.
   ------------------------------------------------------------------ */
.nav-external-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-left: 4px;
  vertical-align: -1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Quiet accent tint; the solid underline stays reserved for .active */
.nav-link.is-external .nav-external-icon,
.dropdown-link.is-external .nav-external-icon,
.megamenu-item.is-external .nav-external-icon {
  color: var(--color-accent);
  opacity: 0.8;
}

.nav-link.is-external:hover .nav-external-icon,
.dropdown-link.is-external:hover .nav-external-icon,
.megamenu-item.is-external:hover .nav-external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.nav-item.has-dropdown:hover > .nav-link .nav-chevron,
.nav-item.has-megamenu:hover > .nav-link .nav-chevron,
.nav-item.dropdown-open > .nav-link .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Container */
.megamenu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1000px;
  max-width: 92vw;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 45px rgba(14, 43, 76, 0.14);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1020;
}

.nav-item.has-megamenu:hover .megamenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 280px;
  gap: 20px;
}

.megamenu-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.megamenu-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.megamenu-item {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.megamenu-item:hover {
  background-color: var(--color-accent-light);
  transform: translateX(3px);
}

.megamenu-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.megamenu-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.megamenu-item:hover .megamenu-item-title {
  color: var(--color-accent);
}

.megamenu-item-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Promo Card in Mega Menu */
.megamenu-promo {
  background: linear-gradient(135deg, #0E2B4C 0%, #153A66 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.megamenu-promo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.megamenu-promo-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.megamenu-promo-desc {
  font-size: 0.8125rem;
  color: #CBD5E1;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Badges */
.menu-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-badge.gold {
  background-color: rgba(193, 154, 91, 0.15);
  color: #C19A5B;
  border: 1px solid rgba(193, 154, 91, 0.3);
}

.menu-badge.accent {
  background-color: rgba(193, 154, 91, 0.2);
  color: #C19A5B;
}

.menu-badge.blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}

/* Header Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(14, 43, 76, 0.25);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #C19A5B 0%, #D4AF37 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(193, 154, 91, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #B58F4F 0%, #C49F27 100%);
  box-shadow: 0 6px 20px rgba(193, 154, 91, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--color-primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 23, 42, 0.88) 0%, rgba(14, 43, 76, 0.72) 100%),
              url('../images/hero-main.webp') center/cover no-repeat;
  color: #FFFFFF;
  padding: 110px 0 100px;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 820px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: #FFFFFF;
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  background: linear-gradient(135deg, #EAD7B0 0%, #C19A5B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 36px;
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #F1F5F9;
}

.trust-badge-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Trust & Stats Metric Bar
   ========================================================================== */

.metrics-section {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.metrics-grid {
  display: grid;
  grid-template-grid: repeat(4, 1fr);
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric-card {
  text-align: center;
  padding: 10px 16px;
  border-right: 1px solid var(--color-border);
}

.metric-card:last-child {
  border-right: none;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.metric-number span {
  color: var(--color-accent);
  font-size: 2rem;
  margin-left: 2px;
}

.metric-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Section Title Utility
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.375rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Product Systems Showcase (Category Cards)
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(193, 154, 91, 0.4);
}

.product-image-box {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #F1F5F9;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.gold {
  background: linear-gradient(135deg, #C19A5B 0%, #D4AF37 100%);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-specs-list {
  list-style: none;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-specs-list li {
  font-size: 0.8125rem;
  color: var(--color-text-body);
  display: flex;
  justify-content: space-between;
}

.product-specs-list li span.label {
  color: var(--color-text-muted);
}

.product-specs-list li span.val {
  font-weight: 600;
  color: var(--color-primary);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Space Solutions by Application
   ========================================================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.solution-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: #FFFFFF;
  text-decoration: none;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.1) 0%, rgba(7, 23, 42, 0.88) 85%);
  z-index: 1;
  transition: background var(--transition-fast);
}

.solution-card:hover::before {
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.25) 0%, rgba(7, 23, 42, 0.94) 80%);
}

.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.solution-card:hover img {
  transform: scale(1.06);
}

.solution-content {
  position: relative;
  z-index: 2;
}

.solution-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.solution-title {
  color: #FFFFFF;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.solution-desc {
  font-size: 0.9375rem;
  color: #E2E8F0;
  margin-bottom: 16px;
  max-width: 460px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.solution-card:hover .solution-link {
  gap: 10px;
}

/* ==========================================================================
   Manufacturing & Factory Strength
   ========================================================================== */

.manufacturing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.manufacturing-gallery {
  position: relative;
}

.main-factory-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}

.main-factory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-qc-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background-color: #FFFFFF;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl, 0 12px 30px rgba(0, 0, 0, 0.14));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
}

.floating-qc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.floating-qc-text h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.floating-qc-text p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.manufacturing-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.m-point {
  display: flex;
  gap: 16px;
}

.m-point-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-accent);
  background: var(--color-accent-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-point-body h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.m-point-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Certifications & Quality Compliance
   ========================================================================== */

.certifications-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 60px 0;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}

.cert-card {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
}

.cert-card:hover {
  transform: translateY(-4px);
  background-color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.cert-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.cert-card h4 {
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.cert-card p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Global Case Studies Portfolio
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #FFFFFF;
  text-decoration: none;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 42, 0) 30%, rgba(7, 23, 42, 0.92) 100%);
  z-index: 1;
  transition: background var(--transition-fast);
}

.project-card:hover::before {
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.1) 15%, rgba(7, 23, 42, 0.98) 100%);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-info {
  position: relative;
  z-index: 2;
}

.project-location {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.project-title {
  color: #FFFFFF;
  font-size: 1.1875rem;
  margin-bottom: 6px;
}

.project-material {
  font-size: 0.8125rem;
  color: #CBD5E1;
}

/* ==========================================================================
   Inquiry & RFQ Conversion Funnel
   ========================================================================== */

.rfq-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #FFFFFF;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.rfq-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 154, 91, 0.15) 0%, rgba(193, 154, 91, 0) 70%);
  pointer-events: none;
}

.rfq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.rfq-info .section-tag {
  color: var(--color-accent);
}

.rfq-info .section-title {
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.rfq-info p {
  color: #E2E8F0;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.rfq-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.rfq-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: #F8FAFC;
}

.rfq-perk svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.rfq-direct-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rfq-direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rfq-direct-text strong {
  display: block;
  font-size: 0.8125rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rfq-direct-text a {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
}

.rfq-direct-text a:hover {
  color: var(--color-accent);
}

/* RFQ Form Box */
.rfq-form-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--color-text-main);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.rfq-form-box h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.rfq-form-box p.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-label span.req {
  color: #E11D48;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text-main);
  background-color: #FFFFFF;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(193, 154, 91, 0.18);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Honeypot Anti-Spam (Hidden from real users) */
.form-hp {
  display: none !important;
  visibility: hidden !important;
}

.form-btn-submit {
  width: 100%;
  margin-top: 8px;
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.875rem;
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.form-feedback.success {
  display: block;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.error {
  display: block;
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary-dark);
  color: #94A3B8;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-top {
  padding: 80px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 24px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* Wave 10 (玄冥 / INTEL7 §1.3): brand-aware hover for the CMS footer links.
   --brand-color is emitted inline by SocialLinks::PLATFORMS; the inset ring keeps
   very dark brands (X / TikTok / Threads) visible against the navy footer. */
.social-link[data-platform]:hover {
  background: var(--brand-color, var(--color-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.social-link[data-platform] svg,
.social-link[data-platform] img {
  display: block;
  width: 18px;
  height: 18px;
}

/* External icon_url images (custom platform) sit on a light disc: an arbitrary
   SVG may be dark or currentColor-based and would vanish on the navy footer. */
.social-link.has-image,
.social-link.has-image:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #E2E8F0;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}

/* Floating WhatsApp / Quick Contact Widget */
.floating-contact-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.floating-contact-btn svg {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .manufacturing-layout {
    grid-template-columns: 1fr;
  }
  .floating-qc-badge {
    right: 20px;
    bottom: -16px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }
  .top-bar {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    z-index: 999;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    display: none;
  }
  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }
  .megamenu-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 6px 16px;
    display: none;
    width: 100%;
    max-width: 100%;
  }
  .nav-item.dropdown-open .megamenu-panel {
    display: block;
  }
  .megamenu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .megamenu-promo {
    display: none;
  }
  /* Drawer: smaller arrow, still baseline-aligned and never squeezed */
  .nav-external-icon {
    width: 11px;
    height: 11px;
    margin-left: 6px;
  }
  .nav-link.is-external,
  .dropdown-link.is-external,
  .megamenu-item.is-external {
    max-width: 100%;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions .btn-accent {
    display: none;
  }
  .hero-title {
    font-size: 2.375rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .metric-card {
    border-right: none;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .rfq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rfq-form-box {
    padding: 28px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   New Homepage Specific Components (from 建站内容 .docx)
   ========================================================================== */

/* Capabilities (What We Do) 12-Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.capability-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.capability-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.capability-card:hover .capability-icon {
  background: var(--color-primary);
  color: #FFFFFF;
}

.capability-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Industries We Serve Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  text-decoration: none;
  color: #FFFFFF;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.15) 0%, rgba(7, 23, 42, 0.88) 85%);
  z-index: 1;
  transition: background var(--transition-fast);
}

.industry-card:hover::before {
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.25) 0%, rgba(7, 23, 42, 0.95) 75%);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover img {
  transform: scale(1.08);
}

.industry-card-content {
  position: relative;
  z-index: 2;
}

.industry-card-title {
  font-size: 1.1875rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.industry-card-desc {
  font-size: 0.8125rem;
  color: #E2E8F0;
}

/* Value Badges (Save Money, Save Time, Door to Door, Butler Service) */
.value-badges-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.value-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #FFFFFF;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.value-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* 7-Step Process Stepper */
.process-stepper-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  position: relative;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 14px;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(193, 154, 91, 0.35);
}

.step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
}

/* Why Source From China Grid */
.why-china-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-china-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-fast);
}

.why-china-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-china-card svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.why-china-card h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.why-china-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Partner Highlight Banner */
.partner-highlight-box {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  margin: 60px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.partner-highlight-box h3 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 16px;
}

.partner-highlight-box p {
  color: #E2E8F0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.team-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.team-avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-avatar-box svg {
  width: 36px;
  height: 36px;
}

.team-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.team-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .process-stepper-grid { grid-template-columns: repeat(4, 1fr); }
  .why-china-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-highlight-box { grid-template-columns: 1fr; padding: 36px 30px; }
}

@media (max-width: 860px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-stepper-grid { grid-template-columns: repeat(2, 1fr); }
  .why-china-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .process-stepper-grid { grid-template-columns: 1fr; }
  .why-china-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modular Sub-Page & Generic Detail Styles
   ========================================================================== */

/* Breadcrumbs */
.breadcrumb-wrap {
  padding: 16px 0 0;
  background-color: var(--color-primary-dark);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.8125rem;
  color: #94A3B8;
}

.breadcrumb-list a {
  color: #CBD5E1;
  transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
  color: var(--color-accent);
}

.breadcrumb-separator {
  color: #64748B;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-current {
  color: var(--color-accent);
  font-weight: 500;
}

/* Sub-Page Hero */
.subpage-hero {
  background: linear-gradient(135deg, #07172A 0%, #0E2B4C 50%, #152238 100%);
  color: #FFFFFF;
  padding: 56px 0 68px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(193, 154, 91, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.subpage-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(193, 154, 91, 0.15);
  border: 1px solid rgba(193, 154, 91, 0.4);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subpage-hero-title {
  color: #FFFFFF;
  font-size: 2.85rem;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 800;
}

.subpage-hero-desc {
  color: #E2E8F0;
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 620px;
}

.subpage-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.subpage-hero-pills {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-pill-item svg {
  color: var(--color-accent);
}

.subpage-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.subpage-hero-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.subpage-hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.subpage-hero-media:hover img {
  transform: scale(1.03);
}

/* Metrics Strip */
.metrics-strip {
  background-color: var(--color-bg-page);
  padding: 0;
  margin-top: -32px;
  position: relative;
  z-index: 10;
}

.metrics-strip-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 20px;
  divide-x: 1px solid var(--color-border);
}

.metric-col {
  padding: 0 24px;
  text-align: center;
}

.metric-num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-num span.gold {
  color: var(--color-accent);
}

.metric-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Technical Specification Matrix */
.specs-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  margin-top: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.specs-table th {
  background-color: var(--color-bg-subtle);
  color: var(--color-primary);
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.specs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-body);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.7);
}

/* Workflow Stepper */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.workflow-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.workflow-step-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.workflow-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Material Swatches Grid */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.swatch-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.swatch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.swatch-thumb {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.swatch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch-body {
  padding: 16px;
}

.swatch-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.swatch-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* FAQ Block */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.faq-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-q {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-q svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Subpage Responsive */
@media (max-width: 992px) {
  .subpage-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .metrics-strip-card { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .metric-col:nth-child(2) { border-right: none; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .subpage-hero-title { font-size: 2.15rem; }
  .metrics-strip-card { grid-template-columns: 1fr; gap: 24px 0; }
  .metric-col { padding: 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SSR content renderer (白泽 / INTEL3 §4) - additive only.
   Everything below styles render.php output; existing static pages are
   unaffected because none of these classes exist in the static markup.
   ========================================================================== */

/* ---- Article / page body copy ---- */
.ssr-prose { color: var(--color-text-body); font-size: 1rem; line-height: 1.75; }
.ssr-prose > * + * { margin-top: 18px; }
.ssr-prose h2 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--color-primary); margin-top: 40px; line-height: 1.3; }
.ssr-prose h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-top: 30px; }
.ssr-prose h4 { font-size: 1.0625rem; font-weight: 700; color: var(--color-primary); margin-top: 24px; }
.ssr-prose ul, .ssr-prose ol { padding-left: 22px; }
.ssr-prose ul { list-style: disc; }
.ssr-prose ol { list-style: decimal; }
.ssr-prose li + li { margin-top: 8px; }
.ssr-prose a { color: var(--color-accent); text-decoration: underline; }
.ssr-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.ssr-prose blockquote { border-left: 3px solid var(--color-accent); padding: 6px 0 6px 18px; color: var(--color-text-muted); font-style: italic; }
.ssr-prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ssr-prose th, .ssr-prose td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; }
.ssr-prose code { background: var(--color-bg-subtle); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.ssr-prose figure figcaption { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 8px; }

/* ---- Detail meta row ---- */
.ssr-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.ssr-detail-meta a { color: #fff; text-decoration: underline; }
.ssr-dot { opacity: 0.5; }

/* ---- Cover image ---- */
.ssr-cover-section { padding-bottom: 0; }
.ssr-cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ssr-cover img { display: block; width: 100%; height: auto; }

/* ---- Cards / list grids ---- */
.ssr-list-grid, .ssr-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ssr-card h3 a { color: inherit; text-decoration: none; }
.ssr-card:hover h3 a { color: var(--color-accent); }
.ssr-card-media img { transition: transform 0.5s ease; }
.ssr-card:hover .ssr-card-media img { transform: scale(1.05); }
.ssr-card-desc { font-size: 0.875rem; color: var(--color-text-body); line-height: 1.6; margin-top: 8px; }
a.capability-card { text-decoration: none; color: inherit; }
.ssr-empty { text-align: center; padding: 60px 20px; background: var(--color-bg-subtle); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.ssr-empty h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); margin-bottom: 10px; }
.ssr-empty p { color: var(--color-text-body); max-width: 620px; margin: 0 auto 24px; }
.ssr-list-hero .subpage-hero-title { max-width: 900px; }

/* ---- Pagination ---- */
.ssr-pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 48px; }
.ssr-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #FFFFFF; color: var(--color-primary); font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: border-color var(--transition-fast), color var(--transition-fast); }
.ssr-page-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ssr-page-link.is-current { background: var(--color-accent); border-color: var(--color-accent); color: #FFFFFF; }

/* ---- Image + text block ---- */
.ssr-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ssr-image-text-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block; }
.ssr-image-text-copy .section-title { margin-bottom: 16px; }

/* ---- Gallery block ---- */
.ssr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.ssr-gallery-item { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: #FFFFFF; border: 1px solid var(--color-border); }
.ssr-gallery-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
.ssr-gallery-item figcaption { padding: 12px 16px; font-size: 0.875rem; color: var(--color-text-muted); }

/* ---- Tags ---- */
.ssr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.ssr-tags-section { padding-top: 0; padding-bottom: 0; }
.ssr-tags-section .ssr-tags::before { content: "Topics"; font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-right: 4px; }
.ssr-tag { font-size: 0.8125rem; font-weight: 600; color: var(--color-primary); background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: 999px; padding: 5px 12px; }

/* ---- CTA / RFQ block ---- */
.ssr-cta { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.ssr-cta.with-form { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.ssr-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- FAQ accordion (native <details>, no JS) ---- */
details.faq-card { padding: 0; overflow: hidden; }
details.faq-card > summary.faq-q { list-style: none; cursor: pointer; margin: 0; padding: 20px 24px; align-items: center; }
details.faq-card > summary.faq-q::-webkit-details-marker { display: none; }
details.faq-card > summary.faq-q::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; color: var(--color-accent); }
details.faq-card[open] > summary.faq-q::after { content: "\2212"; }
details.faq-card > .faq-a { padding: 0 24px 22px; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .ssr-list-grid, .ssr-related-grid { grid-template-columns: repeat(2, 1fr); }
  .ssr-image-text { grid-template-columns: 1fr; gap: 28px; }
  .ssr-cta.with-form { grid-template-columns: 1fr; }
  .ssr-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ssr-list-grid, .ssr-related-grid { grid-template-columns: 1fr; }
  .ssr-gallery { grid-template-columns: 1fr; }
}

/* Legacy HTML bodies (pre-blocks CMS records) reuse the small tile classes
   .capabilities-grid / .capability-card with paragraph-length copy. Verified on the
   live product record: a 4-column flex row squeezes the text into a ~150px column,
   so inside the prose column the cards stack and reflow instead. */
.ssr-prose .capabilities-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ssr-prose .capability-card { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.ssr-prose .capability-card .capability-name { text-align: left; }

/* ==========================================================================
   Wave 8 - Four-language UI (梼杌 / INTEL6 §3)
   Append-only: the language switcher and the RTL corrections Arabic needs.
   No existing declaration above this block is modified.
   ========================================================================== */

/* ---- Language switcher: native <details> dropdown (desktop + mobile drawer) ----
   Wave 14 (烛龙): the four pill links became one <details> whose <summary> keeps the
   exact pill outline (radius/border/font) and whose <ul> is the dropdown panel.
   No JS is required to open/close; i18n.js only rewrites hrefs + .is-active and
   mirrors the active code into [data-lang-current]. */
.lang-switcher {
  position: relative;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

/* <details> disclosure marker: hide it in every engine. */
.lang-switcher-toggle::-webkit-details-marker { display: none; }
.lang-switcher-toggle::marker { content: ''; }

.lang-switcher-toggle:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
}

/* The closed summary must never lose its focus ring. */
.lang-switcher-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lang-switcher-current {
  display: inline-block;
  min-width: 18px;
  text-align: center;
}

.lang-switcher-caret {
  width: 10px;
  height: 7px;
  flex: 0 0 auto;
  transition: transform var(--transition-fast);
}

.lang-switcher[open] > .lang-switcher-toggle .lang-switcher-caret {
  transform: rotate(180deg);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 1200; /* above .site-header (1000) and the mobile drawer (999) */
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-card);
  box-shadow: 0 18px 40px rgba(2, 10, 22, 0.18);
}

.lang-switcher-link {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-switcher-link:hover {
  color: var(--color-primary);
  background: rgba(14, 43, 76, 0.06); /* navy tint, derived from --color-primary */
}

.lang-switcher-link.is-active,
.lang-switcher-link[aria-current] {
  color: var(--color-primary-dark);
  background: var(--color-accent-subtle); /* 淡金 */
  font-weight: 600;
}

.lang-switcher-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Duplicate instance lives in the mobile drawer; desktop hides it. */
.lang-switcher-mobile {
  display: none;
}

/* ---- RTL (Arabic): toolbar / nav / footer / buttons / text alignment ---- */
[dir="rtl"] body,
body.lang-ar {
  text-align: right;
}

[dir="rtl"] .top-bar-inner,
[dir="rtl"] .top-bar-highlights,
[dir="rtl"] .top-bar-contacts,
[dir="rtl"] .navbar,
[dir="rtl"] .nav-menu,
[dir="rtl"] .nav-actions,
[dir="rtl"] .footer-grid,
[dir="rtl"] .footer-bottom-inner,
[dir="rtl"] .footer-contact-item,
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header {
  direction: rtl;
}

/* Flex rows already mirror under dir=rtl; these are the painted/pushed bits. */
[dir="rtl"] .nav-chevron {
  transform: scaleX(-1);
}

[dir="rtl"] .nav-external-icon {
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: -20px;
  text-align: right;
}

[dir="rtl"] .megamenu-panel,
[dir="rtl"] .megamenu-item,
[dir="rtl"] .dropdown-link {
  text-align: right;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .metric-card {
  border-right: none;
  border-left: 1px solid var(--color-border);
}

[dir="rtl"] .metric-card:last-child {
  border-left: none;
}

[dir="rtl"] .product-badge {
  left: auto;
  right: 14px;
}

[dir="rtl"] .floating-qc-badge {
  right: -24px;
}

[dir="rtl"] .floating-contact-btn {
  right: auto;
  left: 28px;
}

/* The panel mirrors with the page; only the code chip (EN | FR | AR | ES | RU) keeps LTR. */
[dir="rtl"] .lang-switcher-toggle {
  direction: ltr;
}

[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
  text-align: right;
}

[dir="rtl"] .ssr-prose ul,
[dir="rtl"] .ssr-prose ol {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] .ssr-prose blockquote {
  border-left: none;
  border-right: 3px solid var(--color-accent);
  padding-right: 18px;
  padding-left: 0;
}

[dir="rtl"] .ssr-prose th,
[dir="rtl"] .ssr-prose td {
  text-align: right;
}

[dir="rtl"] .hero-pill svg,
[dir="rtl"] .trust-badge-item svg,
[dir="rtl"] .rfq-perk svg {
  margin-right: 0;
  margin-left: 8px;
}

/* Arabic script needs a little more leading on the display headings. */
body.lang-ar .hero-title,
body.lang-ar .section-title,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3 {
  line-height: 1.45;
}

@media (max-width: 1100px) {
  [dir="rtl"] .floating-contact-btn {
    left: 20px;
    right: auto;
  }
}

@media (max-width: 860px) {
  /* The top utility bar is hidden on phones, so the drawer carries the switcher. */
  .lang-switcher-mobile {
    display: block;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
  }

  /* Drawer instance: readable 13px trigger, full-width so the code + caret line up. */
  .lang-switcher-mobile .lang-switcher {
    display: block;
    width: 100%;
  }

  .lang-switcher-mobile .lang-switcher-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 8px 14px;
    border-color: var(--color-border);
    background: var(--color-bg-subtle);
    color: var(--color-text-body);
    font-size: 0.8125rem; /* 13px */
  }

  .lang-switcher-mobile .lang-switcher-toggle:hover {
    color: var(--color-primary);
    background: var(--color-accent-subtle);
  }

  /* In-flow panel: it can never clip, overflow or widen the drawer. */
  .lang-switcher-mobile .lang-switcher-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-shadow: 0 2px 10px rgba(14, 43, 76, 0.08);
  }

  [dir="rtl"] .nav-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  [dir="rtl"] .nav-menu.active {
    transform: translateX(0);
  }

  [dir="rtl"] .nav-external-icon {
    margin-left: 0;
    margin-right: 6px;
  }

  [dir="rtl"] .dropdown-menu {
    padding: 4px 16px 4px 0;
  }

  [dir="rtl"] .megamenu-panel {
    padding: 6px 16px 6px 0;
  }
}



/* ==========================================================================
   Wave 10 (祝融 / INTEL7 §1): hero media compositions + dark CTA token
   --------------------------------------------------------------------------
   Additive only. Every selector is either new (.hero-grid/.hero-media/.btn-dark)
   or scoped to a class the renderer emits for a new option (hero-has-media,
   hero-media-left, subpage-hero-split), so pages that keep the default options
   render exactly as before.
   ========================================================================== */

/* Third CTA style token: accent | outline | dark (PageSectionService::BUTTON_STYLES) */
.btn-dark {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(7, 23, 42, 0.4);
}

.btn-dark:hover {
  background-color: var(--color-primary-light);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(7, 23, 42, 0.5);
  transform: translateY(-2px);
}

/* Home hero with a photo card: replace the stock backdrop image with a deep
   navy gradient so the editor's photo - not hero-main.webp - is the subject. */
.hero-section.hero-has-media {
  background: linear-gradient(135deg, #07172A 0%, #0E2B4C 55%, #152238 100%);
  padding: 96px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-grid .hero-content {
  max-width: 640px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(2, 10, 22, 0.55);
  background: rgba(255, 255, 255, 0.03);
}

/* Champagne hairline = the brand's material signature around the photo. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(193, 154, 91, 0.28);
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-media:hover img {
  transform: scale(1.035);
}

/* image_position=left mirrors the columns without touching the DOM order. */
.hero-media-left .hero-media {
  order: -1;
}

/* image_position=background keeps the wave-8 full-bleed scrim. */
.hero-media-background {
  background-size: cover;
  background-position: center;
}

/* Sub-page hero, layout=split: reuses the frozen .subpage-hero-grid columns. */
.subpage-hero-split {
  padding: 64px 0 76px;
}

.subpage-hero-copy {
  position: relative;
  z-index: 2;
}

.subpage-hero-split .subpage-hero-media {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 52px rgba(2, 10, 22, 0.5);
}

.subpage-hero-split .subpage-hero-media img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media-left .hero-media { order: 0; }
  .hero-media img { height: 340px; }
  .subpage-hero-split .subpage-hero-media img { height: 320px; }
}

@media (max-width: 640px) {
  .hero-section.hero-has-media { padding: 64px 0 56px; }
  .hero-media img { height: 260px; }
  .subpage-hero-split .subpage-hero-media img { height: 240px; }
}

/* ==========================================================================
   Wave 10 (INTEL7 §4.1) - 语言切换器停靠主导航栏右上（桌面 CTA 左侧）
   Desktop: .nav-actions > .lang-switcher-desktop（CTA 之前）
   Mobile : .nav-menu > li.lang-switcher-mobile（抽屉，wave8 已有，≤860px 显示）
   顶部工具条不含切换器；topbar:banner 的字段/渲染/编辑器一行未动。
   Append-only：本注释块以上没有任何一行被修改。
   ========================================================================== */
.lang-switcher-desktop { display: inline-block; }

/* 白底导航栏上的对比度：wave8 的基础色是按深色工具条写的 */
.nav-actions .lang-switcher-desktop .lang-switcher-toggle {
  border-color: var(--color-border);
  background-color: var(--color-bg-subtle);
  color: var(--color-text-body);
}

.nav-actions .lang-switcher-desktop .lang-switcher-toggle:hover,
.nav-actions .lang-switcher-desktop[open] > .lang-switcher-toggle {
  color: var(--color-primary);
  background-color: var(--color-accent-subtle);
}

.nav-actions .lang-switcher-desktop[open] > .lang-switcher-toggle {
  border-color: var(--color-accent);
}

/* 语言码永远 EN | FR | AR | ES | RU，不随 RTL 翻转 */
[dir="rtl"] .nav-actions .lang-switcher-desktop .lang-switcher-toggle { direction: ltr; }

/* 861~1200：7 个导航项 + 切换器 + CTA 最挤的一段；收紧间距，禁止溢出/重叠 */
@media (max-width: 1200px) {
  .nav-menu { gap: 20px; }
  .nav-actions { gap: 12px; }
  .nav-actions .lang-switcher-desktop .lang-switcher-toggle { padding: 4px 8px; }
}

@media (max-width: 1100px) {
  .nav-menu { gap: 16px; }
  .nav-link { font-size: 0.875rem; }
  .nav-actions .lang-switcher-desktop .lang-switcher-toggle { padding: 3px 7px; }
  .brand-logo img { max-width: 180px; height: 38px; }
}

@media (max-width: 940px) {
  /* 861~940 是最后一段桌面布局：品牌/菜单/切换器/CTA 四件套必须都留得住，
     实测线上旧版在这一段把 CTA 挤到 74px 且整页横向溢出（scrollW 898/861），
     这里一次性收紧到 0 溢出并留出呼吸位。 */
  .nav-menu { gap: 10px; }
  .nav-link { font-size: 0.75rem; white-space: nowrap; }
  .nav-actions { gap: 6px; }
  .nav-actions .lang-switcher-desktop .lang-switcher-toggle { padding: 2px 6px; font-size: 0.6875rem; }
  .nav-actions .btn-accent.btn-sm { padding: 6px 9px; font-size: 0.6875rem; }
  .brand-logo img { max-width: 132px; height: 30px; }
}

/* ≤860：导航菜单变成抽屉，切换器交给抽屉里的那一份 */
@media (max-width: 860px) {
  .lang-switcher-desktop { display: none; }
}

/* ==========================================================================
   Wave 11 (应龙 / INTEL8 §1.5): fifth CTA style token
   --------------------------------------------------------------------------
   Additive only: .btn-link is a NEW class emitted by PageSectionService's button
   repeater (BUTTON_STYLES['link']). A page that keeps the legacy accent/outline/dark
   buttons never matches this rule, so nothing on the existing site changes.
   ========================================================================== */

.btn-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-accent);
  box-shadow: none;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  background-color: transparent;
  color: var(--color-accent-hover);
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}

/* ==========================================================================
   Wave 13 (狻猊 / INTEL10 §2.1): cookie consent banner
   --------------------------------------------------------------------------
   Additive only: .cookie-consent is a NEW element injected by main.js after
   DOMContentLoaded, so no existing selector matches it and no current layout
   changes. position:fixed keeps it out of the document flow (no CLS), and
   [hidden] is honoured even though .cookie-consent sets display:flex.
   ========================================================================== */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200; /* above the WhatsApp float (900) / sticky header (1000) */
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 34px rgba(14, 43, 76, 0.14);
  padding: 14px 0;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-copy {
  flex: 1 1 520px;
  min-width: 260px;
}

.cookie-consent-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.cookie-consent-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
  color: var(--color-accent-hover);
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* RTL (ar) mirrors the reading order; the buttons stay LTR-order neutral. */
[dir="rtl"] .cookie-consent-inner {
  direction: rtl;
}

@media (max-width: 700px) {
  .cookie-consent {
    padding: 12px 0;
  }
  .cookie-consent-inner {
    gap: 12px;
  }
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }
}

/* Keep the floating WhatsApp button clear of the consent banner. */
body.has-cookie-consent .floating-contact-btn {
  bottom: 132px;
  transition: bottom var(--transition-fast);
}

@media (max-width: 700px) {
  body.has-cookie-consent .floating-contact-btn {
    bottom: 196px;
  }
}

/* The cookie-policy page can reopen the banner with this link. */
[data-cookie-settings] {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ---------------------------------------------------------------------------
   Wave 13 (INTEL10 §2.1, 狻猊): static compliance documents
   (privacy.html / terms.html / cookies.html). Purely additive - every selector
   below is new, so no other page changes appearance.
   --------------------------------------------------------------------------- */
.legal-page {
  padding: 56px 0 88px;
}
.legal-page .container {
  max-width: 920px;
}
.legal-breadcrumb {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 18px;
}
.legal-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.legal-breadcrumb a:hover {
  text-decoration: underline;
}
.legal-page h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 10px;
}
.legal-meta {
  font-size: 0.9rem;
  opacity: 0.72;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.legal-lead {
  font-size: 1.075rem;
  line-height: 1.75;
  margin: 0 0 26px;
}
.legal-toc {
  background: rgba(0, 0, 0, 0.035);
  border-left: 3px solid var(--color-accent, #c9a227);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 0 0 34px;
}
.legal-toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.legal-toc li {
  margin: 0 0 6px;
  break-inside: avoid;
}
.legal-toc a {
  color: inherit;
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
}
.legal-page section {
  scroll-margin-top: 96px;
  margin-bottom: 30px;
}
.legal-page h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 34px 0 10px;
}
.legal-page h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}
.legal-page p,
.legal-page li {
  line-height: 1.75;
}
.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.95rem;
}
.legal-page th,
.legal-page td {
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.legal-page thead th {
  background: rgba(0, 0, 0, 0.045);
  font-weight: 600;
}
.legal-page code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
}
[dir="rtl"] .legal-page {
  text-align: right;
}
[dir="rtl"] .legal-toc {
  border-left: 0;
  border-right: 3px solid var(--color-accent, #c9a227);
}
[dir="rtl"] .legal-page th,
[dir="rtl"] .legal-page td {
  text-align: right;
}
@media (max-width: 700px) {
  .legal-page {
    padding: 32px 0 64px;
  }
  .legal-page .container {
    padding: 0 18px;
  }
  .legal-toc ol {
    columns: 1;
  }
  .legal-page table {
    font-size: 0.875rem;
  }
  .legal-page th,
  .legal-page td {
    padding: 8px 9px;
  }
}

/* ============================================================================
   Wave 16（2026-10-16）手机端硬化 —— 全部规则都有实测依据，见 .work/qa/mobile/
   1) 390×844 下首页布局视口被撑到 563：.ssr-prose .capabilities-grid 的
      repeat(auto-fit,minmax(260px,1fr)) 与 .capabilities-grid 的 3 列基础规则，
      把 ≤640 的媒体查询（单列）盖掉了（优先级 0,2,0 > 0,1,0）→ 3×175+间距=563。
   2) 法务页表格 114px 溢出：表格 min-content 宽度大于手机宽度。
   3) 15 个表单输入框 font-size:14px → iOS 聚焦自动放大页面。
   4) 30-46 个可点元素高度 <40px（品牌 logo 30、导航 35、页脚链接…）。
   5) iPhone 刘海/底部横条：需要 viewport-fit=cover + safe-area 内边距。
   ============================================================================ */

/* ---------- 1. 手机栅格一律单列（用 !important 压掉更高优先级的基础多列规则） ---------- */
@media (max-width: 700px) {
  .ssr-prose .capabilities-grid,
  .ssr-prose .products-grid,
  .ssr-prose .projects-grid,
  .ssr-prose .card-grid,
  .ssr-prose .stats-grid,
  .ssr-prose .process-grid,
  .ssr-prose .gallery-grid,
  .capabilities-grid, .products-grid, .projects-grid, .certifications-grid,
  .stats-grid, .process-grid, .gallery-grid, .cards-grid, .related-grid,
  .ssr-cols, .ssr-form-grid, .rfq-form-grid, .form-row, .specs-grid,
  .two-col, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .ssr-prose .capability-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- 2. 表格：让它在自己容器里横滚，绝不撑破页面 ---------- */
@media (max-width: 700px) {
  .ssr-prose table, .legal-page table, .specs-table, .data-table,
  .ssr-prose .specs-table-wrap table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ssr-prose th, .ssr-prose td, .legal-page th, .legal-page td { white-space: normal; }
}

/* ---------- 3. 长串（邮箱 / URL / 追踪号 / 哈希）必须能断行 ---------- */
@media (max-width: 700px) {
  .ssr-prose, .ssr-prose p, .ssr-prose li, .ssr-prose td, .ssr-prose h2, .ssr-prose h3,
  .legal-page, .legal-page p, .legal-page li, .legal-page td,
  .contact-info, .contact-info a, .footer-bottom, .footer-links, .footer-legal-links,
  .inquiry-meta, .project-card, .card, .summary, .product-card {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* 但不要给整个容器加 break-all，只对媒体与代码块 */
  img, svg, video, iframe { max-width: 100%; height: auto; }
}

/* ---------- 4. 触点最小 44px（WCAG 2.2 Target Size）+ 去掉 300ms 点击延迟 ---------- */
@media (max-width: 860px) {
  a, button, [role="button"], input[type="submit"], input[type="button"], summary, label[for] {
    touch-action: manipulation;
  }
  header.site-header .nav-link,
  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .footer-links a, .footer-legal-links a, .footer-social a,
  .breadcrumbs a, .pill-btn, .tag, .btn, .btn-sm, button:not(.kebab-btn) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  header.site-header .brand, header.site-header .brand-logo,
  a.brand-logo, .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-toggle, .kebab-btn, .icon-btn, .status-inline, select, input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }
  input[type="checkbox"], input[type="radio"] { min-width: 22px; min-height: 22px; }
  .lang-switcher-toggle { min-height: 44px; }
  .lang-switcher-link { min-height: 44px; }
  /* 页脚链接原来是行内小字，改成竖排大触点 */
  .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
}

/* ---------- 5. 输入框 ≥16px（iOS 聚焦不再放大）+ 触控友好尺寸 ---------- */
@media (max-width: 860px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: 12px 14px;
  }
  textarea { min-height: 120px; }
  label { font-size: 0.95rem; }
  .form-group { margin-bottom: 16px; }
}

/* ---------- 6. 首屏与标题：手机别再用 100vh + 固定大字号 ---------- */
@media (max-width: 700px) {
  .hero, .hero-section, .projects-hero, .page-hero, section.hero {
    min-height: auto !important;
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }
  .hero h1, .hero-section h1, .projects-hero h1, .page-hero h1, h1.display {
    font-size: clamp(1.75rem, 7.2vw, 2.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
  }
  .hero p, .hero-section p, .projects-hero p { font-size: 1rem !important; line-height: 1.65; }
  h2 { font-size: clamp(1.4rem, 5.6vw, 1.9rem) !important; }
  h3 { font-size: clamp(1.15rem, 4.6vw, 1.4rem) !important; }
  section { padding-left: 0; padding-right: 0; }
  .container { padding-left: 18px !important; padding-right: 18px !important; }
  .hero .btn, .hero-section .btn, .rfq-section .btn { width: 100%; justify-content: center; }
  .btn + .btn { margin-left: 0; }
  .hero-actions, .cta-actions { display: flex; flex-direction: column; gap: 10px; }
}

/* ---------- 7. 安全区：刘海 / 底部横条 ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  header.site-header { padding-top: env(safe-area-inset-top); }
  .floating-contact-btn { bottom: calc(18px + env(safe-area-inset-bottom)); }
  body.has-cookie-consent .floating-contact-btn { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
/* 下面两条必须在移动断点内：wave16 第一版漏了媒体查询，桌面端 .nav-menu 也吃到
   padding-bottom:24px，flex 内容在内容框里居中 → 导航项比头部中心高 12px（老板实测）。 */
@media (max-width: 860px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    .nav-menu { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  }
}
@media (max-width: 700px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    .cookie-consent { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  }
}

/* ---------- 8. Cookie 条：手机上贴底、不遮 WhatsApp、不动页面宽度 ---------- */
@media (max-width: 700px) {
  .cookie-consent { left: 0; right: 0; width: 100%; max-width: 100vw; }
  .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 18px; max-width: 100%; }
  .cookie-consent-copy { font-size: 0.82rem; line-height: 1.5; }
  .cookie-consent-actions { display: flex; gap: 8px; }
  .cookie-consent-actions .btn { flex: 1; min-height: 44px; justify-content: center; }
}

/* ---------- 9. 抽屉：占满宽度、面板不再比抽屉宽、锁背景滚动 ---------- */
@media (max-width: 860px) {
  .nav-menu { width: min(100vw, 420px) !important; max-width: 100vw; }
  .nav-menu .lang-switcher-menu,
  .lang-switcher-mobile .lang-switcher-menu { width: 100%; min-width: 0; max-width: 100%; }
  body.nav-open { overflow: hidden; position: fixed; width: 100%; }
}

/* ---------- 10. 粘性头收缩（JS 加 .is-scrolled），把屏幕还给内容 ---------- */
@media (max-width: 860px) {
  header.site-header { transition: padding 0.18s ease, box-shadow 0.18s ease; }
  header.site-header.is-scrolled { padding-top: 4px !important; padding-bottom: 4px !important; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10); }
  header.site-header.is-scrolled .brand img, header.site-header.is-scrolled .brand-logo img { height: 30px; }
}

/* ---------- 11. 超小屏（≤360）再收一档 ---------- */
@media (max-width: 380px) {
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  .hero h1, .hero-section h1 { font-size: clamp(1.6rem, 8vw, 2rem) !important; }
  .badge, .pill, .tag { font-size: 0.72rem; }
  .footer-legal-links { gap: 4px 10px; }
}

/* ---------- 12. 手机端第二轮：网格轨道的 min-content 撑破 + 剩余小触点 ---------- */
@media (max-width: 700px) {
  /* 网格子项默认 min-width:auto，内容（表单控件）的 min-content 会把轨道顶宽
     （实测 /contact.html 320px 下 .rfq-layout 轨道 = 347.8px，溢出 42px）。
     给容器与子项都放开 min-width，轨道就跟着容器走。 */
  .rfq-layout, .ssr-cols, .ssr-cta.with-form, .contact-grid, .contact-layout,
  .two-column, .split-layout, .grid, .cards-grid {
    min-width: 0;
  }
  .rfq-layout > *, .ssr-cols > *, .ssr-cta.with-form > *, .contact-grid > *,
  .contact-layout > *, .two-column > *, .split-layout > *, .grid > *, .cards-grid > * {
    min-width: 0;
  }
  form, fieldset, .form-group, .form-row, .form-grid { min-width: 0; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  /* 两列并排的输入行在小屏一律竖排 */
  .form-row, .form-grid, .rfq-form-grid, .form-grid-2, .field-row {
    grid-template-columns: 1fr !important;
    display: grid;
    gap: 14px;
  }
}

/* ---------- 13. 剩余可点元素补到 44px ---------- */
@media (max-width: 860px) {
  .social-link, a.social-link, .footer-social a {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .footer-contact a, .footer-info a, .footer-hq a, .contact-block a, .contact-info a,
  .breadcrumbs a, .breadcrumb a, .footer-bottom a, .footer-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-links a + a, .footer-legal-links a + a { margin-top: 0; }
}

/* ---------- 14. 手机端第三轮：页脚/面包屑/联系方式的触点 + 极窄屏表单 ---------- */
@media (max-width: 860px) {
  footer.site-footer a, .site-footer a,
  a[href^="mailto:"], a[href^="tel:"],
  [class*="breadcrumb"] a, .post-meta a, .card a.btn, .footer-note a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  footer.site-footer p, .footer-desc, .footer-note { line-height: 2; }
}
@media (max-width: 700px) {
  /* 极窄屏（320）：表单盒子里任何子项的 min-content 都不能顶宽容器 */
  .rfq-form-box, .rfq-form-box > *, .rfq-form, .rfq-form > *,
  .contact-form, .contact-form > *, .form-box, .form-box > * {
    min-width: 0;
    max-width: 100%;
  }
  .rfq-form-box { padding: 22px 16px; }
  select { text-overflow: ellipsis; }
}

/* ---------- 15. 手机端收尾：面包屑/元信息里的行内链接也给足触点 ---------- */
@media (max-width: 860px) {
  nav a, .breadcrumbs a, .breadcrumb a, [class*="breadcrumb"] a,
  .post-meta a, .entry-meta a, .meta a, .article-meta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-left: 4px;
    padding-right: 4px;
  }
}
