/* ═══════════════════════════════════════════════════════════════════════
   theme.css — shared design-system styles across MEGA's 10 main pages

   These are CSS rules that appeared IDENTICALLY in all 10 main content
   pages (homepage, products, product-detail, services, how-it-works,
   case-studies, sustainability, about, faq, insights).

   The 4 small pages (privacy, terms, thank-you, 404) have their own
   self-contained styles and do not need this file.

   ═══════ HOW TO USE THIS FILE IN THE WORDPRESS BUILD ═══════
   1. Save this file as: wp-content/themes/mega/assets/theme.css
   2. In your theme's functions.php, enqueue it on every page:
        wp_enqueue_style('mega-theme',
          get_template_directory_uri() . '/assets/theme.css',
          array(), '1.0');
   3. From each page's inline <style> block, you can safely DELETE any
      rule that exists in this file (search by selector to find duplicates).
      What remains inline is page-unique CSS that should stay where it is.
   4. Once you've extracted shared CSS, you'll see the inline <style>
      blocks shrink dramatically — that's the goal.

   ═══════ WHY THIS WAS NOT EXTRACTED IN THE STATIC HTML ═══════
   We deliberately keep each static HTML file self-contained (no external
   CSS dependencies) so the outsourcer can preview each page locally
   without setting up a server. The extraction happens in the WP build
   step using this file as the reference.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   CSS VARIABLES — Design System Tokens
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #fafaf8;
  --bg-2: #f2f1ed;
  --bg-3: #e8e6df;
  --ink: #0a0a0a;
  --muted: #6b6b68;
  --muted-2: #9a9a95;
  --line: #dcdad3;
  --line-dk: #2a2a2a;
  --accent: #c8372a;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ═══════════════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════════════ */

html {
  scroll-behavior:smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */

.display {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reveal {
  opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s ease;
}

.reveal.in {
  opacity:1;transform:none;
}

.reveal.delay-1 {
  transition-delay:.08s;
}

.reveal.delay-2 {
  transition-delay:.16s;
}

.reveal.delay-3 {
  transition-delay:.24s;
}

.logo span {
  color:var(--accent);
}

.nav-right {
  display:flex;gap:14px;align-items:center;
}

.cta-btn:hover {
  background:#dd4934;
}

.foot-logo span {
  color:var(--accent);
}

.foot-top h5 {
  font-family:'Archivo',sans-serif;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8d8d87;margin-bottom:18px;
}

.foot-legal a {
  color:#8f8f89;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s;
}

.foot-legal a:hover {
  border-bottom-color:#c8372a;color:#c8372a;
}

.foot-legal .sep {
  opacity:.5;
}

.nav-burger {
  display:none;
    background:none;border:none;cursor:pointer;
    padding:8px;width:40px;height:40px;
    flex-direction:column;gap:5px;justify-content:center;align-items:center;
    color:inherit;
}

.nav-burger span {
  display:block;height:2px;width:24px;background:currentColor;
    transition:transform .3s ease, opacity .3s ease;
}

.nav-burger.open span:nth-child(1) {
  transform:translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity:0;
}

.nav-burger.open span:nth-child(3) {
  transform:translateY(-7px) rotate(-45deg);
}

@media(max-width:1100px) {
  nav, nav#nav{
      background:rgba(250,250,248,.96) !important;
      backdrop-filter:blur(16px);
      border-bottom:1px solid var(--line);
      color:var(--ink) !important;
    }
    nav .logo-img{filter:none !important;}
    .nav-inner{grid-template-columns:auto 1fr auto;padding:18px 24px;gap:20px;}
    .nav-burger{display:flex;}
    .lang-btn{display:none;}
    .nav-links{
      display:flex !important;
      position:absolute;top:100%;left:0;right:0;
      background:var(--bg);
      border-top:1px solid var(--line);border-bottom:1px solid var(--line);
      flex-direction:column;gap:0;
      padding:0;margin:0;
      max-height:0;overflow:hidden;
      transition:max-height .35s ease;
    }
    .nav-links.open{max-height:520px;}
    .nav-links li{list-style:none;border-bottom:1px solid var(--line);}
    .nav-links li:last-child{border-bottom:none;}
    .nav-links a{
      display:block;padding:16px 24px;
      opacity:1 !important;color:var(--ink);
      font-size:14px;font-weight:500;
    }
}

.skip-link {
  position:absolute;
    top:-100px;
    left:8px;
    background:var(--ink);
    color:#fff;
    padding:12px 20px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    border-radius:4px;
    z-index:9999;
    transition:top 0.2s;
}

.skip-link:focus {
  top:8px;outline:2px solid var(--accent);outline-offset:2px;
}

.mqd-launcher {
  position:fixed;bottom:100px;right:28px;z-index:998;
  display:flex;align-items:center;gap:10px;
  padding:14px 20px 14px 18px;border-radius:50px;
  background:#0a0a0a;color:#fff;border:none;cursor:pointer;
  font-family:'Archivo',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  box-shadow:0 6px 24px rgba(0,0,0,.25);
  transition:transform .25s ease, background .25s ease;
}

.mqd-launcher:hover {
  transform:translateY(-2px);background:#c8372a;
}

.mqd-launcher svg {
  flex-shrink:0;
}

.mqd-launcher .mqd-pulse {
  position:absolute;top:10px;right:10px;
  width:10px;height:10px;border-radius:50%;background:#c8372a;
}

.mqd-launcher .mqd-pulse::after {
  content:'';position:absolute;inset:0;border-radius:50%;background:#c8372a;
  animation:mqd-pulse 1.8s ease-out infinite;
}

@keyframes mqd-pulse {
  0%{transform:scale(1);opacity:.7;}
  100%{transform:scale(2.6);opacity:0;}
}

@media(max-width:720px) {
  .mqd-launcher{
    bottom:96px;right:20px;padding:12px 16px;font-size:11px;
  }
  .mqd-launcher span.mqd-label-long{display:none;}
}

.mqd-backdrop {
  position:fixed;inset:0;z-index:1000;background:rgba(10,10,10,.55);
  backdrop-filter:blur(4px);opacity:0;pointer-events:none;
  transition:opacity .35s ease;
}

.mqd-backdrop.mqd-open {
  opacity:1;pointer-events:auto;
}

.mqd-drawer {
  position:fixed;top:0;right:0;bottom:0;z-index:1001;
  width:480px;max-width:100vw;background:#fafaf8;
  transform:translateX(100%);transition:transform .4s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;
  box-shadow:-12px 0 40px rgba(0,0,0,.2);
}

.mqd-drawer.mqd-open {
  transform:translateX(0);
}

.mqd-drawer-head {
  padding:28px 32px 20px;border-bottom:1px solid #dcdad3;
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
}

.mqd-drawer-head h3 {
  font-family:'Archivo',sans-serif;font-size:24px;font-weight:800;
  letter-spacing:-.02em;line-height:1.15;color:#0a0a0a;margin:0 0 8px;
}

.mqd-drawer-head p {
  font-family:'Inter',sans-serif;font-size:13px;color:#6b6b68;
  line-height:1.55;margin:0;
}

.mqd-close {
  width:36px;height:36px;border-radius:50%;border:1px solid #dcdad3;
  background:#fff;cursor:pointer;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;font-size:18px;color:#0a0a0a;
  transition:background .2s;
}

.mqd-close:hover {
  background:#f2f1ed;
}

.mqd-form {
  flex:1;overflow-y:auto;padding:24px 32px 32px;
}

.mqd-form .mqd-row {
  display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px;
}

.mqd-form .mqd-row.mqd-full {
  grid-template-columns:1fr;
}

.mqd-form label {
  font-family:'Archivo',sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:#6b6b68;
  display:block;margin-bottom:6px;
}

.mqd-form input,
.mqd-form textarea,
.mqd-form select {
  width:100%;padding:12px 14px;background:#fff;border:1px solid #dcdad3;
  font-family:'Inter',sans-serif;font-size:14px;color:#0a0a0a;
  border-radius:0;outline:none;transition:border-color .2s;
}

.mqd-form input:focus,
.mqd-form textarea:focus,
.mqd-form select:focus {
  border-color:#0a0a0a;
}

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

.mqd-form .mqd-hint {
  font-size:11px;color:#9a9a95;margin-top:4px;
}

.mqd-form .mqd-submit {
  width:100%;padding:16px;margin-top:8px;background:#0a0a0a;color:#fff;
  border:none;font-family:'Archivo',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;cursor:pointer;
  transition:background .2s;
}

.mqd-form .mqd-submit:hover {
  background:#c8372a;
}

.mqd-form .mqd-privacy {
  font-size:11px;color:#6b6b68;line-height:1.6;
  margin-top:14px;text-align:center;
}

.mqd-form .mqd-privacy strong {
  color:#0a0a0a;
}

.mqd-form .mqd-hp {
  position:absolute;left:-10000px;top:auto;
  width:1px;height:1px;overflow:hidden;
}

.mqd-trust-row {
  display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;
}

.mqd-trust-chip {
  font-family:'Archivo',sans-serif;font-size:9px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:#6b6b68;
  padding:5px 10px;background:#f2f1ed;border:1px solid #e8e6df;
}

.mega-heading-offset-sm {
  margin-top: 14px;
}

.mega-faq-more {
  margin-top: 48px;
  text-align: center;
}

.mega-accent-underline-link {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.mega-form-gap-lg {
  margin-bottom: 32px;
}

.mega-muted-line {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.mega-form-optional {
  color: var(--muted-2);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.mega-font-normal {
  font-weight: 400;
}

.mqd-form .mega-form-optional,
.mega-file-helper .mega-form-optional {
  color: #9a9a95;
}

.mega-file-helper {
  font-size: 13px;
  color: var(--muted);
}

.mqd-form .mega-file-helper {
  color: #9a9a95;
}

.mega-file-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-hidden-file-input {
  display: none;
}

.mega-file-name {
  margin-left: 8px;
  color: var(--ink);
  font-weight: 500;
}

.mega-file-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
}

@media(max-width:520px) {
  .mqd-drawer{width:100vw;}
  .mqd-drawer-head{padding:22px 22px 16px;}
  .mqd-drawer-head h3{font-size:21px;}
  .mqd-form{padding:20px 22px 28px;}
  .mqd-form .mqd-row{grid-template-columns:1fr;}
}

body.mqd-locked {
  overflow:hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION (Homepage)
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: none;
}
.hero-video.is-active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }
}

@media (max-width: 780px) {
  .hero-video {
    display: none !important;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.46) 0%, rgba(10,10,10,.25) 28%, rgba(10,10,10,.78) 85%, rgba(10,10,10,.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
}
.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-headline {
  font-size: clamp(56px, 8.8vw, 148px);
  max-width: 1120px;
  margin-bottom: 28px;
}
.hero-headline strong {
  font-weight: 800;
  color: #fff;
}
.hero-headline .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.hero-sub {
  max-width: 660px;
  font-size: 19px;
  line-height: 1.65;
  opacity: 0.94;
  margin-bottom: 34px;
}

.hero-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.small-chip {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-ctas a,
.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  text-decoration: none !important;
}

.cats-grid .cat-card,
section.case .detail-card {
  color: inherit;
  text-decoration: none;
}

.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(10,10,10,0.52);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 26px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat .k {
  font-family: 'Archivo', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.hero-stat .v {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255,255,255,0.68);
  font-family: 'Archivo', sans-serif;
}

.scroll-ind {
  position: absolute;
  right: 40px;
  bottom: 120px;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 16px;
}
.scroll-ind::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scaleY(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
  transition: 0.35s ease;
}

nav.scrolled {
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.nav-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.logo {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  width: 154px;
  min-width: 154px;
  height: 32px;
  overflow: visible;
}

.logo-img {
  display: block;
  width: 154px;
  height: auto;
  max-width: none;
  transition: filter .25s ease, opacity .25s ease;
}

.nav--home:not(.scrolled) .logo-img {
  filter: invert(1);
}

nav.scrolled .logo-img,
.nav--solid .logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: 22px;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 0.2s;
}
.nav-links a.active,
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}
.nav-links a:hover {
  opacity: 1;
}

.ghost-link {
  font-size: 12px;
  opacity: 0.8;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.ghost-link:hover {
  opacity: 1;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-switch a {
  color: inherit;
  text-decoration: none;
}
.lang-switch .lang-btn.is-current {
  opacity: 1;
}

.cta-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* ═══════════════════════════════════════════════════════════════════════
   LABEL WITH DIAMOND
   ═══════════════════════════════════════════════════════════════════════ */

.label::before {
  content: '◆';
  color: var(--accent);
  font-size: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════════════════════════════ */

section {
  padding: 140px 0;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 静态稿驱动页面使用各自的原始版心，避免被主题通用 container 污染 */
.mega-static-mega-products .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}

.mega-static-mega-services .container,
.mega-static-mega-how-it-works .container,
.mega-static-mega-about .container,
.mega-static-mega-case-studies .container,
.mega-static-mega-sustainability .container,
.mega-static-mega-insights .container,
.mega-static-mega-faq .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

footer {
  background: #0b0b0b;
  color: #fff;
  padding: 78px 0 34px;
}

.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 54px;
  border-bottom: 1px solid #262626;
}

.foot-logo {
  font-family: 'Archivo', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.foot-logo-img {
  display: block;
  width: 198px;
  height: auto;
  max-width: none;
  filter: invert(1);
  opacity: .96;
}

.foot-desc {
  font-size: 13px;
  color: #b8b8b1;
  max-width: 360px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.foot-top ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.foot-top a,
.foot-top li {
  font-size: 13px;
  color: #d7d7d1;
  text-decoration: none;
  transition: color 0.2s;
}
.foot-top a:hover {
  color: var(--accent);
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 11px;
  color: #8f8f89;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 11px;
  color: #8f8f89;
}

.footer--compact .foot-top {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.foot-addr {
  font-size: 13px;
  color: #b8b8b1;
  line-height: 1.8;
}

.foot-addr a {
  color: #d7d7d1;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  font-size: 11px;
  color: #8f8f89;
}

.footer--standard .foot-top {
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 0;
  border-bottom: none;
}

.footer--standard .foot-top ul {
  display: block;
}

.footer--standard .foot-top li {
  margin-bottom: 10px;
}

.footer--standard .foot-logo {
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
}

.footer--standard .foot-desc {
  max-width: 340px;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer--standard .foot-top a,
.footer--standard .foot-top li {
  color: #bcbcb7;
}

.footer--standard .foot-top a:hover {
  color: #fff;
}

.footer--standard .foot-bot {
  border-top: 1px solid #1f1f1f;
  padding-top: 28px;
  font-size: 12px;
  color: #6b6b68;
}

.footer--standard .foot-legal {
  justify-content: center;
}

.catalog-dl-icon {
  font-size: 22px;
  line-height: 1;
  color: #fff;
  font-family: 'Inter', 'Arial Unicode MS', 'Segoe UI Symbol', sans-serif;
  font-variant-emoji: text;
}

/* ═══════════════════════════════════════════════════════════════════════
   CLIENT WALL (Homepage)
   ═══════════════════════════════════════════════════════════════════════ */

.client-wall {
  position: relative;
  background: var(--ink);
  padding: 40px 0 44px;
  overflow: hidden;
  box-shadow:
    inset 0 4px 8px -4px rgba(200,55,42,0.18),
    inset 0 -4px 8px -4px rgba(200,55,42,0.12);
}
.client-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1100px 300px at 50% 50%, rgba(200,55,42,0.08), transparent 70%);
  pointer-events: none;
}

.cw-label {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 28px;
  padding: 0 20px;
}

.cw-label-title {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.cw-label-title .cw-sep {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,55,42,0.55), transparent);
  vertical-align: middle;
  margin: 0 20px;
}

.cw-label-sub {
  display: block;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.38);
}

.cw-brands {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.cw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.cw-brand:hover {
  color: #fff;
}
.cw-brand img {
  height: 28px;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.7;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.cw-brand:hover img {
  filter: none;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   CERT BAND (Homepage)
   ═══════════════════════════════════════════════════════════════════════ */

.cert-band {
  padding: 36px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.cert-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cert-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cert-chip img {
  height: 22px;
}

/* 静态首页认证区以 HTML 静态稿为准，清掉旧版 trust-chip 样式残留。 */
.mega-static-mega-garment-home-clean0 .cert-band {
  border-bottom: 0;
}
.mega-static-mega-garment-home-clean0 .cert-inner {
  max-width: 1560px;
  padding: 0;
  display: block;
  justify-content: normal;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
}

/* ═══════════════════════════════════════════════════════════════════════
   CAPABILITIES (Homepage)
   ═══════════════════════════════════════════════════════════════════════ */

.caps {
  background: var(--bg-2);
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.cap-cell {
  padding: 48px 28px 42px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
}
.cap-cell:last-child {
  border-right: none;
}
.cap-cell:hover {
  background: var(--ink);
  color: #fff;
  padding-left: 28px;
  padding-right: 28px;
}

.cap-num {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap-cell:hover .cap-num {
  color: var(--accent);
}

.cap-cell h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 70px 0 14px;
}

.cap-cell p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.82;
}

.cap-spec {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.cap-cell:hover .cap-spec {
  border-top-color: rgba(255,255,255,0.15);
}
.cap-spec span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.cap-cell:hover .cap-spec span {
  color: rgba(255,255,255,0.6);
}
.cap-spec strong {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE (Hero & Nav)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .nav-inner,
  .container,
  .hero-content,
  .hero-stats-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .nav-inner {
    grid-template-columns: auto auto;
  }
  
  .hero-stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mega-static-mega-products .nav-inner,
  .mega-static-mega-products .container,
  .mega-static-mega-services .nav-inner,
  .mega-static-mega-services .container,
  .mega-static-mega-how-it-works .nav-inner,
  .mega-static-mega-how-it-works .container,
  .mega-static-mega-about .nav-inner,
  .mega-static-mega-about .container,
  .mega-static-mega-case-studies .nav-inner,
  .mega-static-mega-case-studies .container,
  .mega-static-mega-sustainability .nav-inner,
  .mega-static-mega-sustainability .container,
  .mega-static-mega-insights .nav-inner,
  .mega-static-mega-insights .container,
  .mega-static-mega-faq .nav-inner,
  .mega-static-mega-faq .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .caps-grid,
  .cert-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .cw-brands {
    gap: 36px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 60px 0;
  }
  
  .hero-content {
    padding-bottom: 170px;
  }
  
  .hero-sub {
    font-size: 17px;
  }
  
  .hero-stats-inner {
    grid-template-columns: 1fr;
  }
  
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .hero-stat:last-child {
    border-bottom: none;
  }
  
  .caps-grid {
    grid-template-columns: 1fr;
  }
  
  .cap-cell {
    border-right: none;
  }
  
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 36px;
  }

  .footer--home .foot-top > div:first-child {
    grid-column: 1 / -1;
  }
}

@media(max-width:720px) {
  .foot-bot,
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .mega-static-mega-products .container,
  .mega-static-mega-services .container,
  .mega-static-mega-how-it-works .container,
  .mega-static-mega-about .container,
  .mega-static-mega-case-studies .container,
  .mega-static-mega-sustainability .container,
  .mega-static-mega-insights .container,
  .mega-static-mega-faq .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* reCAPTCHA v3 会自动注入右下角 badge；正式稿不展示该浮层，隐私说明保留在表单文案中。 */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
